From f4f0b4490962cb82f9ef4cf88356abcfea7eebf2 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sat, 1 Oct 2016 11:00:01 +0200 Subject: nx-X11: Enable -Wpedantic as default CFLAG. This is to detect redefined typedefs when building nxagent. --- 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(-) (limited to 'nx-X11') diff --git a/nx-X11/config/cf/host.def b/nx-X11/config/cf/host.def index beb6e83cb..bdf440fbc 100644 --- a/nx-X11/config/cf/host.def +++ b/nx-X11/config/cf/host.def @@ -229,7 +229,7 @@ /* * This allows the GCC warning flags to be set. The default is shown here. * -#define GccWarningOptions -Wall -Wpointer-arith -Wstrict-prototypes \ +#define GccWarningOptions -Wall -Wpedantic -Wpointer-arith -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations \ -Wredundant-decls -Wnested-externs */ diff --git a/nx-X11/config/cf/xorg.cf b/nx-X11/config/cf/xorg.cf index b05ed5fd0..9fb92c61f 100644 --- a/nx-X11/config/cf/xorg.cf +++ b/nx-X11/config/cf/xorg.cf @@ -743,11 +743,11 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese # endif # ifndef GccWarningOptions # if XFree86Devel -# define GccWarningOptions -Wall -Wpointer-arith -Wstrict-prototypes \ +# define GccWarningOptions -Wall -Wpedantic -Wpointer-arith -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations \ -Wredundant-decls -Wnested-externs Gcc28Warnings # else -# define GccWarningOptions -Wall -Wpointer-arith Gcc28Warnings +# define GccWarningOptions -Wall -Wpedantic -Wpointer-arith Gcc28Warnings # endif # endif # ifndef DefaultCCOptions diff --git a/nx-X11/config/cf/xorgsite.def b/nx-X11/config/cf/xorgsite.def index 86b6abdbc..18fd96dbe 100644 --- a/nx-X11/config/cf/xorgsite.def +++ b/nx-X11/config/cf/xorgsite.def @@ -112,7 +112,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.def,v 3.186 2003/06/25 18:06:22 eich Exp $ /* * This allows the GCC warning flags to be set. The default is shown here. * -#define GccWarningOptions -Wall -Wpointer-arith -Wstrict-prototypes \ +#define GccWarningOptions -Wall -Wpedantic -Wpointer-arith -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations \ -Wredundant-decls -Wnested-externs */ -- cgit v1.2.3