Commit 4953c651 authored by Ulrich Sibiller's avatar Ulrich Sibiller

nxagent: build with -Wshadow to detect shadowing variables

parent 21079cf3
......@@ -230,7 +230,7 @@
*
#define GccWarningOptions -Wall -Wpedantic -Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations \
-Wredundant-decls -Wnested-externs
-Wredundant-decls -Wnested-externs -Wshadow
*/
/*
......
......@@ -720,9 +720,9 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese
# if XFree86Devel
# define GccWarningOptions -Wall -Wpedantic -Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations \
-Wredundant-decls -Wnested-externs Gcc28Warnings
-Wredundant-decls -Wnested-externs -Wshadow Gcc28Warnings
# else
# define GccWarningOptions -Wall -Wpedantic -Wpointer-arith Gcc28Warnings
# define GccWarningOptions -Wall -Wpedantic -Wpointer-arith -Wshadow Gcc28Warnings
# endif
# endif
# ifndef DefaultCCOptions
......
......@@ -113,7 +113,7 @@
*
#define GccWarningOptions -Wall -Wpedantic -Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations \
-Wredundant-decls -Wnested-externs
-Wredundant-decls -Wnested-externs -Wshadow
*/
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment