From 48e6a014e08d0b6aa4c5a4b782ae96d03289740d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 18 May 2017 18:11:10 +0200 Subject: [PATCH] build: enable -Wlogical-op and -Wshift-negative-value compiler warning (cherry picked from commit 41e7fca59762dc928c9d67b555b1409c3477b2b0) --- m4/compiler_options.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4 index 23929af8db..ccb51f5e6e 100644 --- a/m4/compiler_options.m4 +++ b/m4/compiler_options.m4 @@ -70,11 +70,13 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then -Wimplicit-fallthrough \ -Wimplicit-function-declaration \ -Winit-self \ + -Wlogical-op \ -Wmissing-declarations \ -Wmissing-include-dirs \ -Wmissing-prototypes \ -Wpointer-arith \ -Wshadow \ + -Wshift-negative-value \ -Wstrict-prototypes \ -Wundef \ -Wno-duplicate-decl-specifier \