linux.cf: Add -Wno-unused-result to C flags
authorJon Trulson <jon@radscan.com>
Wed, 11 Apr 2018 21:36:16 +0000 (15:36 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 11 Apr 2018 22:25:52 +0000 (16:25 -0600)
There are several hundred of these and unless you intend to fix them,
they are just compiler noise.  If someone does want to go back and
redo all of these, then they can just re-enable this warning.

cde/config/cf/linux.cf

index 22ba1a313250e79bd0d4f4a2370d2b1615077e40..21ed5a08079d354623ece19792a9ef806444a331 100644 (file)
@@ -160,7 +160,8 @@ TIRPCLIB =
 #endif
 
 #if !defined(DefaultGcc2i386Opt)
-# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings
+# define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
+       -Wno-unused-result
 #endif
 
 #if LinuxCLibMajorVersion < 6