Re: nfs-utils 1.0.9-rc1 - hopefully -final in a week

2 messages, 2 authors, 2006-07-04 · open the first message on its own page

Re: nfs-utils 1.0.9-rc1 - hopefully -final in a week

From: Neil Brown <hidden>
Date: 2006-07-04 08:36:59

On Tuesday July 4, gnb@melbourne.sgi.com wrote:
On Tue, 2006-07-04 at 17:47, Neil Brown wrote:
quoted
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

Re: nfs-utils 1.0.9-rc1 - hopefully -final in a week

From: Greg Banks <hidden>
Date: 2006-07-04 09:09:16

On Tue, 2006-07-04 at 18:36, Neil Brown wrote:
On Tuesday July 4, gnb@melbourne.sgi.com wrote:
quoted
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 :-)
Looks fine.
All in .git now, thanks.
Yay, no warnings ;-)

Greg.
-- 
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.



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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help