summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-09-30 16:39:17 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-09-30 16:39:17 -0700
commit2f16043879fbfb73bc114c2c28aab036fd55c4c5 (patch)
tree43fe900f4ea76e05929b6c70c414c8a336d8a714 /nasm.c
parent2d5baaa69aada159a474413339cca891838debea (diff)
downloadnasm-2f16043879fbfb73bc114c2c28aab036fd55c4c5.tar.gz
nasm-2f16043879fbfb73bc114c2c28aab036fd55c4c5.tar.bz2
nasm-2f16043879fbfb73bc114c2c28aab036fd55c4c5.zip
Allow %warning output to be suppressed
Allow the user to suppress user-specified warnings. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/nasm.c b/nasm.c
index a92db92..3aedfb0 100644
--- a/nasm.c
+++ b/nasm.c
@@ -107,7 +107,8 @@ static const char *depend_file = NULL;
static bool suppressed[ERR_WARN_MAX+1];
static bool suppressed_global[ERR_WARN_MAX+1] = {
- true, false, true, false, false, false, true, false, true, true, false
+ true, false, true, false, false, false, true, false, true, true, false,
+ true
};
/*
* The option names for the suppressible warnings. As before, entry
@@ -116,7 +117,8 @@ static bool suppressed_global[ERR_WARN_MAX+1] = {
static const char *suppressed_names[ERR_WARN_MAX+1] = {
"error", "macro-params", "macro-selfref", "macro-defaults",
"orphan-labels", "number-overflow", "gnu-elf-extensions",
- "float-overflow", "float-denorm", "float-underflow", "float-toolong"
+ "float-overflow", "float-denorm", "float-underflow", "float-toolong",
+ "user"
};
/*
@@ -134,7 +136,8 @@ static const char *suppressed_what[ERR_WARN_MAX+1] = {
"floating point overflow",
"floating point denormal",
"floating point underflow",
- "too many digits in floating-point number"
+ "too many digits in floating-point number",
+ "%warning directives"
};
/*