From e982c14bc34a48529ca0db1c016a768cce01e115 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 30 Nov 2006 00:01:21 +0000 Subject: 2006-11-29 Thomas Schwinge Fix compiler, flex and bison warnings. * error.c: Include . * lexxer.h (yylex): Add declaration. * migcom.c: Include . (main): Set USER, SHEADER and IHEADER to `NULL' by default. (myfclose): Add lost conversion specifications. * parser.h (yyerror): Add declaration. * routine.c (rtPrintArg, rtCheckRoutine): Add braces to avoid ambiguousness. * server.c (WriteSymTabEntries): Make NUM an `u_int'. * user.c (WriteUserIndividual): Add a `default' case in a switch statement and add lost conversion specifications. * lexxer.l: Set option `nounput'. * parser.y (%left): Change commas to spaces. --- user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'user.c') diff --git a/user.c b/user.c index 8d0a2ab..16d4c02 100644 --- a/user.c +++ b/user.c @@ -1315,13 +1315,15 @@ WriteUserIndividual(const statement_t *stats) case skUImport: WriteImport(file, s->stFileName); break; + default: + break; } } WriteRoutine(file, stat->stRoutine); WriteEpilog(file); if (ferror(file) || fclose(file)) - fatal("fclose(): ", filename, + fatal("fclose(%s): %s", filename, unix_error_string(errno)); strfree(filename); } -- cgit v1.2.3