]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR:bug 7656 correction from Alexey PETROV
authorprascle <prascle>
Mon, 10 Jan 2005 08:24:26 +0000 (08:24 +0000)
committerprascle <prascle>
Mon, 10 Jan 2005 08:24:26 +0000 (08:24 +0000)
salome_adm/unix/config_files/production.m4

index e3da0539b890d86d2665320df4c629ff51083847..dfa8b39e9a1f8b56fef844b997792dcbd6a546fd 100644 (file)
@@ -53,15 +53,15 @@ no) enable_production=no ;;
 esac],
 enable_production=AC_ENABLE_PRODUCTION_DEFAULT)dnl
 
-# supprimer car ne marche qu'avec compilo gnu
-# CXXVERSION=`$CXX --version`
-# if test "X$CXXVERSION" != "X2.95.3"; then
-#  CXXFLAGS="${CXXFLAGS} -fmessage-length=0 "
-# fi
+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(-fmessage-length=0,CXXFLAGS)
+AC_CXX_OPTION(-Wunused,CXXFLAGS)
 
 if test "X$enable_production" = "Xyes"; then
   CFLAGS="$CFLAGS -O"
-#  CXXFLAGS="$CXXFLAGS -O -Wuninitialized "
   AC_CXX_OPTION(-Wuninitialized,CXXFLAGS)
   CXXFLAGS="$CXXFLAGS -O "
 fi