Bug 1880804 [wpt PR 44645] - Implement constructor in RTCEncodedVideoFrame, a=testonly
[gecko.git] / third_party / libwebrtc / moz-patch-stack / 0004.patch
blobabc650317e4299022d4d69c42298ed613ad83d45
1 From: Dan Minor <dminor@mozilla.com>
2 Date: Wed, 18 Nov 2020 13:33:00 -0500
3 Subject: Bug 1654112 - Suppress -Wclass-varargs warning in logging.h. r=ng
5 This needs some investigation to see why we get this warning when it is not
6 present upstream.
8 Since both were doing the same thing for different compiler chains,
9 also includes:
10 Bug 1654112 - linux build fix (pragmas) for base-toolchains* . r=ng
12 Differential Revision: https://phabricator.services.mozilla.com/D130086
13 Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/8d832e832ffe513246c0763a56376a8022b2447b
14 ---
15 rtc_base/logging.h | 13 +++++++++++++
16 1 file changed, 13 insertions(+)
18 diff --git a/rtc_base/logging.h b/rtc_base/logging.h
19 index df7f173f58..a3733d7543 100644
20 --- a/rtc_base/logging.h
21 +++ b/rtc_base/logging.h
22 @@ -48,6 +48,14 @@
23 #ifndef RTC_BASE_LOGGING_H_
24 #define RTC_BASE_LOGGING_H_
26 +#pragma GCC diagnostic push
27 +#pragma GCC diagnostic ignored "-Wvarargs"
29 +#if defined(__clang__)
30 +# pragma clang diagnostic push
31 +# pragma clang diagnostic ignored "-Wclass-varargs"
32 +#endif
34 #include <errno.h>
36 #include <atomic>
37 @@ -764,4 +772,9 @@ inline const char* AdaptString(const std::string& str) {
39 } // namespace rtc
41 +#pragma GCC diagnostic pop
42 +#if defined(__clang__)
43 +# pragma clang diagnostic pop
44 +#endif
46 #endif // RTC_BASE_LOGGING_H_