C++20 fixes.

ABSL_CONST_INIT must be on definitions, not just declarations.

Bug: chromium:1284275
Change-Id: If57064ab9417df38f770c59e50be93a104748b72
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/263282
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Commit-Queue: Rasmus Brandt <brandtr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36994}
This commit is contained in:
Peter Kasting
2022-05-23 18:04:07 +00:00
committed by WebRTC LUCI CQ
parent ff0c0339a2
commit 0921d1e5c1
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
namespace webrtc {
const bool kIsLibaomAv1DecoderSupported = false;
ABSL_CONST_INIT const bool kIsLibaomAv1DecoderSupported = false;
std::unique_ptr<VideoDecoder> CreateLibaomAv1Decoder() {
return nullptr;

View File

@ -20,7 +20,7 @@ std::unique_ptr<VideoEncoder> CreateLibaomAv1EncoderIfSupported() {
return CreateLibaomAv1Encoder();
}
#else
const bool kIsLibaomAv1EncoderSupported = false;
ABSL_CONST_INIT const bool kIsLibaomAv1EncoderSupported = false;
std::unique_ptr<VideoEncoder> CreateLibaomAv1EncoderIfSupported() {
return nullptr;
}