From: secher Date: Mon, 15 Nov 2004 12:13:15 +0000 (+0000) Subject: rationalisation des contrĂ´les des options du compilateurs c++ X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=873c3e3d1ae1018966a37603bf6608dac5f4ae2d;p=modules%2Fkernel.git rationalisation des contrĂ´les des options du compilateurs c++ --- diff --git a/salome_adm/unix/config_files/ac_cxx_warnings.m4 b/salome_adm/unix/config_files/ac_cxx_warnings.m4 index 862f5e83c..b23ca3bd2 100644 --- a/salome_adm/unix/config_files/ac_cxx_warnings.m4 +++ b/salome_adm/unix/config_files/ac_cxx_warnings.m4 @@ -27,4 +27,8 @@ dnl @author Bernard Secher (CEA) - 04/12/2003 dnl AC_DEFUN([AC_CXX_WARNINGS],[ AC_CXX_OPTION(-Wno-deprecated,CXXFLAGS) + AC_CXX_OPTION(-Wparentheses,CXXFLAGS) + AC_CXX_OPTION(-Wreturn-type,CXXFLAGS) + AC_CXX_OPTION(-Wmissing-declarations,CXXFLAGS) + AC_CXX_OPTION(-Wunused,CXXFLAGS) ]) diff --git a/salome_adm/unix/config_files/production.m4 b/salome_adm/unix/config_files/production.m4 index 1cebe979e..e3da0539b 100644 --- a/salome_adm/unix/config_files/production.m4 +++ b/salome_adm/unix/config_files/production.m4 @@ -53,14 +53,6 @@ no) enable_production=no ;; esac], enable_production=AC_ENABLE_PRODUCTION_DEFAULT)dnl -# portage alpha/OSF -# CXXFLAGS="$CXXFLAGS -Wno-deprecated -Wparentheses -Wreturn-type -Wmissing-declarations -Wunused " -echo $CXX -AC_CXX_OPTION(-Wparentheses,CXXFLAGS) -AC_CXX_OPTION(-Wreturn-type,CXXFLAGS) -AC_CXX_OPTION(-Wmissing-declarations,CXXFLAGS) -AC_CXX_OPTION(-Wunused,CXXFLAGS) - # supprimer car ne marche qu'avec compilo gnu # CXXVERSION=`$CXX --version` # if test "X$CXXVERSION" != "X2.95.3"; then