OpenBSD: tone down compiler warnings a bit
authorJon Trulson <jon@radscan.com>
Fri, 15 Jun 2018 20:52:21 +0000 (13:52 -0700)
committerJon Trulson <jon@radscan.com>
Fri, 15 Jun 2018 20:59:04 +0000 (14:59 -0600)
So many of these are just noise.  Someday maybe we can eliminate
these, but for now they just obscure real problems.

cde/config/cf/OpenBSD.cf

index 6f1310d7fa732a9f74d36e53538602d996ccc127..add7c29e3be55580865d101f8592dc7029f96059 100644 (file)
@@ -1051,7 +1051,7 @@ CXXDEPENDINCLUDE != CcCmd -v -x c++ /dev/null -fsyntax-only \
 #endif
 
 #if !defined(GccWarningOptions)
-# define GccWarningOptions             -Wall -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch
+# define GccWarningOptions             -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch -Wno-unused-result -Wno-deprecated-register
 #endif
 
 #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
@@ -1059,10 +1059,10 @@ CXXDEPENDINCLUDE != CcCmd -v -x c++ /dev/null -fsyntax-only \
 
 #define CplusplusLibC           -lstdc++
 #ifndef CplusplusOptions
-#define CplusplusOptions       -Wall -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch
+#define CplusplusOptions       GccWarningOptions
 #endif
 #ifndef LibraryCplusplusOptions
-#define LibraryCplusplusOptions        -Wall -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch
+#define LibraryCplusplusOptions        GccWarningOptions
 #endif
 
 #define DependFileName         .depend