From: Neil Brown Subject: Re: nfs-utils 1.0.9-rc1 - hopefully -final in a week Date: Tue, 4 Jul 2006 18:36:49 +1000 Message-ID: <17578.10401.213907.725679@cse.unsw.edu.au> References: <17576.25386.427824.894874@cse.unsw.edu.au> <1151912016.18333.4.camel@hole.melbourne.sgi.com> <17577.47377.412223.132567@cse.unsw.edu.au> <1151986622.18333.189.camel@hole.melbourne.sgi.com> <17578.7443.955689.245120@cse.unsw.edu.au> <1151999796.18333.210.camel@hole.melbourne.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Linux NFS Mailing List Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1FxgOx-0004yU-MW for nfs@lists.sourceforge.net; Tue, 04 Jul 2006 01:36:59 -0700 Received: from cantor2.suse.de ([195.135.220.15] helo=mx2.suse.de) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1FxgOw-00005K-Mp for nfs@lists.sourceforge.net; Tue, 04 Jul 2006 01:37:00 -0700 To: Greg Banks In-Reply-To: message from Greg Banks on Tuesday July 4 List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net On Tuesday July 4, gnb@melbourne.sgi.com wrote: > On Tue, 2006-07-04 at 17:47, Neil Brown wrote: > > The only place that the 'i' variable is used is in code generated by > > emit_inline, and that is already in a local block where 'genp' > > is declared. We can just declare 'i' at the same time. > > > > I'll add that to your patch and stick it in .git > > Yep. That leaves just two warnings. > > The first is the whiny message about the result of IXDR_PUT_SHORT() > not being used. I can't see any way around that except a (void) > cast, like this: > That'll do. > > Then there's the type-punned pointer warning. I hate those. Here is a trick that google helped me find. I hope it isn't worse that the disease :-) All in .git now, thanks. NeilBrown @@ -266,7 +264,8 @@ print_ifstat(int indent, char *prefix, c } else { print_ifopen(indent, "array"); } - print_ifarg("(char **)"); + /* The (void*) avoids a gcc-4.1 warning */ + print_ifarg("(char **)(void*)"); if (*objname == '&') { f_print(fout, "%s.%s_val, (u_int *)%s.%s_len", objname, name, objname, name); Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs