Update libgadu yet again release-2.x.y

Mon, 24 Mar 2014 19:56:42 +0100

author
Tomasz Wasilczyk <twasilczyk@pidgin.im>
date
Mon, 24 Mar 2014 19:56:42 +0100
branch
release-2.x.y
changeset 35650
f4232b1c3263
parent 35645
0143226782bb
child 35656
d1b25cb7efa7
child 36178
6c4d5b524296

Update libgadu yet again

libpurple/protocols/gg/lib/internal.h file | annotate | diff | comparison | revisions
libpurple/protocols/gg/lib/protobuf-c.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/gg/lib/internal.h	Sat Mar 22 00:42:07 2014 +0100
+++ b/libpurple/protocols/gg/lib/internal.h	Mon Mar 24 19:56:42 2014 +0100
@@ -57,7 +57,8 @@
 
 #define GG_STATIC_ASSERT(condition, message) \
 	{ typedef char static_assertion_failed_ ## message \
-	[(condition) ? 1 : -1]; }
+	[(condition) ? 1 : -1]; static_assertion_failed_ ## message dummy; \
+	(void)dummy; }
 
 struct gg_dcc7_relay {
 	uint32_t addr;
--- a/libpurple/protocols/gg/lib/protobuf-c.c	Sat Mar 22 00:42:07 2014 +0100
+++ b/libpurple/protocols/gg/lib/protobuf-c.c	Mon Mar 24 19:56:42 2014 +0100
@@ -1363,9 +1363,11 @@
     }
   return rv;
 
+#if IS_LITTLE_ENDIAN
 no_packing_needed:
   buffer->append (buffer, rv, array);
   return rv;
+#endif
 }
 
 static size_t
@@ -2027,10 +2029,12 @@
   *p_n += count;
   return TRUE;
 
+#if IS_LITTLE_ENDIAN
 no_unpacking_needed:
   memcpy (array, at, count * siz);
   *p_n += count;
   return TRUE;
+#endif
 }
 
 static protobuf_c_boolean

mercurial