From b66baaaae0ffa523aa7d5fe3e04e0a8e96e6ef42 Mon Sep 17 00:00:00 2001 From: Matt Thirtytwo Date: Thu, 5 Mar 2015 20:26:55 +0100 Subject: [PATCH 1/2] no shadow --- m4macros/xdt-features.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4macros/xdt-features.m4 b/m4macros/xdt-features.m4 index 239cd4f..41119c7 100644 --- a/m4macros/xdt-features.m4 +++ b/m4macros/xdt-features.m4 @@ -73,7 +73,7 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]), -Wno-unused-parameter -Wold-style-definition \ -Wdeclaration-after-statement \ -Wmissing-declarations \ - -Wmissing-noreturn -Wshadow -Wpointer-arith \ + -Wmissing-noreturn -Wpointer-arith \ -Wcast-align -Wformat -Wformat-security -Wformat-y2k \ -Winit-self -Wmissing-include-dirs -Wundef \ -Wnested-externs" -- 1.7.9.5 From fffc556ffa51785b7d39c958cafbff022c7de0fc Mon Sep 17 00:00:00 2001 From: Matt Thirtytwo Date: Fri, 13 Mar 2015 11:52:27 +0100 Subject: [PATCH 2/2] No -Wshadow flag for enable_debug=full --- m4macros/xdt-features.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4macros/xdt-features.m4 b/m4macros/xdt-features.m4 index 41119c7..c4ba116 100644 --- a/m4macros/xdt-features.m4 +++ b/m4macros/xdt-features.m4 @@ -94,7 +94,7 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]), CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG" AC_MSG_RESULT([full]) else - xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g" + xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -g -Wshadow" AC_MSG_RESULT([yes]) fi -- 1.7.9.5