diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-17 00:14:48 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-17 00:15:49 -0500 |
commit | 2757c1c65fd6ba10c55ba5cf38d600814cf9dc1b (patch) | |
tree | 7b75329e4be4950986406b9bd832fb33402247bc | |
parent | 946b3878bb026a6b462baac762e9a1e7e93e1451 (diff) | |
download | fsf-binutils-gdb-2757c1c65fd6ba10c55ba5cf38d600814cf9dc1b.zip fsf-binutils-gdb-2757c1c65fd6ba10c55ba5cf38d600814cf9dc1b.tar.gz fsf-binutils-gdb-2757c1c65fd6ba10c55ba5cf38d600814cf9dc1b.tar.bz2 |
sim: warnings: add more flags
We already build cleanly with these.
-rwxr-xr-x | sim/configure | 3 | ||||
-rw-r--r-- | sim/m4/sim_ac_option_warnings.m4 | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sim/configure b/sim/configure index be16fb4..53dfa3d 100755 --- a/sim/configure +++ b/sim/configure @@ -15836,12 +15836,15 @@ build_warnings="$build_warnings -Wimplicit-int -Wincompatible-function-pointer-types -Wincompatible-pointer-types +-Wint-conversion -Wmisleading-indentation -Wmissing-parameter-type -Wmissing-prototypes -Wold-style-declaration -Wold-style-definition -Wpointer-sign +-WWreturn-mismatch +-Wstrict-prototypes -Wno-enum-conversion " diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 6e6add6..7bcf9af 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -58,12 +58,15 @@ build_warnings="$build_warnings -Wimplicit-int -Wincompatible-function-pointer-types -Wincompatible-pointer-types +-Wint-conversion -Wmisleading-indentation -Wmissing-parameter-type -Wmissing-prototypes -Wold-style-declaration -Wold-style-definition -Wpointer-sign +-WWreturn-mismatch +-Wstrict-prototypes dnl The cgen virtual insn logic involves enum conversions. dnl Disable until we can figure out how to make this work. -Wno-enum-conversion |