Fix an unused variable warning on Android.
Bug: chromium:1203071 Change-Id: Iebd5443626f5dbfafc4e01c77190b67d1ef5f7aa Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/66800 Commit-Queue: Peter Kasting <pkasting@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Peter Kasting <pkasting@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
eb2bd4e250
commit
40b73c646e
|
@ -76,15 +76,15 @@ namespace dawn {
|
||||||
|
|
||||||
const char* severityName = SeverityName(mSeverity);
|
const char* severityName = SeverityName(mSeverity);
|
||||||
|
|
||||||
|
#if defined(DAWN_PLATFORM_ANDROID)
|
||||||
|
android_LogPriority androidPriority = AndroidLogPriority(mSeverity);
|
||||||
|
__android_log_print(androidPriority, "Dawn", "%s: %s\n", severityName, fullMessage.c_str());
|
||||||
|
#else // defined(DAWN_PLATFORM_ANDROID)
|
||||||
FILE* outputStream = stdout;
|
FILE* outputStream = stdout;
|
||||||
if (mSeverity == LogSeverity::Warning || mSeverity == LogSeverity::Error) {
|
if (mSeverity == LogSeverity::Warning || mSeverity == LogSeverity::Error) {
|
||||||
outputStream = stderr;
|
outputStream = stderr;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(DAWN_PLATFORM_ANDROID)
|
|
||||||
android_LogPriority androidPriority = AndroidLogPriority(mSeverity);
|
|
||||||
__android_log_print(androidPriority, "Dawn", "%s: %s\n", severityName, fullMessage.c_str());
|
|
||||||
#else // defined(DAWN_PLATFORM_ANDROID)
|
|
||||||
// Note: we use fprintf because <iostream> includes static initializers.
|
// Note: we use fprintf because <iostream> includes static initializers.
|
||||||
fprintf(outputStream, "%s: %s\n", severityName, fullMessage.c_str());
|
fprintf(outputStream, "%s: %s\n", severityName, fullMessage.c_str());
|
||||||
fflush(outputStream);
|
fflush(outputStream);
|
||||||
|
|
Loading…
Reference in New Issue