From: Eric Biggers Date: Sun, 15 May 2016 01:18:11 +0000 (-0500) Subject: imagex: don't define mount_options and unmount_options if unneeded X-Git-Tag: v1.9.2~7 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=7166f4e2b95db9481e6fcb8f6ec1edc377a4341b;hp=1785172d404126c1930ca2d523e1b9fd7753dc7e imagex: don't define mount_options and unmount_options if unneeded --- diff --git a/programs/imagex.c b/programs/imagex.c index 8a0b48df..0f8c45f1 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -331,6 +331,7 @@ static const struct option join_options[] = { {NULL, 0, NULL, 0}, }; +#if WIM_MOUNTING_SUPPORTED static const struct option mount_options[] = { {T("check"), no_argument, NULL, IMAGEX_CHECK_OPTION}, {T("debug"), no_argument, NULL, IMAGEX_DEBUG_OPTION}, @@ -341,6 +342,7 @@ static const struct option mount_options[] = { {T("allow-other"), no_argument, NULL, IMAGEX_ALLOW_OTHER_OPTION}, {NULL, 0, NULL, 0}, }; +#endif static const struct option optimize_options[] = { {T("check"), no_argument, NULL, IMAGEX_CHECK_OPTION}, @@ -365,6 +367,7 @@ static const struct option split_options[] = { {NULL, 0, NULL, 0}, }; +#if WIM_MOUNTING_SUPPORTED static const struct option unmount_options[] = { {T("commit"), no_argument, NULL, IMAGEX_COMMIT_OPTION}, {T("check"), no_argument, NULL, IMAGEX_CHECK_OPTION}, @@ -374,6 +377,7 @@ static const struct option unmount_options[] = { {T("new-image"), no_argument, NULL, IMAGEX_NEW_IMAGE_OPTION}, {NULL, 0, NULL, 0}, }; +#endif static const struct option update_options[] = { /* Careful: some of the options here set the defaults for update