configure.ac: Check and use -Wno-unused-local-typedefs GCC option
authorSøren Sandmann <ssp@redhat.com>
Thu, 26 Dec 2013 14:41:53 +0000 (09:41 -0500)
committerSøren Sandmann <ssp@redhat.com>
Thu, 26 Dec 2013 14:41:53 +0000 (09:41 -0500)
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.

configure.ac

index 5910fbb..6327972 100644 (file)
@@ -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 =========================================================================