base,scons: Fixed `stats/hdf5.cc` CXXFlags to `-Wno-deprecated`
authorBobby R. Bruce <bbruce@ucdavis.edu>
Sun, 12 Jul 2020 21:14:23 +0000 (14:14 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 16 Jul 2020 02:44:26 +0000 (02:44 +0000)
`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 <power.jg@gmail.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/SConscript

index fe4e3613b07b5a5ce2afb2b15f2c028ee689b368..657528c94e413503fda55881995861a5e8372e33 100644 (file)
@@ -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')