aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/config/cf
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-01-09 20:54:53 +0100
committerUlrich Sibiller <uli42@gmx.de>2020-01-09 20:54:53 +0100
commit4953c651de3ae0298c87e4c09107bee7adebe8e4 (patch)
tree49e47ce0e1285cc77a8dcdf53a22c987e5c55e9f /nx-X11/config/cf
parent21079cf31ab2958472714984a8259455e93a2dfd (diff)
downloadnx-libs-4953c651de3ae0298c87e4c09107bee7adebe8e4.tar.gz
nx-libs-4953c651de3ae0298c87e4c09107bee7adebe8e4.tar.bz2
nx-libs-4953c651de3ae0298c87e4c09107bee7adebe8e4.zip
nxagent: build with -Wshadow to detect shadowing variables
Diffstat (limited to 'nx-X11/config/cf')
-rw-r--r--nx-X11/config/cf/host.def2
-rw-r--r--nx-X11/config/cf/xorg.cf4
-rw-r--r--nx-X11/config/cf/xorgsite.def2
3 files changed, 4 insertions, 4 deletions
diff --git a/nx-X11/config/cf/host.def b/nx-X11/config/cf/host.def
index 2df1cd672..f9a990ede 100644
--- a/nx-X11/config/cf/host.def
+++ b/nx-X11/config/cf/host.def
@@ -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
*/
/*
diff --git a/nx-X11/config/cf/xorg.cf b/nx-X11/config/cf/xorg.cf
index 0444d18cc..8d39c338a 100644
--- a/nx-X11/config/cf/xorg.cf
+++ b/nx-X11/config/cf/xorg.cf
@@ -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
diff --git a/nx-X11/config/cf/xorgsite.def b/nx-X11/config/cf/xorgsite.def
index 0ffe86056..5c5cf4431 100644
--- a/nx-X11/config/cf/xorgsite.def
+++ b/nx-X11/config/cf/xorgsite.def
@@ -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
*/
/*