[Pixman] [PATCH] configure.ac: check and use -Wdeclaration-after-statement GCC option
Siarhei Siamashka
siarhei.siamashka at gmail.com
Wed Oct 9 15:22:21 PDT 2013
The accidental use of declaration after statement breaks compilation
with C89 compilers such as MSVC. Assuming that MSVC is one of the
supported compilers, it makes sense to ask GCC to at least report
warnings for such problematic code.
---
configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index 2dd4776..b8f6ab0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -183,6 +183,7 @@ AC_SUBST(LT_VERSION_INFO)
# Check for dependencies
PIXMAN_CHECK_CFLAG([-Wall])
+PIXMAN_CHECK_CFLAG([-Wdeclaration-after-statement])
PIXMAN_CHECK_CFLAG([-fno-strict-aliasing])
dnl =========================================================================
--
1.8.1.5
More information about the Pixman
mailing list