aboutsummaryrefslogtreecommitdiffstats
path: root/main/haserl/0004-fix-compiler-warning-variable-retval-set-but-not-use.patch
diff options
context:
space:
mode:
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, 0 insertions, 36 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
deleted file mode 100644
index 5bacbbf6ef..0000000000
--- a/main/haserl/0004-fix-compiler-warning-variable-retval-set-but-not-use.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-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
-