From 873c3e3d1ae1018966a37603bf6608dac5f4ae2d Mon Sep 17 00:00:00 2001 From: secher Date: Mon, 15 Nov 2004 12:13:15 +0000 Subject: [PATCH] =?utf8?q?rationalisation=20des=20contr=C3=B4les=20des=20o?= =?utf8?q?ptions=20du=20compilateurs=20c++?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- salome_adm/unix/config_files/ac_cxx_warnings.m4 | 4 ++++ salome_adm/unix/config_files/production.m4 | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) 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 -- 2.39.2