From cc791d51a2c641bf96ae89bcaa53591ba75b4956 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Sun, 12 Jul 2020 14:14:23 -0700 Subject: [PATCH] base,scons: Fixed `stats/hdf5.cc` CXXFlags to `-Wno-deprecated` `Wno-deprecated-copy` was added to disable a warning in hdf5.cc: https://gem5-review.googlesource.com/c/public/gem5/+/26325. This works with GCC but does not work with clang. Clang returns `error: unknown warning option '-Wno-deprecated-copy'; did you mean '-Wno-deprecated'? [-Werror,-Wunknown-warning-option]` when this flag is enabled. This flag has therefore been changed to `Wno-deprecated`. This works in both GCC and Clang. Change-Id: I38dd58f3007975ccb60b2eec936c3b200b3df3ca Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31216 Reviewed-by: Jason Lowe-Power Reviewed-by: Gabe Black Maintainer: Gabe Black Tested-by: kokoro --- src/base/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/SConscript b/src/base/SConscript index fe4e3613b..657528c94 100644 --- a/src/base/SConscript +++ b/src/base/SConscript @@ -91,7 +91,7 @@ Source('loader/symtab.cc') Source('stats/group.cc') Source('stats/text.cc') if env['USE_HDF5']: - Source('stats/hdf5.cc', append={'CXXFLAGS': '-Wno-deprecated-copy'}) + Source('stats/hdf5.cc', append={'CXXFLAGS': '-Wno-deprecated'}) GTest('addr_range.test', 'addr_range.test.cc') GTest('addr_range_map.test', 'addr_range_map.test.cc') -- 2.30.2