Fix compiler warnings
This commit is contained in:
parent
46a2251e9d
commit
116a90be6d
@ -2,7 +2,9 @@
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
//Include the ASSERT macro for a release build
|
||||
#ifndef NDEBUG
|
||||
#define NDEBUG
|
||||
#endif
|
||||
#include "cpp-utils/assert/assert.h"
|
||||
|
||||
using testing::MatchesRegex;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user