summaryrefslogtreecommitdiff
path: root/common/parse.c
diff options
context:
space:
mode:
authorTomek Mrugalski <tomek@isc.org>2012-03-09 11:18:14 +0000
committerTomek Mrugalski <tomek@isc.org>2012-03-09 11:18:14 +0000
commitdd9237c309ac816268ec395f0d65a18a38a9aa2a (patch)
treef79ad87307715109fdf0886a70b2c4c5c50a7983 /common/parse.c
parent9a266235e6813d2565dc48949b222ba8e08078cb (diff)
downloadisc-dhcp-dd9237c309ac816268ec395f0d65a18a38a9aa2a.tar.gz
Fixed many compilation problems ("set, but not used" warnings) for
gcc 4.6 that may affect Ubuntu 11.10 users. [ISC-Bugs #27588]
Diffstat (limited to 'common/parse.c')
-rw-r--r--common/parse.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/parse.c b/common/parse.c
index 0d3e7c60..434085a2 100644
--- a/common/parse.c
+++ b/common/parse.c
@@ -907,7 +907,7 @@ parse_date_core(cfile)
struct parse *cfile;
{
int guess;
- int tzoff, wday, year, mon, mday, hour, min, sec;
+ int tzoff, year, mon, mday, hour, min, sec;
const char *val;
enum dhcp_token token;
static int months[11] = { 31, 59, 90, 120, 151, 181,
@@ -945,7 +945,7 @@ parse_date_core(cfile)
return((TIME)0);
}
token = next_token(&val, NULL, cfile); /* consume day of week */
- wday = atoi(val);
+ /* we are not using this for anything */
/* Year... */
token = peek_token(&val, NULL, cfile);
@@ -3390,11 +3390,10 @@ int parse_boolean_expression (expr, cfile, lose)
int parse_boolean (cfile)
struct parse *cfile;
{
- enum dhcp_token token;
const char *val;
int rv;
- token = next_token (&val, (unsigned *)0, cfile);
+ (void)next_token(&val, NULL, cfile);
if (!strcasecmp (val, "true")
|| !strcasecmp (val, "on"))
rv = 1;