/pidgin/main: 54694ef14d46: Silc: ignore Wcast-align in silc.h
Tomasz Wasilczyk
twasilczyk at pidgin.im
Wed Apr 2 22:58:12 EDT 2014
Changeset: 54694ef14d46de1c237b06c7a06ce4618bc3c7e3
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-04-03 04:58 +0200
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/54694ef14d46
Description:
Silc: ignore Wcast-align in silc.h
diffstat:
libpurple/internal.h | 16 ++++++++++++++++
libpurple/protocols/silc/buddy.c | 2 ++
libpurple/protocols/silc/chat.c | 2 ++
libpurple/protocols/silc/ft.c | 2 ++
libpurple/protocols/silc/ops.c | 2 ++
libpurple/protocols/silc/pk.c | 2 ++
libpurple/protocols/silc/silc.c | 2 ++
libpurple/protocols/silc/util.c | 2 ++
libpurple/protocols/silc/wb.c | 2 ++
9 files changed, 32 insertions(+), 0 deletions(-)
diffs (130 lines):
diff --git a/libpurple/internal.h b/libpurple/internal.h
--- a/libpurple/internal.h
+++ b/libpurple/internal.h
@@ -141,6 +141,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
diff --git a/libpurple/protocols/silc/buddy.c b/libpurple/protocols/silc/buddy.c
--- a/libpurple/protocols/silc/buddy.c
+++ b/libpurple/protocols/silc/buddy.c
@@ -19,7 +19,9 @@
#include "internal.h"
#include "glibcompat.h"
+PURPLE_BEGIN_IGNORE_CAST_ALIGN
#include "silc.h"
+PURPLE_END_IGNORE_CAST_ALIGN
#include "silcclient.h"
#include "silcpurple.h"
#include "wb.h"
diff --git a/libpurple/protocols/silc/chat.c b/libpurple/protocols/silc/chat.c
--- a/libpurple/protocols/silc/chat.c
+++ b/libpurple/protocols/silc/chat.c
@@ -18,7 +18,9 @@
*/
#include "internal.h"
+PURPLE_BEGIN_IGNORE_CAST_ALIGN
#include "silc.h"
+PURPLE_END_IGNORE_CAST_ALIGN
#include "silcclient.h"
#include "silcpurple.h"
#include "wb.h"
diff --git a/libpurple/protocols/silc/ft.c b/libpurple/protocols/silc/ft.c
--- a/libpurple/protocols/silc/ft.c
+++ b/libpurple/protocols/silc/ft.c
@@ -18,7 +18,9 @@
*/
#include "internal.h"
+PURPLE_BEGIN_IGNORE_CAST_ALIGN
#include "silc.h"
+PURPLE_END_IGNORE_CAST_ALIGN
#include "silcclient.h"
#include "silcpurple.h"
diff --git a/libpurple/protocols/silc/ops.c b/libpurple/protocols/silc/ops.c
--- a/libpurple/protocols/silc/ops.c
+++ b/libpurple/protocols/silc/ops.c
@@ -18,7 +18,9 @@
*/
#include "internal.h"
+PURPLE_BEGIN_IGNORE_CAST_ALIGN
#include "silc.h"
+PURPLE_END_IGNORE_CAST_ALIGN
#include "silcclient.h"
#include "silcpurple.h"
#include "imgstore.h"
diff --git a/libpurple/protocols/silc/pk.c b/libpurple/protocols/silc/pk.c
--- a/libpurple/protocols/silc/pk.c
+++ b/libpurple/protocols/silc/pk.c
@@ -19,7 +19,9 @@
#include "internal.h"
#include "glibcompat.h"
+PURPLE_BEGIN_IGNORE_CAST_ALIGN
#include "silc.h"
+PURPLE_END_IGNORE_CAST_ALIGN
#include "silcclient.h"
#include "silcpurple.h"
diff --git a/libpurple/protocols/silc/silc.c b/libpurple/protocols/silc/silc.c
--- a/libpurple/protocols/silc/silc.c
+++ b/libpurple/protocols/silc/silc.c
@@ -18,7 +18,9 @@
*/
#include "internal.h"
+PURPLE_BEGIN_IGNORE_CAST_ALIGN
#include "silc.h"
+PURPLE_END_IGNORE_CAST_ALIGN
#include "silcclient.h"
#include "silcpurple.h"
#include "version.h"
diff --git a/libpurple/protocols/silc/util.c b/libpurple/protocols/silc/util.c
--- a/libpurple/protocols/silc/util.c
+++ b/libpurple/protocols/silc/util.c
@@ -19,7 +19,9 @@
#include "internal.h"
#include "glibcompat.h"
+PURPLE_BEGIN_IGNORE_CAST_ALIGN
#include "silc.h"
+PURPLE_END_IGNORE_CAST_ALIGN
#include "silcclient.h"
#include "silcpurple.h"
#include "imgstore.h"
diff --git a/libpurple/protocols/silc/wb.c b/libpurple/protocols/silc/wb.c
--- a/libpurple/protocols/silc/wb.c
+++ b/libpurple/protocols/silc/wb.c
@@ -18,7 +18,9 @@
*/
#include "internal.h"
+PURPLE_BEGIN_IGNORE_CAST_ALIGN
#include "silc.h"
+PURPLE_END_IGNORE_CAST_ALIGN
#include "silcclient.h"
#include "silcpurple.h"
#include "wb.h"
More information about the Commits
mailing list