summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020-08-27 18:50:02 -0400
committerRich Felker <dalias@aerifal.cx>2020-08-27 18:50:02 -0400
commite7f808e3595ad3111edec57270bdc088f64a418b (patch)
tree2a46f27f8bb7c218c33d3bc7d9c946c54d4dcff6
parent57f6e85c9de417fef5eece2a5b00c1104321f543 (diff)
downloadmusl-e7f808e3595ad3111edec57270bdc088f64a418b.tar.gz
musl-e7f808e3595ad3111edec57270bdc088f64a418b.tar.bz2
musl-e7f808e3595ad3111edec57270bdc088f64a418b.tar.xz
musl-e7f808e3595ad3111edec57270bdc088f64a418b.zip
configure: add further -Werror=... options to detected CFLAGS
these four warning options were overlooked previously, likely because they're not part of GCC's -Wall. they all detect constraint violations (invalid C at the source level) and should always be on in -Werror form.
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 18fda9af..5b63e9b1 100755
--- a/configure
+++ b/configure
@@ -522,6 +522,10 @@ tryflag CFLAGS_AUTO -Werror=implicit-function-declaration
tryflag CFLAGS_AUTO -Werror=implicit-int
tryflag CFLAGS_AUTO -Werror=pointer-sign
tryflag CFLAGS_AUTO -Werror=pointer-arith
+tryflag CFLAGS_AUTO -Werror=int-conversion
+tryflag CFLAGS_AUTO -Werror=incompatible-pointer-types
+tryflag CFLAGS_AUTO -Werror=discarded-qualifiers
+tryflag CFLAGS_AUTO -Werror=discarded-array-qualifiers
#
# GCC ignores unused arguements by default, but Clang needs this extra