summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-08-01 21:39:38 +0200
committerThomas Haller <thaller@redhat.com>2014-08-01 21:42:04 +0200
commitcb5a9761916249b7e0eb0cba059ff7bbf64590aa (patch)
tree3e19edb6ae94a64ccf09d108dfb534bdede16eaa
parent4b54e4db80e918de319e1ef21e9e8dd9ec7a7173 (diff)
downloadNetworkManager-cb5a9761916249b7e0eb0cba059ff7bbf64590aa.tar.gz
libnm-util/test: fix build for clang due to deprecated warning
For clang, we have to include nm-glib-compat.h to redefine G_GNUC_BEGIN_IGNORE_DEPRECATIONS. Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--libnm-util/tests/test-libnm-linking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm-util/tests/test-libnm-linking.c b/libnm-util/tests/test-libnm-linking.c
index dd81d1cfc5..68c90e9f0f 100644
--- a/libnm-util/tests/test-libnm-linking.c
+++ b/libnm-util/tests/test-libnm-linking.c
@@ -22,6 +22,8 @@
#include <glib.h>
#include <nm-utils.h>
+#include "nm-glib-compat.h"
+
extern GType nm_state_get_type (void);
int