don't add -Wshadow to MAINTAINER_CFLAGS
The semantics of shadowing global variables is well defined and it gets quite annoying to avoid them completely since there are too many standard APIs with very poor namespacing.
This commit is contained in:
parent
89e46a472f
commit
1127ab61a1
@ -196,7 +196,7 @@ AC_ARG_ENABLE(
|
|||||||
enable_maintainer_flags=default
|
enable_maintainer_flags=default
|
||||||
)
|
)
|
||||||
|
|
||||||
MAINTAINER_COMPILER_FLAGS="-Wall -Wshadow -Wcast-align -Wuninitialized
|
MAINTAINER_COMPILER_FLAGS="-Wall -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
|
-Wdeclaration-after-statement -Wvla
|
||||||
|
Loading…
Reference in New Issue
Block a user