diff options
author | H. Peter Anvin <hpa@zytor.com> | 2019-06-06 20:53:17 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2019-06-06 20:53:17 -0700 |
commit | fdeb3b0d018f4c0ce5e16c0620287af806873543 (patch) | |
tree | abb43e13e940bf0a7d10a7698e827350684bd3bc /asm/pragma.c | |
parent | 186f9a0514f466c36677b515622ba1c4fa96e32d (diff) | |
download | nasm-fdeb3b0d018f4c0ce5e16c0620287af806873543.tar.gz |
Add group aliases for all prefixed warnings.
For example, -w+float will now enable all warnings with names staring
with float-*.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm/pragma.c')
-rw-r--r-- | asm/pragma.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/asm/pragma.c b/asm/pragma.c index 88f8ae73..9d847070 100644 --- a/asm/pragma.c +++ b/asm/pragma.c @@ -1,6 +1,6 @@ /* ----------------------------------------------------------------------- * * - * Copyright 1996-2018 The NASM Authors - All Rights Reserved + * Copyright 1996-2019 The NASM Authors - All Rights Reserved * See the file AUTHORS included with the NASM distribution for * the specific copyright holders. * @@ -144,20 +144,22 @@ found_it: switch (pragma->opcode) { case D_none: /*! - *!bad-pragma [off] empty or malformed %pragma + *!pragma-bad [off] empty or malformed %pragma + *!=bad-pragma *! warns about a malformed or otherwise unparsable *! \c{%pragma} directive. */ - nasm_error(ERR_WARNING|ERR_PASS2|WARN_BAD_PRAGMA, + nasm_error(ERR_WARNING|ERR_PASS2|WARN_PRAGMA_BAD, "empty %%pragma %s", pragma->facility_name); break; default: /*! - *!unknown-pragma [off] unknown %pragma facility or directive + *!pragma-unknown [off] unknown %pragma facility or directive + *!=unknown-pragma *! warns about an unknown \c{%pragma} directive. *! This is not yet implemented for most cases. */ - nasm_error(ERR_WARNING|ERR_PASS2|WARN_UNKNOWN_PRAGMA, + nasm_error(ERR_WARNING|ERR_PASS2|WARN_PRAGMA_UNKNOWN, "unknown %%pragma %s %s", pragma->facility_name, pragma->opname); break; @@ -185,7 +187,8 @@ found_it: /* This warning message is intended for future use */ /*! - *!not-my-pragma [off] %pragma not applicable to this compilation + *!pragma-na [off] %pragma not applicable to this compilation + *!=not-my-pragma *! warns about a \c{%pragma} directive which is not applicable to *! this particular assembly session. This is not yet implemented. */ @@ -199,7 +202,7 @@ void process_pragma(char *str) pragma.facility_name = nasm_get_word(str, &p); if (!pragma.facility_name) { - nasm_error(ERR_WARNING|ERR_PASS2|WARN_BAD_PRAGMA, + nasm_error(ERR_WARNING|ERR_PASS2|WARN_PRAGMA_BAD, "empty pragma directive"); return; /* Empty pragma */ } |