From 2d44f91a62f1f1123a43c3260cbb1bd7ad11ce4f Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Fri, 15 Jul 2016 15:27:30 +0200 Subject: [PATCH] libmicrohttpd: add patch to fix inside loop declaration warning already fixed upstream, but 0.9.50 contains this bug Signed-off-by: Alexander Couzens --- .../patches/001-fix-inside-loop-deklaration.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libs/libmicrohttpd/patches/001-fix-inside-loop-deklaration.patch diff --git a/libs/libmicrohttpd/patches/001-fix-inside-loop-deklaration.patch b/libs/libmicrohttpd/patches/001-fix-inside-loop-deklaration.patch new file mode 100644 index 0000000000..e055307319 --- /dev/null +++ b/libs/libmicrohttpd/patches/001-fix-inside-loop-deklaration.patch @@ -0,0 +1,14 @@ +Index: libmicrohttpd-0.9.50/src/microhttpd/mhd_str.c +=================================================================== +--- libmicrohttpd-0.9.50.orig/src/microhttpd/mhd_str.c 2016-05-02 14:22:44.000000000 +0200 ++++ libmicrohttpd-0.9.50/src/microhttpd/mhd_str.c 2016-07-15 11:06:39.896282700 +0200 +@@ -271,7 +271,8 @@ + int + MHD_str_equal_caseless_n_ (const char * const str1, const char * const str2, size_t maxlen) + { +- for (size_t i = 0; i < maxlen; ++i) ++ size_t i; ++ for (i = 0; i < maxlen; ++i) + { + const char c1 = str1[i]; + const char c2 = str2[i];