diff options
author | Chris Robinson <[email protected]> | 2022-12-06 01:48:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-12-06 01:48:58 -0800 |
commit | 4d757068c4784a18026089fd812949703bd9470a (patch) | |
tree | 1a1c2f819d14acc7a32cc26f10ffa1227c72b744 /core/logging.cpp | |
parent | 25a6814cf36bee82b24cb1b5f40769e66c327db4 (diff) |
Avoid using a macro to wrap standard attributes
Diffstat (limited to 'core/logging.cpp')
-rw-r--r-- | core/logging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/logging.cpp b/core/logging.cpp index ec81764c..8efa6a70 100644 --- a/core/logging.cpp +++ b/core/logging.cpp @@ -26,7 +26,7 @@ void al_print(LogLevel level, FILE *logfile, const char *fmt, ...) va_start(args, fmt); va_copy(args2, args); const int msglen{std::vsnprintf(str, sizeof(stcmsg), fmt, args)}; - if(msglen >= 0 && static_cast<size_t>(msglen) >= sizeof(stcmsg)) [[alunlikely]] + if(msglen >= 0 && static_cast<size_t>(msglen) >= sizeof(stcmsg)) [[unlikely]] { dynmsg.resize(static_cast<size_t>(msglen) + 1u); str = dynmsg.data(); @@ -66,7 +66,7 @@ void al_print(LogLevel level, FILE *logfile, const char *fmt, ...) va_start(args, fmt); va_copy(args2, args); const int msglen{std::vsnprintf(str, sizeof(stcmsg), fmt, args)}; - if(msglen >= 0 && static_cast<size_t>(msglen) >= sizeof(stcmsg)) [[alunlikely]] + if(msglen >= 0 && static_cast<size_t>(msglen) >= sizeof(stcmsg)) [[unlikely]] { dynmsg.resize(static_cast<size_t>(msglen) + 1u); str = dynmsg.data(); |