mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
gmacros.h: add G_GNUC_*_IGNORE_DEPRECATIONS macros for clang
https://bugzilla.gnome.org/show_bug.cgi?id=734126 Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
cb320cb5fe
commit
35eaf037bd
@ -121,6 +121,12 @@
|
|||||||
__pragma (warning (disable : 4996))
|
__pragma (warning (disable : 4996))
|
||||||
#define G_GNUC_END_IGNORE_DEPRECATIONS \
|
#define G_GNUC_END_IGNORE_DEPRECATIONS \
|
||||||
__pragma (warning (pop))
|
__pragma (warning (pop))
|
||||||
|
#elif defined (__clang__)
|
||||||
|
#define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
|
||||||
|
_Pragma("clang diagnostic push") \
|
||||||
|
_Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
|
||||||
|
#define G_GNUC_END_IGNORE_DEPRECATIONS \
|
||||||
|
_Pragma("clang diagnostic pop")
|
||||||
#else
|
#else
|
||||||
#define G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
#define G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
#define G_GNUC_END_IGNORE_DEPRECATIONS
|
#define G_GNUC_END_IGNORE_DEPRECATIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user