aboutsummaryrefslogtreecommitdiffstats
path: root/asm/directiv.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm/directiv.c')
-rw-r--r--asm/directiv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/asm/directiv.c b/asm/directiv.c
index 90b8b7b2..66901530 100644
--- a/asm/directiv.c
+++ b/asm/directiv.c
@@ -435,9 +435,7 @@ bool process_directives(char *directive)
}
case D_WARNING: /* [WARNING {+|-|*}warn-name] */
- if (!set_warning_status(value)) {
- nasm_warnf(WARN_UNK_WARNING, "unknown warning option: %s", value);
- }
+ set_warning_status(value);
break;
case D_CPU: /* [CPU] */