From 4d757068c4784a18026089fd812949703bd9470a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 6 Dec 2022 01:48:58 -0800 Subject: Avoid using a macro to wrap standard attributes --- core/logging.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/logging.h') diff --git a/core/logging.h b/core/logging.h index 87f1c0f5..e90de661 100644 --- a/core/logging.h +++ b/core/logging.h @@ -19,17 +19,17 @@ extern FILE *gLogFile; #if !defined(_WIN32) && !defined(__ANDROID__) #define TRACE(...) do { \ - if(gLogLevel >= LogLevel::Trace) [[alunlikely]] \ + if(gLogLevel >= LogLevel::Trace) [[unlikely]] \ fprintf(gLogFile, "[ALSOFT] (II) " __VA_ARGS__); \ } while(0) #define WARN(...) do { \ - if(gLogLevel >= LogLevel::Warning) [[alunlikely]] \ + if(gLogLevel >= LogLevel::Warning) [[unlikely]] \ fprintf(gLogFile, "[ALSOFT] (WW) " __VA_ARGS__); \ } while(0) #define ERR(...) do { \ - if(gLogLevel >= LogLevel::Error) [[alunlikely]] \ + if(gLogLevel >= LogLevel::Error) [[unlikely]] \ fprintf(gLogFile, "[ALSOFT] (EE) " __VA_ARGS__); \ } while(0) -- cgit v1.2.3