From 3b85fca43cce31278662622222c37f2c4479510d Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Thu, 10 Oct 2013 23:55:56 +0200 Subject: [PATCH] configure: Added compilation check for dangerous use of 'extern' keyword --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 77d16dbd..48c26377 100644 --- a/configure.ac +++ b/configure.ac @@ -102,6 +102,11 @@ AS_IF([test "x$debug" = "xyes"], dnl Try to report misuses of '&' versus '&&' and similar AX_CFLAGS_GCC_OPTION([-Wlogical-op]) dnl + dnl Reports declaration of global things that are done inside + dnl a local environment, instead of using the appropriate + dnl header + AX_CFLAGS_GCC_OPTION([-Wnested-externs]) + dnl dnl Use of 'sizeof()' on inappropriate pointer types AX_CFLAGS_GCC_OPTION([-Wpointer-arith]) ], [dnl -- 2.11.4.GIT