[Libguestfs] daemon/ warnings

Richard W.M. Jones rjones at redhat.com
Mon Aug 10 10:49:58 UTC 2009


On Mon, Aug 10, 2009 at 11:11:14AM +0100, Daniel P. Berrange wrote:
> On Mon, Aug 10, 2009 at 11:09:01AM +0100, Richard W.M. Jones wrote:
> > On Mon, Aug 10, 2009 at 10:15:45AM +0100, Matthew Booth wrote:
> > > In general, I would like to get down to no compiler warnings. The  
> > > biggest culprit in daemon, though, is rpcgen generated stuff.
> > 
> > In libvirt we have some Perl scripts that attempt to rewrite the
> > output of rpcgen-generated code to remove warnings.
> > 
> > It's quite a bit of hassle though, and of course depends closely on
> > the version of rpcgen (which is enforced in libvirt I think).
> > 
> > Personally I'd prefer it if we could compile the rpcgen code with
> > -Wno-unused -fno-strict-alias.  However automake doesn't support
> > providing CFLAGS for just a single file.
> 
> You could compile a libtool convenience library with just the rpcgen
> code, and then link that to the real library. That would let you set
> CFLAGS for that the mini rpcgen code, and the end result would be the
> same since the rpcgen mini lib would be statically linked into the
> main library during build

Sounds like a good idea.

Can -fno-strict-aliasing be applied only to a single file?  I would
imagine the answer must be yes.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 75 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora




More information about the Libguestfs mailing list