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();
else if (!nasm_stricmp(value, "pop"))
pop_warnings();
}
} else {
set_warning_status(value);
}
break;
case D_CPU: /* [CPU] */

View File

@@ -4,7 +4,7 @@
"id": "warnstack",
"format": "bin",
"source": "warnstack.asm",
"option": "-Ox",
"option": "-Ox -w+unknown-warning",
"target": [
{ "output": "warnstack.bin" },
{ "stderr": "warnstack.stderr" }