diff options
| author | Thomas Weißschuh <thomas@t-8ch.de> | 2022-11-21 04:17:44 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2022-11-22 14:57:41 +0100 |
| commit | 061282b2a48008373c88c86a2bed6ce0602b29d6 (patch) | |
| tree | 2dc6422fe849617ff9c74e59dfbddc3686593596 /disk-utils/cfdisk.c | |
| parent | 006612cdf4170e2f9e639dcc13936a4346b7d248 (diff) | |
| download | util-linux-061282b2a48008373c88c86a2bed6ce0602b29d6.tar.gz | |
cfdisk: prevent unused variables
Diffstat (limited to 'disk-utils/cfdisk.c')
| -rw-r--r-- | disk-utils/cfdisk.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
