Merge branch 'master' into cde-next
authorJon Trulson <jon@radscan.com>
Thu, 28 Jun 2018 22:55:04 +0000 (16:55 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 28 Jun 2018 22:55:04 +0000 (16:55 -0600)
1  2 
cde/config/cf/FreeBSD.cf
cde/config/cf/OpenBSD.cf
cde/programs/dtmail/dtmail/FindDialog.C

index 7a2bb7b50c74f586b82d133f4dfecff357cd6589,88d224fbdc42012659f9d32b92d7087198c66618..34528bb1fd47e7ac75611e403428ed653f77b51f
@@@ -179,14 -176,31 +176,31 @@@ USE_GCC = UseGc
  #endif
  #endif
  
- /* The GCC strength-reduce bug is fixed for FreeBSD 2.1.5 and later */
+ /* Suppress warnings dependant from compiler versions */
  #ifndef DefaultGcc2i386Opt
- #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 1) || (OSMajorVersion == 2 && OSMinorVersion == 1 && OSTeenyVersion >= 5)
- #define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
-         -Wno-unused-result
- #endif
+ # if defined(__clang__) && defined(__clang_major__) && defined(__clang_minor__)
+ #  if (__clang_major__ > 3) || \
+       (__clang_major__ == 3 && __clang_minor__ >= 4)
+ #   define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
 -           -Wno-unused-result -Wno-deprecated-register
++           -Wno-unused-result 
+ #  else
+ #   define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
+            -Wno-unused-result
+ #  endif
+ # elif defined(__GNUC__) && defined(__GNUC_MINOR__)
+ #  if (__GNUC__ > 4) || \
+       (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
+ #   define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings \
+            -Wno-unused-result -Wno-deprecated
+ #  else
+ #   define DefaultGcc2i386Opt -O2 -fno-strict-aliasing -Wno-write-strings
+ #  endif
+ # else
+ #   define DefaultGcc2i386Opt -O2 -fno-strict-aliasing
+ # endif
  #endif
  
  #ifndef OptimizedCDebugFlags
  # if defined(i386Architecture) || defined(AMD64Architecture)
  #  define OptimizedCDebugFlags DefaultGcc2i386Opt
index 8251418836ec9f23681188dcab9a07734a24e538,9402e199e5d83fd22b1a17c1945192fcc7c41bab..c9e30dce62807fbe2ac5bd1709bb8712587ba769
@@@ -1050,8 -1048,13 +1048,13 @@@ CXXDEPENDINCLUDE != CcCmd -v -x c++ /de
  # endif
  #endif
  
+ /* Suppress warnings dependant from compiler versions */
  #if !defined(GccWarningOptions)
- # define GccWarningOptions            -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch -Wno-unused-result
+ # if (defined __clang__)
 -#  define GccWarningOptions   -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch -Wno-unused-result -Wno-deprecated-register
++#  define GccWarningOptions   -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch -Wno-unused-result 
+ # else
+ #  define GccWarningOptions   -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch
+ # endif
  #endif
  
  #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)