diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-11-29 11:06:05 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-11-29 11:11:10 -0500 |
commit | 01dc33ce287c68bf6bbc22f5b1d5eb29e204b6a7 (patch) | |
tree | beed454ea7762c78a179437103a141987eab877c | |
parent | 820d3acfe924e58965d14b4711d5df31c5db199a (diff) |
nspawn: fix unused variable warning
-rw-r--r-- | src/nspawn/nspawn.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index b6fa8fcc15..fed150e364 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -2078,7 +2078,14 @@ static int dissect_image( bool *secondary) { #ifdef HAVE_BLKID - int home_nr = -1, root_nr = -1, secondary_root_nr = -1, srv_nr = -1; + int home_nr = -1, srv_nr = -1; +#ifdef GPT_ROOT_NATIVE + int root_nr = -1; +#endif +#ifdef GPT_ROOT_SECONDARY + int secondary_root_nr = -1; +#endif + _cleanup_free_ char *home = NULL, *root = NULL, *secondary_root = NULL, *srv = NULL; _cleanup_udev_enumerate_unref_ struct udev_enumerate *e = NULL; _cleanup_udev_device_unref_ struct udev_device *d = NULL; |