blob: e891c508f84c4b5a0d27ad088f0e91754b18afb4 [file] [log] [blame]
Karl Wiberg7ba22b82018-04-27 04:31:53 +02001/*
2 * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef RTC_BASE_SYSTEM_IGNORE_WARNINGS_H_
12#define RTC_BASE_SYSTEM_IGNORE_WARNINGS_H_
13
14#ifdef __clang__
15#define RTC_PUSH_IGNORING_WFRAME_LARGER_THAN() \
16 _Pragma("clang diagnostic push") \
17 _Pragma("clang diagnostic ignored \"-Wframe-larger-than=\"")
18#define RTC_POP_IGNORING_WFRAME_LARGER_THAN() _Pragma("clang diagnostic pop")
19#elif __GNUC__
20#define RTC_PUSH_IGNORING_WFRAME_LARGER_THAN() \
21 _Pragma("GCC diagnostic push") \
22 _Pragma("GCC diagnostic ignored \"-Wframe-larger-than=\"")
23#define RTC_POP_IGNORING_WFRAME_LARGER_THAN() _Pragma("GCC diagnostic pop")
24#else
25#define RTC_PUSH_IGNORING_WFRAME_LARGER_THAN()
26#define RTC_POP_IGNORING_WFRAME_LARGER_THAN()
27#endif
28
29#endif // RTC_BASE_SYSTEM_IGNORE_WARNINGS_H_