summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorVictor van den Elzen <victor.vde@gmail.com>2009-08-11 02:10:16 +0200
committerVictor van den Elzen <victor.vde@gmail.com>2009-08-11 02:43:41 +0200
commit15bb2330368783724cf526dfec5c02d028bd5b98 (patch)
treefa653bd47ff1a50eb5e0264cadf158413e3b9ca0 /parser.c
parent5a49e7c578378308c4e866313ea08c65e6869a06 (diff)
downloadnasm-15bb2330368783724cf526dfec5c02d028bd5b98.tar.gz
nasm-15bb2330368783724cf526dfec5c02d028bd5b98.tar.bz2
nasm-15bb2330368783724cf526dfec5c02d028bd5b98.zip
Fix some format strings for nasm_error
Added a format attribute to nasm_error (only for GCC) and used the resulting warnings to fix some format strings.
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index 2ff6e36..88cb937 100644
--- a/parser.c
+++ b/parser.c
@@ -283,7 +283,7 @@ restart_parse:
} else {
result->times = value->value;
if (value->value < 0 && pass0 == 2) {
- nasm_error(ERR_NONFATAL, "TIMES value %d is negative",
+ nasm_error(ERR_NONFATAL, "TIMES value %"PRId64" is negative",
value->value);
result->times = 0;
}
@@ -531,11 +531,11 @@ restart_parse:
nasm_error(ERR_NONFATAL, "`incbin' expects a file name");
else if (result->eops->next &&
result->eops->next->type != EOT_DB_NUMBER)
- nasm_error(ERR_NONFATAL, "`incbin': second parameter is",
+ nasm_error(ERR_NONFATAL, "`incbin': second parameter is"
" non-numeric");
else if (result->eops->next && result->eops->next->next &&
result->eops->next->next->type != EOT_DB_NUMBER)
- nasm_error(ERR_NONFATAL, "`incbin': third parameter is",
+ nasm_error(ERR_NONFATAL, "`incbin': third parameter is"
" non-numeric");
else if (result->eops->next && result->eops->next->next &&
result->eops->next->next->next)