misc: Appease GCC 8
authorJason Lowe-Power <jason@lowepower.com>
Fri, 3 Aug 2018 01:07:51 +0000 (18:07 -0700)
committerJason Lowe-Power <jason@lowepower.com>
Tue, 21 Aug 2018 14:41:29 +0000 (14:41 +0000)
commit4fdfd98230e780aeb068e3740742c7bff28fb859
tree0018e9ab0ecdaccd83a9e9acf3cfe70b275578c6
parent05f92d9760f21ace8c6635d95f7c8f5e5078eb2d
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>
src/arch/x86/decoder.hh
src/arch/x86/types.hh
src/base/bitunion.hh
src/cpu/testers/traffic_gen/pygen.cc
src/dev/storage/ide_ctrl.cc
src/dev/storage/ide_ctrl.hh