Build: Suppress warning messages
authorJin Kyu Song <jin.kyu.song@intel.com>
Tue, 29 Oct 2013 00:07:57 +0000 (17:07 -0700)
committerJin Kyu Song <jin.kyu.song@intel.com>
Wed, 20 Nov 2013 19:29:42 +0000 (11:29 -0800)
Giving a correct printf format specifier supresses the warning message.
And a local pointer variable is initialized with NULL.

Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com>
parser.c
preproc.c

index 700b4fc..155308f 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -212,7 +212,7 @@ static bool parse_braces(decoflags_t *decoflags)
     do {
         if (i == TOKEN_OPMASK) {
             if (*decoflags & OPMASK_MASK) {
-                nasm_error(ERR_NONFATAL, "opmask k%lu is already set",
+                nasm_error(ERR_NONFATAL, "opmask k%"PRIu64" is already set",
                            *decoflags & OPMASK_MASK);
                 *decoflags &= ~OPMASK_MASK;
             }
index f781f95..3a0f67b 100644 (file)
--- a/preproc.c
+++ b/preproc.c
@@ -2156,7 +2156,7 @@ static int do_directive(Token * tline)
     Context *ctx;
     Cond *cond;
     MMacro *mmac, **mmhead;
-    Token *t, *tt, *param_start, *macro_start, *last, **tptr, *origline;
+    Token *t = NULL, *tt, *param_start, *macro_start, *last, **tptr, *origline;
     Line *l;
     struct tokenval tokval;
     expr *evalresult;