Loading...
Searching...
No Matches
4#if defined(__GNUC__) || defined(__clang__)
5#define RR_PUSH_WARNINGS _Pragma("GCC diagnostic push")
6#define RR_POP_WARNINGS _Pragma("GCC diagnostic pop")
8#define RR_PUSH_WARNINGS __pragma(warning(push))
9#define RR_POP_WARNINGS __pragma(warning(pop))
11#define RR_PUSH_WARNINGS
12#define RR_POP_WARNINGS
18#define RR_WITH_MAYBE_UNINITIALIZED_DISABLED(expr) \
19 RR_DISABLE_MAYBE_UNINITIALIZED_PUSH \
20 expr RR_DISABLE_MAYBE_UNINITIALIZED_POP
22#if defined(__GNUC__) && !defined(__clang__)
24#define RR_DISABLE_MAYBE_UNINITIALIZED_PUSH \
26 _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
28#define RR_DISABLE_MAYBE_UNINITIALIZED_PUSH RR_PUSH_WARNINGS
31#define RR_DISABLE_MAYBE_UNINITIALIZED_POP RR_POP_WARNINGS
36#if defined(__GNUC__) || defined(__clang__)
37#define RR_UNREACHABLE() __builtin_unreachable()
38#elif defined(_MSC_VER)
39#define RR_UNREACHABLE() __assume(false)
41#define RR_UNREACHABLE() \
47#if defined(__GNUC__) || defined(__clang__)
48#define RR_DISABLE_DEPRECATION_WARNING \
49 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
50#elif defined(_MSC_VER)
51#define RR_DISABLE_DEPRECATION_WARNING __pragma(warning(disable : 4996))
53#define RR_DISABLE_DEPRECATION_WARNING
57#if defined(__GNUC__) || defined(__clang__)
58#define RR_DISABLE_NULL_DEREF_WARNING _Pragma("GCC diagnostic ignored \"-Wnull-dereference\"")
60#define RR_DISABLE_NULL_DEREF_WARNING