0
0
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:
redzimski
2025-10-25 14:18:03 +02:00
committed by H. Peter Anvin
parent ca178f80d8
commit 94c6ecda5b
2 changed files with 3 additions and 2 deletions

View File

@@ -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] */

View File

@@ -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" }