[Pkg-libvirt-commits] [libguestfs] 57/156: options: Compile out part of union which cannot be used when not compiling guestfish.

Hilko Bengen bengen at moszumanska.debian.org
Sat Aug 30 08:25:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit c84a4e5d378d326f01fd996cc94f1e9015a7cccd
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Jun 23 21:26:23 2014 +0100

    options: Compile out part of union which cannot be used when not compiling guestfish.
    
    (cherry picked from commit bb3ba0c43a515ecb1444f7f3d97e6f30b3b9a610)
---
 fish/options.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fish/options.h b/fish/options.h
index 639b1fe..7df20f5 100644
--- a/fish/options.h
+++ b/fish/options.h
@@ -75,11 +75,13 @@ struct drv {
     struct {
       char *guest;          /* guest name */
     } d;
+#if COMPILING_GUESTFISH
     struct {
       char *filename;       /* disk filename (testX.img) */
       void *data;           /* prepared type */
       void (*data_free)(void*); /* function to free 'data' */
     } N;
+#endif
   };
 
   /* Opaque pointer.  Not used by the options-parsing code, and so

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list