Date: Wed, 30 Oct 2013 05:54:30 +1100 (EST) From: Bruce Evans <brde@optusnet.com.au> To: Mark Johnston <markj@FreeBSD.org> Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r257298 - head/lib/libproc Message-ID: <20131030055021.H2325@besplex.bde.org> In-Reply-To: <20131029152905.GA2652@charmander.sandvine.com> References: <201310290312.r9T3CVx4064237@svn.freebsd.org> <20131029235717.M905@besplex.bde.org> <20131029152905.GA2652@charmander.sandvine.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 29 Oct 2013, Mark Johnston wrote: > On Wed, Oct 30, 2013 at 12:21:28AM +1100, Bruce Evans wrote: >> On Tue, 29 Oct 2013, Mark Johnston wrote: >> >>> Log: >>> Revert r257248 and fix the problem in a way that doesn't violate style(9). >> >> Why did gcc complain about the original version? > > It looks like this is because of the use of -W, which is apparently an > alias for -Wextra; according to the gcc man page, this will trigger a > warning when "an empty body occurs in an if or else statement." Thanks. I have -W in some CFLAGS but never noticed this behaviour before. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131030055021.H2325>