Fix: warning/compilation issue on android
Compiler would complain "error: format not a string literal and no format arguments [-Werror=format-security]", since the third argument of __android_log_print() is actually the format string. __android_log_write() is anyway more suited since we're not using any format here. Change-Id: Ic19102a9f15038a7cfcb06b605d7b9a73c3e1175 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>bb10
parent
283ba0ef01
commit
7247cb9e4a
|
|
@ -211,7 +211,7 @@ void QPlainTestLogger::outputMessage(const char *str)
|
|||
#elif defined(Q_OS_WIN)
|
||||
OutputDebugStringA(str);
|
||||
#elif defined(Q_OS_ANDROID)
|
||||
__android_log_print(ANDROID_LOG_INFO, "QTestLib", str);
|
||||
__android_log_write(ANDROID_LOG_INFO, "QTestLib", str);
|
||||
#endif
|
||||
outputString(str);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue