projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a863bbc
)
configure.ac: check and use -Wdeclaration-after-statement GCC option
author
Siarhei Siamashka
<siarhei.siamashka@gmail.com>
Sat, 5 Oct 2013 19:00:26 +0000
(22:00 +0300)
committer
Siarhei Siamashka
<siarhei.siamashka@gmail.com>
Sun, 13 Oct 2013 21:27:04 +0000
(
00:27
+0300)
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
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 59e31c4a1cef355b4a7206f858051e5f5497759b..8a3b622680e2fe7b577a9503d9d9da0da9f3c5fe 100644
(file)
--- 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 =========================================================================