libpurple/internal.h

branch
soc.2013.gobjectification.plugins
changeset 37131
fe9ff76f1c6c
parent 37114
581adbabe319
parent 35681
54694ef14d46
child 37133
832cd077145e
--- a/libpurple/internal.h	Thu Apr 03 08:06:11 2014 +0530
+++ b/libpurple/internal.h	Thu Apr 03 09:31:58 2014 +0530
@@ -139,6 +139,22 @@
 #endif
 #endif
 
+#ifdef __clang__
+
+#define PURPLE_BEGIN_IGNORE_CAST_ALIGN \
+	_Pragma ("clang diagnostic push") \
+	_Pragma ("clang diagnostic ignored \"-Wcast-align\"")
+
+#define PURPLE_END_IGNORE_CAST_ALIGN \
+	_Pragma ("clang diagnostic pop")
+
+#else
+
+#define PURPLE_BEGIN_IGNORE_CAST_ALIGN
+#define PURPLE_END_IGNORE_CAST_ALIGN
+
+#endif /* __clang__ */
+
 #include <glib-object.h>
 
 typedef union

mercurial