From 0bff76bb8abf0068ab9beae365faf7bcfe7d7fec Mon Sep 17 00:00:00 2001 From: Jeremy Leconte Date: Mon, 7 Oct 2024 09:36:07 +0200 Subject: [PATCH] SuppressWarnings EnumOrdinal. This is to fix compile failure following https://chromium-review.googlesource.com/c/chromium/src/+/5901711. Change-Id: I817813e24c96ec542c0e030e1e2964f8bbd591fc Bug: None Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/364464 Reviewed-by: Mirko Bonadei Commit-Queue: Jeremy Leconte Cr-Commit-Position: refs/heads/main@{#43178} --- rtc_base/java/src/org/webrtc/Logging.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtc_base/java/src/org/webrtc/Logging.java b/rtc_base/java/src/org/webrtc/Logging.java index e7a9921f4d..28337ae14a 100644 --- a/rtc_base/java/src/org/webrtc/Logging.java +++ b/rtc_base/java/src/org/webrtc/Logging.java @@ -106,7 +106,7 @@ public class Logging { // output. On Android, the output will be directed to Logcat. // Note: this function starts collecting the output of the RTC_LOG() macros. // TODO(bugs.webrtc.org/8491): Remove NoSynchronizedMethodCheck suppression. - @SuppressWarnings("NoSynchronizedMethodCheck") + @SuppressWarnings({"EnumOrdinal", "NoSynchronizedMethodCheck"}) public static synchronized void enableLogToDebugOutput(Severity severity) { if (loggable != null) { throw new IllegalStateException( @@ -117,6 +117,7 @@ public class Logging { loggingEnabled = true; } + @SuppressWarnings("EnumOrdinal") public static void log(Severity severity, String tag, String message) { if (tag == null || message == null) { throw new IllegalArgumentException("Logging tag or message may not be null.");