Subject: Re: CVS commit: src/sys
To: None <dogcow@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-toolchain
Date: 10/17/2006 17:57:39
> Module Name:	src
> Committed By:	dogcow
> Date:		Fri Oct 13 16:53:36 UTC 2006
> 
> Modified Files:
> 	src/sys/arch/i386/i386: vm_machdep.c
> 	src/sys/dev/mca: esp_mca.c
> 	src/sys/dev/wscons: wsdisplay.c wskbd.c
> 	src/sys/dist/ipf/netinet: ip_fil_netbsd.c ip_lookup.c ip_nat.c
> 	    ip_state.c
> 	src/sys/kern: kern_exec.c kern_ktrace.c kern_ntptime.c kern_subr.c
> 	    sys_generic.c
> 	src/sys/net: if_bridge.c if_spppsubr.c
> 
> Log Message:
> More -Wunused fallout. sprinkle __unused when possible; otherwise, use the
> 	do { if (&x) {} } while (/* CONSTCOND */ 0);
> construct as suggested by uwe in <20061012224845.GA9449@snark.ptc.spbu.ru>.

what's the point of these do-while?
i can understand if it were a macro as uwe's suggestion, but...

YAMAMOTO Takashi