SET(CMAKE_C_FLAGS_DEBUG "-g -O0 -ggdb -Wp,-U_FORTIFY_SOURCE")
SET(CMAKE_CXX_FLAGS_DEBUG "-g -std=c++0x -O0 -ggdb -Wp,-U_FORTIFY_SOURCE")
SET(CMAKE_C_FLAGS_RELEASE "-g -O2")
-SET(CMAKE_CXX_FLAGS_RELEASE "-g -std=c++0x -O2")
+SET(CMAKE_CXX_FLAGS_RELEASE "-g -std=c++0x -O2 -Wno-shift-overflow")
SET(CMAKE_C_FLAGS_CCOV "-g -O2 --coverage")
SET(CMAKE_CXX_FLAGS_CCOV "-g -std=c++0x -O2 --coverage")
std::string("] ") << function << std::string("(): ") << message << mark.end;
fprintf(stdout, "%s\n", val.str().c_str());
} catch (const std::out_of_range &) {
- fprintf(stdout, "Unsupported log level: %d\n", level);
+ fprintf(stdout, "Unsupported log level: %d\n", (int)level);
}
}
// Encryption order flags (single choice)
const int ENCR_ORDER_OFFSET = 24;
-const int ENCR_ORDER_FILTER = INT_MAX << ENCR_ORDER_OFFSET; // 0xff000000
-const int ENCR_ORDER_CLEAR = ~ENCR_ORDER_FILTER; // 0x00ffffff
+const int64_t ENCR_ORDER_FILTER = (int64_t)(INT_MAX << ENCR_ORDER_OFFSET); // 0xff000000
+const int64_t ENCR_ORDER_CLEAR = (int64_t)(~ENCR_ORDER_FILTER); // 0x00ffffff
/*
* ENCR_ORDER_V1 - v1 encryption order. Token returned from store is encrypted with app key and
* optionally by custom user password. In such form it is stored in db.
}
}
- ~Transaction()
+ ~Transaction() noexcept(false)
{
try {
if (m_inTransaction) {
#include <vector>
#include <boost/test/unit_test.hpp>
#include <parser.h>
+#include <math.h>
using namespace CKM;
using namespace XML;