From fb096e64b4a5421f74c615f088588c0ab1bdb206 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 22 Apr 2025 12:48:36 -0400 Subject: [PATCH] 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 --- tools/configure | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/configure b/tools/configure index 6704ba138c..b74aaed302 100755 --- a/tools/configure +++ b/tools/configure @@ -4606,12 +4606,6 @@ else GCCOPTS="$GCCOPTS -Wno-override-init" 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 # gcc 7 spews a bunch of warnings by default GCCOPTS="$GCCOPTS -Wimplicit-fallthrough=0"