From e912b36d95a3c26a6021eeb27e663bd05910a9b4 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 18 Dec 2017 08:27:29 +0100 Subject: [PATCH] build: enable unused-but-set warning It was disabled for shady reasons (not checking write() return value) that are long gone. Worse even, it hid some real bugs. --- m4/compiler_options.m4 | 1 - 1 file changed, 1 deletion(-) diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4 index c0b07e5b4b..b96e3503fa 100644 --- a/m4/compiler_options.m4 +++ b/m4/compiler_options.m4 @@ -86,7 +86,6 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then -Wno-missing-field-initializers \ -Wno-pragmas \ -Wno-sign-compare \ - -Wno-unused-but-set-variable \ -Wno-unused-parameter \ ; do dnl GCC 4.4 does not warn when checking for -Wno-* flags (https://gcc.gnu.org/wiki/FAQ#wnowarning)