mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-25 08:02:21 +08:00
mdbx++: changes after codereview-1 (part 2 of 2).
Change-Id: I8e1ca134bb8c5d447895f116247dfd12fa6871f0
This commit is contained in:
@@ -31,7 +31,7 @@ const char *test_strerror(int errnum) {
|
||||
return mdbx_strerror_r(errnum, buf, sizeof(buf));
|
||||
}
|
||||
|
||||
__noreturn void failure_perror(const char *what, int errnum) {
|
||||
MDBX_NORETURN void failure_perror(const char *what, int errnum) {
|
||||
failure("%s failed: %s (%d)\n", what, test_strerror(errnum), errnum);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ __noreturn void failure_perror(const char *what, int errnum) {
|
||||
|
||||
static void mdbx_logger(MDBX_log_level_t priority, const char *function,
|
||||
int line, const char *msg,
|
||||
va_list args) cxx17_noexcept {
|
||||
va_list args) MDBX_CXX17_NOEXCEPT {
|
||||
if (!function)
|
||||
function = "unknown";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user