Module Name: src Committed By: rillig Date: Sat Oct 9 21:02:53 UTC 2021
Modified Files: src/bin/sh: Makefile Log Message: sh: ignore lint error about 'continue' in 'do while' loop exec.c(575): error: continue in 'do ... while (0)' loop [323] jobs.c(203): error: continue in 'do ... while (0)' loop [323] It is certainly a rarely used feature, I saw it the first time today and had to look up its meaning in the C standard. But after that, I don't see why a 'continue' statement in a 'do while' loop should be an error. Maybe a warning since up to now I thought that 'continue' would jump back to the top of the loop, while it really jumps to the bottom of the loop body, for all 3 kinds of loops. To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118 src/bin/sh/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/sh/Makefile diff -u src/bin/sh/Makefile:1.117 src/bin/sh/Makefile:1.118 --- src/bin/sh/Makefile:1.117 Sun Aug 15 11:57:17 2021 +++ src/bin/sh/Makefile Sat Oct 9 21:02:53 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.117 2021/08/15 11:57:17 christos Exp $ +# $NetBSD: Makefile,v 1.118 2021/10/09 21:02:53 rillig Exp $ # @(#)Makefile 8.4 (Berkeley) 5/5/95 .include <bsd.own.mk> @@ -30,6 +30,7 @@ CPPFLAGS+= -DUSE_LRAND48 #COPTS+=-g #CFLAGS+=-funsigned-char #TARGET_CHARFLAG?= -DTARGET_CHAR="unsigned char" -funsigned-char +#LINTFLAGS+= -X 323 # continue in 'do ... while (0)' loop # Reproducible build parameters ... export into sh for NETBSD_SHELL setting .if ${MKREPRO_TIMESTAMP:Uno} != "no"