From: Olaf Hering Subject: Re: [PATCH 10 of 18] tools/libvchan: fix build errors caused by -Werror in node-select.c Date: Mon, 2 Apr 2012 16:40:03 +0200 Message-ID: <20120402144003.GB4000@aepfle.de> References: <1092e073b88e0aed775e.1333095927@probook.site> <20345.45252.747454.411523@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20345.45252.747454.411523@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Apr 02, Ian Jackson wrote: > Olaf Hering writes ("[Xen-devel] [PATCH 10 of 18] tools/libvchan: fix build errors caused by -Werror in node-select.c"): > > tools/libvchan: fix build errors caused by -Werror in node-select.c > > > > -O2 -Wall -Werror triggers these warnings: > > > > node-select.c:57:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] > > These changes are correct. > > > node-select.c: In function 'vchan_wr': > > node-select.c:60:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] > > This one is a question of coding style. Apparently libvchan uses > mixed statements/declarations, so this should be fixed by changing the > warning flags. The warning is odd anyway since -std=gnu99 is requested. I will split the patch to address both warnings. Olaf