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.
This commit is contained in:
Lubomir Rintel 2017-12-18 08:27:29 +01:00
parent 6672c5e92e
commit e912b36d95

View file

@ -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)