mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-11-08 23:27:15 -05:00
fix [warning push] causing "unknown warning name"
[warning push] emitted a "unknown warning name" warning when -w+unknown-warning is set.
This commit is contained in:
committed by
H. Peter Anvin
parent
ca178f80d8
commit
94c6ecda5b
@@ -526,8 +526,9 @@ bool process_directives(char *directive)
|
|||||||
push_warnings();
|
push_warnings();
|
||||||
else if (!nasm_stricmp(value, "pop"))
|
else if (!nasm_stricmp(value, "pop"))
|
||||||
pop_warnings();
|
pop_warnings();
|
||||||
|
} else {
|
||||||
|
set_warning_status(value);
|
||||||
}
|
}
|
||||||
set_warning_status(value);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case D_CPU: /* [CPU] */
|
case D_CPU: /* [CPU] */
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"id": "warnstack",
|
"id": "warnstack",
|
||||||
"format": "bin",
|
"format": "bin",
|
||||||
"source": "warnstack.asm",
|
"source": "warnstack.asm",
|
||||||
"option": "-Ox",
|
"option": "-Ox -w+unknown-warning",
|
||||||
"target": [
|
"target": [
|
||||||
{ "output": "warnstack.bin" },
|
{ "output": "warnstack.bin" },
|
||||||
{ "stderr": "warnstack.stderr" }
|
{ "stderr": "warnstack.stderr" }
|
||||||
|
|||||||
Reference in New Issue
Block a user