mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 01:54:10 +00:00
Add -Wdeclaration-after-statement and -Wvla to maintainer CFLAGS
These warnings pick up C99 extensions that are commonly accidentally used and which cause problems when compiling with MSVC.
This commit is contained in:
parent
164af55a6e
commit
c3f47fa7d0
@ -995,7 +995,8 @@ AS_IF([test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"],
|
|||||||
AS_COMPILER_FLAGS([MAINTAINER_CFLAGS],
|
AS_COMPILER_FLAGS([MAINTAINER_CFLAGS],
|
||||||
["-Wall -Wshadow -Wcast-align -Wuninitialized
|
["-Wall -Wshadow -Wcast-align -Wuninitialized
|
||||||
-Wno-strict-aliasing -Wempty-body -Wformat
|
-Wno-strict-aliasing -Wempty-body -Wformat
|
||||||
-Wformat-security -Winit-self"])
|
-Wformat-security -Winit-self
|
||||||
|
-Wdeclaration-after-statement -Wvla"])
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user