[libvirt] [PATCH] genprotocol.pl: Fix code on FreeBSD too

Daniel P. Berrange berrange at redhat.com
Fri Sep 27 14:41:39 UTC 2013


On Fri, Sep 27, 2013 at 04:39:21PM +0200, Michal Privoznik wrote:
> On some systems (linux, cygwin and freebsd) rpcgen generates files which
> when compiling produces this warning:
> 
> remote/remote_protocol.c: In function 'xdr_remote_node_get_cpu_stats_ret':
> remote/remote_protocol.c:530: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
> 
> Hence, on those systems we need to post-process the files by
> the rpc/genprotocol.pl perl script. At the beginning of the script the
> OS is detected via $^O perl variable. On FreeBSD it contains 'freebsd'
> string and not 'gnukfreebsd' as is currently there:

The 'gnukfreebsd' string there is for Debian/kFreeBSD, not FreeBSD.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list