Module Name: src
Committed By: martin
Date: Sun Dec 1 11:10:34 UTC 2024
Modified Files:
src/usr.sbin/sysinst: Makefile.inc
Log Message:
Deal with false positive maybe-uninitialized warnings from gcc when
compiling net.c with -O0
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/sysinst/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sysinst/Makefile.inc
diff -u src/usr.sbin/sysinst/Makefile.inc:1.49 src/usr.sbin/sysinst/Makefile.inc:1.50
--- src/usr.sbin/sysinst/Makefile.inc:1.49 Mon Apr 22 14:41:26 2024
+++ src/usr.sbin/sysinst/Makefile.inc Sun Dec 1 11:10:34 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.49 2024/04/22 14:41:26 nia Exp $
+# $NetBSD: Makefile.inc,v 1.50 2024/12/01 11:10:34 martin Exp $
#
# Makefile for sysinst
@@ -154,6 +154,7 @@ O0TRACKING= -fvar-tracking-assignments -
.endif
CPPFLAGS+=-DDEBUG
DBG +=-g -O0 ${O0TRACKING}
+COPTS.net.c += -Wno-error=maybe-uninitialized
.else
.if defined(SMALLPROG)
COPTS += -Os