[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] daemon/ warnings



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

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]