From 116a90be6d50f13e76dbddeb7d5e3462a9b975c0 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 24 Sep 2016 11:41:19 +0200 Subject: [PATCH] Fix compiler warnings --- test/cpp-utils/assert/assert_release_test.cpp | 2 ++ test/fspp/testutils/FuseTest.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/cpp-utils/assert/assert_release_test.cpp b/test/cpp-utils/assert/assert_release_test.cpp index 05ef87f6..49d8cb34 100644 --- a/test/cpp-utils/assert/assert_release_test.cpp +++ b/test/cpp-utils/assert/assert_release_test.cpp @@ -2,7 +2,9 @@ #include //Include the ASSERT macro for a release build +#ifndef NDEBUG #define NDEBUG +#endif #include "cpp-utils/assert/assert.h" using testing::MatchesRegex; diff --git a/test/fspp/testutils/FuseTest.cpp b/test/fspp/testutils/FuseTest.cpp index 491d355f..4113b846 100644 --- a/test/fspp/testutils/FuseTest.cpp +++ b/test/fspp/testutils/FuseTest.cpp @@ -37,7 +37,7 @@ FuseTest::FuseTest(): fsimpl() { ON_CALL(fsimpl, rename(_,_)).WillByDefault(defaultAction); ON_CALL(fsimpl, readDir(_)).WillByDefault(defaultAction); ON_CALL(fsimpl, utimens(_,_,_)).WillByDefault(defaultAction); - ON_CALL(fsimpl, statfs(_,_)).WillByDefault(Invoke([](const char *path, struct statvfs *result) { + ON_CALL(fsimpl, statfs(_,_)).WillByDefault(Invoke([](const char */*path*/, struct statvfs *result) { ::statvfs("/", result); // As dummy value take the values from the root filesystem })); ON_CALL(fsimpl, chmod(_,_)).WillByDefault(defaultAction);