From: Bobby R. Bruce Date: Sun, 12 Jul 2020 21:14:23 +0000 (-0700) Subject: base,scons: Fixed `stats/hdf5.cc` CXXFlags to `-Wno-deprecated` X-Git-Tag: v20.1.0.0~457 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc791d51a2c641bf96ae89bcaa53591ba75b4956;p=gem5.git 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 --- 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')