mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 01:00:41 +01:00
Merge pull request #4957 from julthomas/dev/jth/rsyslog-8.2208.0-gcc-lt-5
conf: Fix #pragma GCC diagnostic not allowed inside functions
This commit is contained in:
commit
1d1598dc53
@ -110,8 +110,15 @@
|
||||
_Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\"")
|
||||
#define PRAGMA_IGNORE_Wdeprecated_declarations \
|
||||
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
||||
#define PRAGMA_DIAGNOSTIC_PUSH _Pragma("GCC diagnostic push")
|
||||
#define PRAGMA_DIAGNOSTIC_POP _Pragma("GCC diagnostic pop")
|
||||
#if __GNUC__ >= 5
|
||||
#define PRAGMA_DIAGNOSTIC_PUSH \
|
||||
_Pragma("GCC diagnostic push")
|
||||
#define PRAGMA_DIAGNOSTIC_POP \
|
||||
_Pragma("GCC diagnostic pop")
|
||||
#else
|
||||
#define PRAGMA_DIAGNOSTIC_PUSH
|
||||
#define PRAGMA_DIAGNOSTIC_POP
|
||||
#endif
|
||||
#else
|
||||
#define PRAGMA_INGORE_Wswitch_enum
|
||||
#define PRAGMA_IGNORE_Wsign_compare
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user