diff options
author | Howard Chu <hyc@symas.com> | 2017-04-23 23:44:19 +0100 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2017-04-23 23:44:19 +0100 |
commit | 710b2e80c6225b81ca42f272560158f51c23cd31 (patch) | |
tree | 3b784fbebee9bfce46cb007eb8cbf0e1d2a6ae1f /external/easylogging++ | |
parent | Merge pull request #1956 (diff) | |
download | monero-710b2e80c6225b81ca42f272560158f51c23cd31.tar.xz |
Silence clang++ warnings
Using defined(foo) in a macro expansion is undefined.
Diffstat (limited to 'external/easylogging++')
-rw-r--r-- | external/easylogging++/easylogging++.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/external/easylogging++/easylogging++.h b/external/easylogging++/easylogging++.h index 195df7e5c..8f592899e 100644 --- a/external/easylogging++/easylogging++.h +++ b/external/easylogging++/easylogging++.h @@ -290,7 +290,11 @@ ELPP_INTERNAL_DEBUGGING_OUT_INFO << ELPP_INTERNAL_DEBUGGING_MSG(internalInfoStre #define ELPP_VARIADIC_TEMPLATES_SUPPORTED \ (ELPP_COMPILER_GCC || ELPP_COMPILER_CLANG || ELPP_COMPILER_INTEL || (ELPP_COMPILER_MSVC && _MSC_VER >= 1800)) // Logging Enable/Disable macros -#define ELPP_LOGGING_ENABLED (!defined(ELPP_DISABLE_LOGS)) +#ifdef ELPP_DISABLE_LOGS +# define ELPP_LOGGING_ENABLED 0 +#else +# define ELPP_LOGGING_ENABLED 1 +#endif #if (!defined(ELPP_DISABLE_DEBUG_LOGS) && (ELPP_LOGGING_ENABLED)) # define ELPP_DEBUG_LOG 1 #else |