From ae62e89274f20cc0e3d526dfc613038d96820e1f Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 19 Dec 2025 17:54:51 +0100 Subject: driver: -w, update help --- io.c | 1 + 1 file changed, 1 insertion(+) (limited to 'io.c') 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); -- cgit v1.2.3