View | Details | Raw Unified
Collapse All | Expand All

(-) switcher-0.3.7a-orig/acinclude.m4 (-5 / +4 lines)
 Lines 2559-2565    Link Here 
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
    if test "$kde_use_debug_code" != "no"; then
    if test "$kde_use_debug_code" != "no"; then
      if test "$CXX" = "KCC"; then
      if test "$CXX" = "KCC"; then
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
      else
      else
        if test "$kde_use_debug_code" = "full"; then
        if test "$kde_use_debug_code" = "full"; then
          CXXFLAGS="-g3 $CXXFLAGS"
          CXXFLAGS="-g3 $CXXFLAGS"
 Lines 2597-2609    Link Here 
      if test "$GCC" = "yes"; then
      if test "$GCC" = "yes"; then
        case $host in
        case $host in
          *-*-linux-gnu)	
          *-*-linux-gnu)	
            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
          ;;
          ;;
        esac
        esac
        CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
        CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
        KDE_CHECK_COMPILER_FLAG(Wundef,[CXXFLAGS="-Wundef $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wundef,[CXXFLAGS="-Wundef $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wbad-function-cast,[CXXFLAGS="-Wbad-function-cast $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wno-long-long,[CXXFLAGS="-Wno-long-long $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wno-long-long,[CXXFLAGS="-Wno-long-long $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wnon-virtual-dtor,[CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wnon-virtual-dtor,[CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"])
     fi
     fi
 Lines 2982-2988    Link Here 
   AC_CACHE_VAL(kde_cv_func_stpcpy,
   AC_CACHE_VAL(kde_cv_func_stpcpy,
   [
   [
   kde_safe_cxxflags=$CXXFLAGS
   kde_safe_cxxflags=$CXXFLAGS
   CXXFLAGS="-Wmissing-prototypes -Werror"
   CXXFLAGS="-Werror"
   AC_LANG_SAVE
   AC_LANG_SAVE
   AC_LANG_CPLUSPLUS
   AC_LANG_CPLUSPLUS
   AC_TRY_COMPILE([
   AC_TRY_COMPILE([
(-) switcher-0.3.7a-orig/aclocal.m4 (-5 / +4 lines)
 Lines 2571-2577    Link Here 
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
    if test "$kde_use_debug_code" != "no"; then
    if test "$kde_use_debug_code" != "no"; then
      if test "$CXX" = "KCC"; then
      if test "$CXX" = "KCC"; then
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
      else
      else
        if test "$kde_use_debug_code" = "full"; then
        if test "$kde_use_debug_code" = "full"; then
          CXXFLAGS="-g3 $CXXFLAGS"
          CXXFLAGS="-g3 $CXXFLAGS"
 Lines 2609-2621    Link Here 
      if test "$GCC" = "yes"; then
      if test "$GCC" = "yes"; then
        case $host in
        case $host in
          *-*-linux-gnu)	
          *-*-linux-gnu)	
            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
          ;;
          ;;
        esac
        esac
        CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
        CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
        KDE_CHECK_COMPILER_FLAG(Wundef,[CXXFLAGS="-Wundef $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wundef,[CXXFLAGS="-Wundef $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wbad-function-cast,[CXXFLAGS="-Wbad-function-cast $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wno-long-long,[CXXFLAGS="-Wno-long-long $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wno-long-long,[CXXFLAGS="-Wno-long-long $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wnon-virtual-dtor,[CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"])
        KDE_CHECK_COMPILER_FLAG(Wnon-virtual-dtor,[CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"])
     fi
     fi
 Lines 2994-3000    Link Here 
   AC_CACHE_VAL(kde_cv_func_stpcpy,
   AC_CACHE_VAL(kde_cv_func_stpcpy,
   [
   [
   kde_safe_cxxflags=$CXXFLAGS
   kde_safe_cxxflags=$CXXFLAGS
   CXXFLAGS="-Wmissing-prototypes -Werror"
   CXXFLAGS="-Werror"
   AC_LANG_SAVE
   AC_LANG_SAVE
   AC_LANG_CPLUSPLUS
   AC_LANG_CPLUSPLUS
   AC_TRY_COMPILE([
   AC_TRY_COMPILE([