diff options
| author | Léo Lam <leo@leolam.fr> | 2021-10-15 21:45:27 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-10-15 21:51:01 +0200 |
| commit | 7855e5f73b375433135cd9d319fda186023523e9 (patch) | |
| tree | 7e5424f19d66ea2306861eb29163a9e1ef918aaf /Source/Android/jni/MainAndroid.cpp | |
| parent | 6bf10e02766b7c3db30797250c0f3f5fae2eb2d4 (diff) | |
Turn MAX_LOGLEVEL into a true constant (and fix self-comparison warning)
This replaces the MAX_LOGLEVEL define with a constexpr variable
in order to fix self-comparison warnings in the logging macros
when compiling with Clang. (Without this change, the log level check
in the logging macros is expanded into something like this:
`if (LINFO <= LINFO)`, which triggers a tautological compare warning.)
Diffstat (limited to 'Source/Android/jni/MainAndroid.cpp')
| -rw-r--r-- | Source/Android/jni/MainAndroid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 53a87da1bc..14197d79d2 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -402,7 +402,7 @@ Java_org_dolphinemu_dolphinemu_NativeLibrary_GetDefaultGraphicsBackendName(JNIEn JNIEXPORT jint JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GetMaxLogLevel(JNIEnv*, jclass) { - return static_cast<jint>(MAX_LOGLEVEL); + return static_cast<jint>(Common::Log::MAX_LOGLEVEL); } JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_SetProfiling(JNIEnv*, jclass, |
