aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-19 17:54:51 +0100
committerlemon <lsof@mailbox.org>2025-12-19 17:54:51 +0100
commitae62e89274f20cc0e3d526dfc613038d96820e1f (patch)
treeb221b6bdd819abf2a102e0fe63ee9440d3aca2a4 /io.c
parent6b8b3346d420cfa00de77a4bc564ae3964c50dc5 (diff)
driver: -w, update help
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index 59481bd..cbb8568 100644
--- a/io.c
+++ b/io.c
@@ -1116,6 +1116,7 @@ warn(const struct span *span, const char *fmt, ...)
{
va_list ap;
+ if (ccopt.wnone) return;
if (ccopt.werror) ++nerror;
va_start(ap, fmt);
vdiag(span, ccopt.werror ? DGERROR : DGWARN, fmt, ap);