aboutsummaryrefslogtreecommitdiffstats
path: root/m4/compiler-warnings.m4
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2017-02-06 13:03:21 -0600
committerDan Williams <dcbw@redhat.com>2017-02-06 13:04:19 -0600
commitf52608c93adcfb7732fbf4caab1aa0b80a83fe30 (patch)
tree33c5287c5e07335740e3cd44b7687b373821c525 /m4/compiler-warnings.m4
parent83cc61fef03536658a91847c8db1253cef43c239 (diff)
downloadexternal_libqmi-f52608c93adcfb7732fbf4caab1aa0b80a83fe30.zip
external_libqmi-f52608c93adcfb7732fbf4caab1aa0b80a83fe30.tar.gz
external_libqmi-f52608c93adcfb7732fbf4caab1aa0b80a83fe30.tar.bz2
build,all: enable -Wtype-limits and fix some comparisons
-Wtype-limits warns when comparing unsigned variables <= 0, which we shouldn't be doing.
Diffstat (limited to 'm4/compiler-warnings.m4')
-rw-r--r--m4/compiler-warnings.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/compiler-warnings.m4 b/m4/compiler-warnings.m4
index de4a8b0..5ba490c 100644
--- a/m4/compiler-warnings.m4
+++ b/m4/compiler-warnings.m4
@@ -15,7 +15,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
-Wundef -Wimplicit-function-declaration \
-Wpointer-arith -Winit-self -Wshadow \
-Wmissing-include-dirs -Waggregate-return \
- -Wformat-security; do
+ -Wformat-security -Wtype-limits; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])