Fix several "defined but not used" warnings with gcc-5

GCC 5 is able to prove that in some translation units the static Logger
instance is defined but never used, and generates an unused variable
warning for each one of them. These warnings become fatal errors when
building in debug mode, due to -Werror.

Silence the compiler by not declaring the unused variables.

refs #2767

Change-Id: Icacc579d917d660582221ef090954ec827f46149
This commit is contained in:
Davide Pesavento authored and Junxiao Shi committed 2015-04-24 10:25:56 -07:00
1 parent ce81230b09
commit db9d37edab
12 files changed
+3 -45

No files matched your search

-2
View File
@@ -30,8 +30,6 @@
namespace nfd {
NFD_LOG_INIT("ConfigFile");
void
ConfigFile::throwErrorOnUnknownSection(const std::string& filename,
const std::string& sectionName,