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)
commitcc791d51a2c641bf96ae89bcaa53591ba75b4956
treed37856a8160e47c5d9886600987b821cb126a82f
parent7deef45046829c16af35fc37c668e3d790e69ee1
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 <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