Add compile-time warning for RTC_LOG(INFO)

Bug: webrtc:13362
Change-Id: I3727891bfeb192941f249a74ead5ef38ac8acc2f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/238800
Reviewed-by: Niels Moller <nisse@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35411}
This commit is contained in:
Harald Alvestrand
2021-11-23 13:53:29 +00:00
committed by WebRTC LUCI CQ
parent 6c3c3db184
commit a18cad9c09

View File

@ -91,8 +91,10 @@ enum LoggingSeverity {
LS_NONE,
// Compatibility aliases, to be deleted.
// TODO(bugs.webrtc.org/13362): Remove usage and delete.
INFO = LS_INFO,
INFO [[deprecated("Use LS_INFO")]] = LS_INFO,
// WARNING [[deprecated("Use LS_WARNING")]] = LS_WARNING,
WARNING = LS_WARNING,
// LERROR [[deprecated("Use LS_ERROR")]] = LS_ERROR
LERROR = LS_ERROR
};