Warning fixes from Christos Zoulas

- shadowed variables
- signed/unsigned confusion
- const lossage
- incomplete structure initializations
- unused code
This commit is contained in:
Love Hornquist Astrand
2011-04-29 20:25:05 -07:00
parent 66c15e7caf
commit f5f9014c90
156 changed files with 1178 additions and 1078 deletions

View File

@@ -394,7 +394,7 @@ static void defval_neg_flag(const char *name, struct assignment *defval)
static void defval_string(const char *name, struct assignment *defval)
{
if(defval != NULL)
cprint(1, "opt.%s = \"%s\";\n", name, defval->u.value);
cprint(1, "opt.%s = (char *)(unsigned long)\"%s\";\n", name, defval->u.value);
else
cprint(1, "opt.%s = NULL;\n", name);
}