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!
Signed-off-by: Jason Lowe-Power <firstname.lastname@example.org>
Reviewed-by: Daniel Carvalho <email@example.com>
Reviewed-by: Andreas Sandberg <firstname.lastname@example.org>
6 files changed