void DBFixture::delete_row(const Name &name, const ClientId &owner)
{
- bool exit_flag;
+ bool exit_flag=0;
BOOST_REQUIRE_NO_THROW(exit_flag = m_db.deleteRow(name, owner));
BOOST_REQUIRE_MESSAGE(true == exit_flag, "remove name failed: no rows removed");
}
SET(CKM_DB_MERGE "ckm_db_merge")
SET(KEY_MANAGER_PATH ${PROJECT_SOURCE_DIR}/src/manager)
+ADD_DEFINITIONS("-Wno-alloc-size-larger-than")
+
FIND_PACKAGE(Threads REQUIRED)
INCLUDE_DIRECTORIES(
int main(int argc, char* argv[])
{
+ std::chrono::duration<double> duration{};
int ret;
ckmc_policy_s policy {nullptr, false};
ckmc_raw_buffer_s* input = nullptr;
goto finish;
}
- std::chrono::duration<double> duration;
for(;;) {
size_t chunkSize = std::min(size, maxSize);
#define STRINGIFY_15(msg, ...) << msg STRINGIFY_14(__VA_ARGS__)
#define STRINGIFY_(N, ...) CONCAT(STRINGIFY_, N)(__VA_ARGS__)
+/*
+ * flush() is needed to work around a bug described here:
+ * https://bugs.llvm.org/show_bug.cgi?id=20596
+ */
#define Stringify(...) \
- (static_cast<std::ostringstream &>(std::ostringstream() \
+ (static_cast<std::ostringstream &>(std::ostringstream().flush() \
STRINGIFY_(PP_NARG(__VA_ARGS__), __VA_ARGS__))).str()
#include <cctype>
#include <algorithm>
+#include <stdexcept>
#include <exception>
namespace CKM {
}
Token token = wrappingKey->unwrap(params,
- Crypto::Data(keyType, std::move(wrappedKey)),
+ Crypto::Data(keyType, wrappedKey),
policy.password,
digest);
#include <functional>
#include <vector>
+#include <string>
namespace CKM {
if( x<99 ){
pIdx->pTable->nRowLogEst = x = 99;
}
- if( pIdx->pPartIdxWhere!=0 ) x -= 10; assert( 10==sqlite3LogEst(2) );
+ if( pIdx->pPartIdxWhere!=0 ) x -= 10;
+ assert( 10==sqlite3LogEst(2) );
a[0] = x;
/* Estimate that a[1] is 10, a[2] is 9, a[3] is 8, a[4] is 7, a[5] is
ADD_DEFINITIONS("-DBOOST_TEST_DYN_LINK")
ADD_DEFINITIONS("-DOVERRIDE_SOCKET_TIMEOUT=10")
+ADD_DEFINITIONS("-Wno-self-move")
+ADD_DEFINITIONS("-Wno-stringop-truncation")
SET(MANAGER_PATH ${PROJECT_SOURCE_DIR}/src/manager)