From 85029988ae6891e056029c37414f8ef65fca9948 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 20 Aug 2014 13:49:26 -0500 Subject: [PATCH] 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 --- source/base/data_out_base.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5