From ea95df791e3cb320cd0b2a3f0f3c64e3617b4c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 8 Jul 2015 16:53:41 +0200 Subject: work on hardening & make fit for gcc-5 --- debian/patches/0100-gcc5.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 debian/patches/0100-gcc5.patch (limited to 'debian/patches/0100-gcc5.patch') diff --git a/debian/patches/0100-gcc5.patch b/debian/patches/0100-gcc5.patch new file mode 100644 index 0000000..c2797db --- /dev/null +++ b/debian/patches/0100-gcc5.patch @@ -0,0 +1,26 @@ +Description: Make fit for gcc-5 + Cheery-picked from upstream commit 7ccdf08e81aa51a1b54eb4c574e6e4fc5f2e2d54 +Author: Gergely Nagy +Bug: https://github.com/algernon/libmongo-client/issues/37 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777959 +Forwarded: no +Last-Update: 2015-07-08 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/src/bson.c +=================================================================== +--- trunk.orig/src/bson.c ++++ trunk/src/bson.c +@@ -892,9 +892,10 @@ bson_cursor_next (bson_cursor *c) + + static inline gboolean + _bson_cursor_find (const bson *b, const gchar *name, size_t start_pos, +- gint32 end_pos, gboolean wrap_over, bson_cursor *dest_c) ++ guint32 end_pos, gboolean wrap_over, bson_cursor *dest_c) + { +- gint32 pos = start_pos, bs; ++ size_t pos = start_pos; ++ gint32 bs; + const guint8 *d; + gint32 name_len; + -- cgit v1.2.3