From: Thomas Weißschuh Date: Mon, 21 Nov 2022 03:17:44 +0000 (+0100) Subject: cfdisk: prevent unused variables X-Git-Tag: v2.39-rc1~408 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=061282b2a48008373c88c86a2bed6ce0602b29d6;p=thirdparty%2Futil-linux.git cfdisk: prevent unused variables --- diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 36eb3f8c61..3d741c9743 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -124,12 +124,14 @@ enum { CFDISK_CL_FREESPACE, CFDISK_CL_INFO }; +#ifdef HAVE_USE_DEFAULT_COLORS static const int color_pairs[][2] = { /* color foreground, background */ [CFDISK_CL_WARNING] = { COLOR_RED, -1 }, [CFDISK_CL_FREESPACE] = { COLOR_GREEN, -1 }, [CFDISK_CL_INFO] = { COLOR_BLUE, -1 } }; +#endif struct cfdisk;