]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: warnings: add more flags
authorMike Frysinger <vapier@gentoo.org>
Sun, 17 Dec 2023 05:14:48 +0000 (00:14 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 17 Dec 2023 05:15:49 +0000 (00:15 -0500)
We already build cleanly with these.

sim/configure
sim/m4/sim_ac_option_warnings.m4

index be16fb4ac61fff536c7abe1925d138ab12089d92..53dfa3d76c39d81d36c55c280d2f2f94473d91c9 100755 (executable)
@@ -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
 "
 
index 6e6add652fcb964b9e2cfc63061535f6eade8737..7bcf9af7804fde0c4ac6aab02fd9571616b833f5 100644 (file)
@@ -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