From: bangerth Date: Thu, 25 Jan 2007 21:34:32 +0000 (+0000) Subject: Remove -Wconversion from the list of flags for gcc. With recent mainline versions... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8db53ad8225c06cfea5ea83148d4d9a57bf43b8e;p=dealii-svn.git Remove -Wconversion from the list of flags for gcc. With recent mainline versions, gcc also warns about things like 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 --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index b38ec2f0b6..30f247c933 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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" diff --git a/deal.II/configure b/deal.II/configure index ae9c4470d2..8b868cbc02 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -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"