]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove -Wconversion from the list of flags for gcc. With recent mainline versions...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Jan 2007 21:34:32 +0000 (21:34 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Jan 2007 21:34:32 +0000 (21:34 +0000)
void f(int);
void g() {
  unsigned int i = 0;
  f(i);
}
because of the conversion from unsigned int to int. We have literally thousands of these places (and libstdc++ has many too) that are most likely ok.

git-svn-id: https://svn.dealii.org/trunk@14375 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index b38ec2f0b6e1619f40dc9dbde1a2289ac18e573c..30f247c933d80bc1484ba66ce4ed22454a127b4f 100644 (file)
@@ -379,7 +379,7 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
   dnl First the flags for gcc compilers
   if test "$GXX" = yes ; then
     CXXFLAGSO="$CXXFLAGS -O2 -Wuninitialized -felide-constructors -ftemplate-depth-128"
-    CXXFLAGSG="$CXXFLAGS -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual -Wsynth -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-128"
+    CXXFLAGSG="$CXXFLAGS -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual -Wsynth -Wsign-compare -Wswitch -ftemplate-depth-128"
 
     dnl BOOST uses long long, so don't warn about this
     CXXFLAGSG="$CXXFLAGSG -Wno-long-long"
index ae9c4470d2ecfaf5331a38592c08b7c1379b6f30..8b868cbc0226314031d63ce5225e371426c7f65f 100755 (executable)
@@ -3223,7 +3223,7 @@ echo "${ECHO_T}Unrecognized C++ compiler -- Try to go ahead and get help from de
 
     if test "$GXX" = yes ; then
     CXXFLAGSO="$CXXFLAGS -O2 -Wuninitialized -felide-constructors -ftemplate-depth-128"
-    CXXFLAGSG="$CXXFLAGS -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual -Wsynth -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-128"
+    CXXFLAGSG="$CXXFLAGS -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual -Wsynth -Wsign-compare -Wswitch -ftemplate-depth-128"
 
         CXXFLAGSG="$CXXFLAGSG -Wno-long-long"
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.