]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence a warning from gcc 4.9.1. 100/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 20 Aug 2014 18:49:26 +0000 (13:49 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 20 Aug 2014 18:49:26 +0000 (13:49 -0500)
The warning pertained to the fact that we define a function in an anonymous
namespace that is only called from a function inside an #ifdef ... #endif
block. The solution is to move the function into #ifdef ... #endif as well.

This addresses this test result: http://cdash.kyomu.43-1.org/viewBuildError.php?type=1&buildid=11683

source/base/data_out_base.cc

index ec20c421affda961ea8ca31e02f703bdc3ff589d..49423a23d7eedccaa66f3eb67339ad1a18eb765b 100644 (file)
@@ -78,6 +78,7 @@ namespace
 
 namespace
 {
+#ifdef DEAL_II_WITH_ZLIB
   // the functions in this namespace are
   // taken from the libb64 project, see
   // http://sourceforge.net/projects/libb64
@@ -219,7 +220,7 @@ namespace
 
     return encoded_data;
   }
-
+#endif
 
 
 #ifdef DEAL_II_WITH_ZLIB

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.