summaryrefslogtreecommitdiff
path: root/include/nm-gvaluearray-compat.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-07-26 21:13:52 +0200
committerThomas Haller <thaller@redhat.com>2014-08-01 13:16:59 +0200
commitb461bf54f2016791e13eee6164a6669c1b747010 (patch)
tree2f29fa9f40120ec0f030d35b4dd69505918b125b /include/nm-gvaluearray-compat.h
parent5009f2c7a3dc4ba6d197cbe62029fd2a0c78ab8a (diff)
downloadNetworkManager-b461bf54f2016791e13eee6164a6669c1b747010.tar.gz
all: add compatibility macros to ignore deprecation warnings for clang
For clang, the defines G_GNUC_BEGIN_IGNORE_DEPRECATIONS and G_GNUC_END_IGNORE_DEPRECATIONS are not working. Redefine them for clang in our glib compatibility wrapper. Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include/nm-gvaluearray-compat.h')
-rw-r--r--include/nm-gvaluearray-compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/nm-gvaluearray-compat.h b/include/nm-gvaluearray-compat.h
index 3e6a2fd3ed..89c028380c 100644
--- a/include/nm-gvaluearray-compat.h
+++ b/include/nm-gvaluearray-compat.h
@@ -22,6 +22,8 @@
#include <glib.h>
+#include "nm-glib-compat.h"
+
#define g_value_array_get_type() \
G_GNUC_EXTENSION ({ \
G_GNUC_BEGIN_IGNORE_DEPRECATIONS \