diff options
author | Jason Lowe-Power <jason@lowepower.com> | 2018-08-02 18:07:51 -0700 |
---|---|---|
committer | Jason Lowe-Power <jason@lowepower.com> | 2018-08-21 14:41:29 +0000 |
commit | 4fdfd98230e780aeb068e3740742c7bff28fb859 (patch) | |
tree | 0018e9ab0ecdaccd83a9e9acf3cfe70b275578c6 /src/cpu | |
parent | 05f92d9760f21ace8c6635d95f7c8f5e5078eb2d (diff) | |
download | gem5-4fdfd98230e780aeb068e3740742c7bff28fb859.tar.xz |
misc: Appease GCC 8
GCC 8 adds a number of new warnings to -Wall which generate errors.
- Fix memset to 0 for structs by adding casts.
- Fix cast with const when the const was ignored.
- Fix catch a polymorphic type by value
We now compile with GCC 8!
Change-Id: Iab70ce11190eee67608fc25c0bedff170152b153
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/11949
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/testers/traffic_gen/pygen.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/testers/traffic_gen/pygen.cc b/src/cpu/testers/traffic_gen/pygen.cc index ce1d59130..9ce2fbf83 100644 --- a/src/cpu/testers/traffic_gen/pygen.cc +++ b/src/cpu/testers/traffic_gen/pygen.cc @@ -74,7 +74,7 @@ PyTrafficGen::nextGenerator() metaGenerator->cast<std::shared_ptr<BaseGen>>(); metaGenerator++; return gen; - } catch (py::cast_error) { + } catch (py::cast_error&) { fatal("Meta generator didn't return a valid trace generator\n"); } } |