summaryrefslogtreecommitdiffstats
path: root/main/haserl/0004-fix-compiler-warning-variable-retval-set-but-not-use.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-07-02 16:31:41 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-02 16:32:28 +0200
commit2ef211efeb1de2e48862d6ecc2fc2bab3a702b22 (patch)
tree507e09e6f3db14eeb75c905a1b312aaf7a51103d /main/haserl/0004-fix-compiler-warning-variable-retval-set-but-not-use.patch
parentf10bce070b3bea6cfad50c28c94561df9d7c271a (diff)
downloadaports-2ef211efeb1de2e48862d6ecc2fc2bab3a702b22.tar.bz2
aports-2ef211efeb1de2e48862d6ecc2fc2bab3a702b22.tar.xz
main/haserl: upgrade to 0.9.30
Diffstat (limited to 'main/haserl/0004-fix-compiler-warning-variable-retval-set-but-not-use.patch')
-rw-r--r--main/haserl/0004-fix-compiler-warning-variable-retval-set-but-not-use.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/main/haserl/0004-fix-compiler-warning-variable-retval-set-but-not-use.patch b/main/haserl/0004-fix-compiler-warning-variable-retval-set-but-not-use.patch
new file mode 100644
index 000000000..5bacbbf6e
--- /dev/null
+++ b/main/haserl/0004-fix-compiler-warning-variable-retval-set-but-not-use.patch
@@ -0,0 +1,36 @@
+From 62d7c40250415cad65e44cfe00f75f55edea36e3 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 1 Jul 2013 13:57:50 +0200
+Subject: [PATCH 4/4] fix compiler warning: variable 'retval' set but not used
+
+make it build with -Wall -Werror
+---
+ src/haserl.c | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/src/haserl.c b/src/haserl.c
+index 22ac396..6b346c0 100644
+--- a/src/haserl.c
++++ b/src/haserl.c
+@@ -692,7 +692,6 @@ main (int argc, char *argv[])
+ #endif
+ script_t *scriptchain;
+
+- int retval = 0;
+ char *filename = NULL;
+
+ argv_t *av = NULL;
+@@ -878,8 +877,8 @@ main (int argc, char *argv[])
+ if (strcasecmp (getenv ("REQUEST_METHOD"), "POST") == 0)
+ {
+ if (global.acceptall == TRUE)
+- retval = ReadCGIQueryString (env);
+- retval = ReadCGIPOSTValues (env);
++ ReadCGIQueryString (env);
++ ReadCGIPOSTValues (env);
+ }
+ }
+ }
+--
+1.8.3.2
+