blob: 5bacbbf6ef9f3a8ca4f1293f5ca98da1849be8d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
|