]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: prevent unused variables
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 21 Nov 2022 03:17:44 +0000 (04:17 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Nov 2022 13:57:41 +0000 (14:57 +0100)
disk-utils/cfdisk.c

index 36eb3f8c610ed3754e5b65bb384399e793e802df..3d741c9743995da41c466c9b20035d9df4625c23 100644 (file)
@@ -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;