misc: Re-enable the -Wtautological-compare warning (GCC>=6)

Every globally surpressed warning potentially hides real bugs.  Let's
fix up the false positives.

Change-Id: I8f4ed43fac4c2496f7fcfafa1cb33633dcc7a9be
This commit is contained in:
Solomon Peachy 2025-04-22 12:48:36 -04:00
parent 71d3bd2091
commit fb096e64b4

6
tools/configure vendored
View file

@ -4606,12 +4606,6 @@ else
GCCOPTS="$GCCOPTS -Wno-override-init" GCCOPTS="$GCCOPTS -Wno-override-init"
fi fi
if test "$gccnum" -ge "601"; then
# gcc 6 adds a lot of warnings that while useful are too time-consuming
# to clean up right away
GCCOPTS="$GCCOPTS -Wno-tautological-compare"
fi
if test "$gccnum" -ge "700"; then if test "$gccnum" -ge "700"; then
# gcc 7 spews a bunch of warnings by default # gcc 7 spews a bunch of warnings by default
GCCOPTS="$GCCOPTS -Wimplicit-fallthrough=0" GCCOPTS="$GCCOPTS -Wimplicit-fallthrough=0"