ppc64: Avoid "defined by not used" warning for is_openable function.

This commit is contained in:
Richard W.M. Jones
2012-06-02 10:35:06 +01:00
parent bbb21f923a
commit 450493cf6b

View File

@@ -471,7 +471,9 @@ guestfs__add_cdrom (guestfs_h *g, const char *filename)
return guestfs__config (g, "-cdrom", filename);
}
#if defined(__i386__) || defined(__x86_64__)
static int is_openable (guestfs_h *g, const char *path, int flags);
#endif
int
guestfs__launch (guestfs_h *g)
@@ -1438,6 +1440,7 @@ qemu_supports_re (guestfs_h *g, const pcre *option_regex)
}
#endif
#if defined(__i386__) || defined(__x86_64__)
/* Check if a file can be opened. */
static int
is_openable (guestfs_h *g, const char *path, int flags)
@@ -1450,6 +1453,7 @@ is_openable (guestfs_h *g, const char *path, int flags)
close (fd);
return 1;
}
#endif
static char *
qemu_drive_param (guestfs_h *g, const struct drive *drv)