From 41a6a7880eef8be529284436b5731bdfe05e8c5e Mon Sep 17 00:00:00 2001 From: Hemant <37903423+hemantbits@users.noreply.github.com> Date: Fri, 12 Oct 2018 13:25:19 +0100 Subject: [PATCH] Fix warnings Fixed these warnings: src/logging_unittest.cc: At global scope: src/logging_unittest.cc:1081:13: warning: 'void MyCheck(bool, bool)' defined but not used [-Wunused-function] static void MyCheck(bool a, bool b) { ^~~~~~~ src/logging_unittest.cc:1078:13: warning: 'void MyFatal()' defined but not used [-Wunused-function] static void MyFatal() { ^~~~~~~ --- src/logging_unittest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/logging_unittest.cc b/src/logging_unittest.cc index 8770d52..d046711 100644 --- a/src/logging_unittest.cc +++ b/src/logging_unittest.cc @@ -1075,13 +1075,14 @@ TEST(Strerror, logging) { // Simple routines to look at the sizes of generated code for LOG(FATAL) and // CHECK(..) via objdump +/* static void MyFatal() { LOG(FATAL) << "Failed"; } static void MyCheck(bool a, bool b) { CHECK_EQ(a, b); } - +*/ #ifdef HAVE_LIB_GMOCK TEST(DVLog, Basic) {