build: on linux include the X11 and Xm headers with -isystem rather than -I,
authorPeter Howkins <flibble@users.sourceforge.net>
Fri, 31 Aug 2012 17:35:20 +0000 (18:35 +0100)
committerPeter Howkins <flibble@users.sourceforge.net>
Fri, 31 Aug 2012 17:35:20 +0000 (18:35 +0100)
this means the compiler treats them as system headers and does not give you
excessive warnings from them. This is used because X11 does not like the
-ansi and -pedantic warnings that CDE is compiled with.

cde/config/cf/X11.rules
cde/config/cf/linux.cf

index 915897d9bf28dc76ca2ac5d110887227a83215c9..80aecff71db1f8e6fa7119f2577a1fd03b3765b0 100644 (file)
@@ -65,7 +65,9 @@ XCOMM $TOG: X11.rules /main/4 1997/04/30 15:23:24 kaleb $
 #define LdPostLibs     LdPostLib XLdPostLibs
 
 #if ImportX11
-# define TopXInclude   -I$(TOP)/imports/x11/include
+# ifndef TopXInclude
+#  define TopXInclude  -I$(TOP)/imports/x11/include
+# endif
 #elif !UseInstalledX11
 # define TopXInclude   -I$(TOP)/exports/include
 #else
index 390bca942164707446984e685a869f921ba2470c..18c73ea2a84ecc6cae204fa932fb7ae746398889 100644 (file)
@@ -1,5 +1,10 @@
 XCOMM platform:  $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
 
+/* To reduce the number of warnings generated by X11 and Motif headers that
+   dislike -ansi and -pedantic we can include them with -isystem instead of
+   -I, this tells GCC to treat them as system includes out of our control */
+#define TopXInclude -isystem $(TOP)/imports/x11/include
+
 #ifndef OSName
 #define OSName                 DefaultOSName
 #endif