diff --git a/third_party/libwebrtc/api/audio_codecs/audio_decoder_factory.h b/third_party/libwebrtc/api/audio_codecs/audio_decoder_factory.h index 4e05d1b9e147..73fbff3d6e8d 100644 --- a/third_party/libwebrtc/api/audio_codecs/audio_decoder_factory.h +++ b/third_party/libwebrtc/api/audio_codecs/audio_decoder_factory.h @@ -222,6 +222,12 @@ codec_pair_id ) { # +if +defined +( +__clang__ +) +# pragma clang diagnostic @@ -237,6 +243,8 @@ Wdeprecated - declarations " +# +endif return MakeAudioDecoder ( @@ -245,10 +253,18 @@ codec_pair_id ) ; # +if +defined +( +__clang__ +) +# pragma clang diagnostic pop +# +endif } } ; diff --git a/third_party/libwebrtc/moz-patch-stack/0122.patch b/third_party/libwebrtc/moz-patch-stack/0122.patch new file mode 100644 index 000000000000..6a965049a6c6 --- /dev/null +++ b/third_party/libwebrtc/moz-patch-stack/0122.patch @@ -0,0 +1,220 @@ +From +: +Michael +Froman +< +mfroman +mozilla +. +com +> +Date +: +Thu +19 +Sep +2024 +20 +: +27 +: +00 +- +0500 +Subject +: +Bug +1918268 +- +( +fix +- +e0fe4200eb +) +upstream +added +pragma +clang +statements +that +need +to +be +wrapped +Mercurial +Revision +: +https +: +/ +/ +hg +. +mozilla +. +org +/ +mozilla +- +central +/ +rev +/ +bc593cd2eaf8b31b72e9ec7cb6ff8527097a7041 +- +- +- +api +/ +audio_codecs +/ +audio_decoder_factory +. +h +| +4 ++ ++ ++ ++ +1 +file +changed +4 +insertions +( ++ +) +diff +- +- +git +a +/ +api +/ +audio_codecs +/ +audio_decoder_factory +. +h +b +/ +api +/ +audio_codecs +/ +audio_decoder_factory +. +h +index +282d4d9992 +. +. +4a157959f0 +100644 +- +- +- +a +/ +api +/ +audio_codecs +/ +audio_decoder_factory +. +h ++ ++ ++ +b +/ +api +/ +audio_codecs +/ +audio_decoder_factory +. +h +- +60 +10 ++ +60 +14 +class +AudioDecoderFactory +: +public +RefCountInterface +{ +const +Environment +& +env +const +SdpAudioFormat +& +format +absl +: +: +optional +< +AudioCodecPairId +> +codec_pair_id +) +{ ++ +# +if +defined +( +__clang__ +) +# +pragma +clang +diagnostic +push +# +pragma +clang +diagnostic +ignored +" +- +Wdeprecated +- +declarations +" ++ +# +endif +return +MakeAudioDecoder +( +format +codec_pair_id +) +; ++ +# +if +defined +( +__clang__ +) +# +pragma +clang +diagnostic +pop ++ +# +endif +} +} +;