mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-07 01:22:20 +08:00
mdbx: conform to and use -Wpedantic
.
Change-Id: I3056af7ae53c5a7c3ecbfe828ab1d5ee94c2bc26
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user