From: Søren Sandmann Date: Thu, 26 Dec 2013 14:41:53 +0000 (-0500) Subject: configure.ac: Check and use -Wno-unused-local-typedefs GCC option X-Git-Tag: pixman-0.33.2~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b29d74ef0c4164f4552da344723d3ae6f731011c;p=platform%2Fupstream%2Fpixman.git configure.ac: Check and use -Wno-unused-local-typedefs GCC option With GCC 4.8.2 the COMPILE_TIME_ASSERT macro produces a spurious warning about an unused local typedef: In file included from pixman.c:29:0: pixman.c: In function 'optimize_operator': pixman-private.h:1019:22: warning: typedef 'compile_time_assertion' locally defined but not used [-Wunused-local-typedefs] The flag -Wno-unused-local-typedefs suppresses that warning. --- diff --git a/configure.ac b/configure.ac index 5910fbb..6327972 100644 --- a/configure.ac +++ b/configure.ac @@ -184,6 +184,7 @@ AC_SUBST(LT_VERSION_INFO) PIXMAN_CHECK_CFLAG([-Wall]) PIXMAN_CHECK_CFLAG([-Wdeclaration-after-statement]) +PIXMAN_CHECK_CFLAG([-Wno-unused-local-typedefs]) PIXMAN_CHECK_CFLAG([-fno-strict-aliasing]) dnl =========================================================================