From 4953c651de3ae0298c87e4c09107bee7adebe8e4 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 9 Jan 2020 20:54:53 +0100 Subject: nxagent: build with -Wshadow to detect shadowing variables --- nx-X11/config/cf/host.def | 2 +- nx-X11/config/cf/xorg.cf | 4 ++-- nx-X11/config/cf/xorgsite.def | 2 +- 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 */ /* -- cgit v1.2.3