base: Disable a warning in hdf5.cc which comes from an external header.
authorGabe Black <gabeblack@google.com>
Fri, 6 Mar 2020 01:43:28 +0000 (17:43 -0800)
committerGabe Black <gabeblack@google.com>
Fri, 6 Mar 2020 21:03:28 +0000 (21:03 +0000)
This warning comes from an external header which we don't have the
ability to fix directly. We can disable it in hdf5.cc specifically
which should keep things building without defeating the warning in
cases where we could fix it.

Jira Issue: https://gem5.atlassian.net/browse/GEM5-365

Change-Id: Ie1f4d91340e68cee7514beab9d03bba1d1c9bb38
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26325
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/SConscript

index 4082c06b87cf99fb04d56f12877ccd84793fd77d..f2fb91cadb9b2db6e930dcdd02d744d105677323 100644 (file)
@@ -90,7 +90,7 @@ Source('loader/symtab.cc')
 Source('stats/group.cc')
 Source('stats/text.cc')
 if env['USE_HDF5']:
-    Source('stats/hdf5.cc')
+    Source('stats/hdf5.cc', append={'CXXFLAGS': '-Wno-deprecated-copy'})
 
 GTest('addr_range.test', 'addr_range.test.cc')
 GTest('addr_range_map.test', 'addr_range_map.test.cc')