From: Wolfgang Bangerth Date: Wed, 20 Aug 2014 18:49:26 +0000 (-0500) Subject: Silence a warning from gcc 4.9.1. X-Git-Tag: v8.2.0-rc1~193^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85029988ae6891e056029c37414f8ef65fca9948;p=dealii.git Silence a warning from gcc 4.9.1. 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 --- diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index ec20c421af..49423a23d7 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -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