mdbx: conform to and use -Wpedantic.

Change-Id: I3056af7ae53c5a7c3ecbfe828ab1d5ee94c2bc26
This commit is contained in:
Leonid Yuriev
2019-10-26 00:02:28 +03:00
parent c694325ab7
commit 84bff89eb1
9 changed files with 136 additions and 140 deletions

View File

@@ -23,7 +23,7 @@ namespace chrono {
typedef union time {
uint64_t fixedpoint;
struct {
__anonymous_struct_extension__ struct {
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
uint32_t fractional;
union {

View File

@@ -90,7 +90,7 @@ void osal_setup(const std::vector<actor_config> &actors) {
if (rc)
failure_perror("pthread_cond_init(shared)", rc);
log_trace("osal_setup: event(shared pthread_cond) %" PRIuPTR " -> %p", i,
event);
__Wpedantic_format_voidptr(event));
}
shared->conds_size = actors.size() + 1;

View File

@@ -82,7 +82,7 @@ struct txn_deleter /* : public std::unary_function<void, MDBX_txn *> */ {
void operator()(MDBX_txn *txn) const {
int rc = mdbx_txn_abort(txn);
if (rc)
log_trouble(mdbx_func_, "mdbx_txn_abort()", rc);
log_trouble(__func__, "mdbx_txn_abort()", rc);
}
};