summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJin Kyu Song <jin.kyu.song@intel.com>2013-10-28 17:07:57 -0700
committerJin Kyu Song <jin.kyu.song@intel.com>2013-11-20 11:29:42 -0800
commitc9486b965b8883268871aa749f4f617f9835adf2 (patch)
tree38de5e6dd4ddadd90fe3864404e254eedeb75a18
parent945b1b8f36764a159e8890d27f80eef21bd29c14 (diff)
downloadnasm-c9486b965b8883268871aa749f4f617f9835adf2.tar.gz
nasm-c9486b965b8883268871aa749f4f617f9835adf2.tar.bz2
nasm-c9486b965b8883268871aa749f4f617f9835adf2.zip
Build: Suppress warning messages
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>
-rw-r--r--parser.c2
-rw-r--r--preproc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/parser.c b/parser.c
index 700b4fc..155308f 100644
--- 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;
}
diff --git a/preproc.c b/preproc.c
index f781f95..3a0f67b 100644
--- 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;