diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-08-26 11:18:20 -0700 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2016-08-26 11:18:20 -0700 |
commit | 2b4b93f1abb123e68d1abc09e64f30d12faa9175 (patch) | |
tree | d31c3096bd3dd3e294c7e4ca3595411a7fcbfb3a /test | |
parent | 14452722fd5f6c48dcc340a94907d411aa8170c6 (diff) |
compilation: fix const/non-const issue under C++14/gcc 6
Building client-test fails because a const pointer looses the
const attribute while passing it through boost::bind.
Fixes:
boost/lambda/detail/function_adaptors.hpp:357:16: error: invalid conversion
from 'const SyncEvo::SyncSource*' to 'SyncEvo::SyncSource*' [-fpermissive]
return func(a1);
Diffstat (limited to 'test')
-rw-r--r-- | test/ClientTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ClientTest.cpp b/test/ClientTest.cpp index 3e3e5851..20e6e8b7 100644 --- a/test/ClientTest.cpp +++ b/test/ClientTest.cpp @@ -3324,7 +3324,7 @@ static void log(const char *text) CLIENT_TEST_LOG("%s", text); } -static void logSyncSourceReport(SyncSource *source) +static void logSyncSourceReport(const SyncSource *source) { CLIENT_TEST_LOG("source %s, start of cycle #%d: local new/mod/del/conflict %d/%d/%d/%d, remote %d/%d/%d/%d, mode %s", source->getName().c_str(), |