From owner-svn-src-head@freebsd.org Sun Feb 21 22:00:48 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 799EDAB0E59; Sun, 21 Feb 2016 22:00:48 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from kif.fubar.geek.nz (kif.fubar.geek.nz [178.62.119.249]) by mx1.freebsd.org (Postfix) with ESMTP id 4C5B01E3F; Sun, 21 Feb 2016 22:00:48 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from zapp.Home (5ec39667.skybroadband.com [94.195.150.103]) by kif.fubar.geek.nz (Postfix) with ESMTPSA id 856D4D78FE; Sun, 21 Feb 2016 22:00:14 +0000 (UTC) Date: Sun, 21 Feb 2016 22:00:05 +0000 From: Andrew Turner To: Alan Somers Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r295768 - head/usr.sbin/iostat Message-ID: <20160221220005.2b73b8e1@zapp.Home> In-Reply-To: <201602182008.u1IK81vg092127@repo.freebsd.org> References: <201602182008.u1IK81vg092127@repo.freebsd.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2016 22:00:48 -0000 On Thu, 18 Feb 2016 20:08:01 +0000 (UTC) Alan Somers wrote: > Author: asomers > Date: Thu Feb 18 20:08:01 2016 > New Revision: 295768 > URL: https://svnweb.freebsd.org/changeset/base/295768 > > Log: > Fix compiler warnings in iostat > > Raise WARNS from 1 to 6 (the default) This breaks building with gcc: ===> usr.sbin/ifmcstat (all) ===> usr.sbin/iostat (all) cc1: warnings being treated as errors /scratch/tmp/andrew/head-git/usr.sbin/iostat/iostat.c: In function 'devstats': /scratch/tmp/andrew/head-git/usr.sbin/iostat/iostat.c:800: warning: declaration of 'devname' shadows a global declaration /scratch/tmp/andrew/obj/powerpc.powerpc/scratch/tmp/andrew/head-git/tmp/usr/include/stdlib.h:282: warning: shadowed declaration is here /scratch/tmp/andrew/head-git/usr.sbin/iostat/iostat.c: In function 'cpustats': /scratch/tmp/andrew/head-git/usr.sbin/iostat/iostat.c:982: warning: declaration of 'time' shadows a global declaration /scratch/tmp/andrew/obj/powerpc.powerpc/scratch/tmp/andrew/head-git/tmp/usr/include/time.h:154: warning: shadowed declaration is here *** Error code 1 Stop. make[4]: stopped in /scratch/tmp/andrew/head-git/usr.sbin/iostat *** Error code 1 Stop. make[3]: stopped in /scratch/tmp/andrew/head-git/usr.sbin *** Error code 1 Stop. make[2]: stopped in /scratch/tmp/andrew/head-git *** Error code 1 Stop. make[1]: stopped in /scratch/tmp/andrew/head-git *** Error code 1 Stop. make: stopped in /scratch/tmp/andrew/head-git -Wshadow is added to the warning flags with WARNS >= 4. Andrew