summaryrefslogtreecommitdiff
path: root/src/dircolors.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-09-15 00:55:08 -0500
committerPaul Eggert <eggert@cs.ucla.edu>2022-09-15 01:16:31 -0500
commit9a777a44b31b253c8909c09bdb83fbc62c46ef3e (patch)
tree2be2cd6cee0feda1fae13cc0b50d182b6c4d56fd /src/dircolors.c
parent7363a58286783a0b1a880faed7f7f9eaaf3c1b72 (diff)
downloadcoreutils-9a777a44b31b253c8909c09bdb83fbc62c46ef3e.tar.gz
maint: prefer static_assert to verify
* bootstrap.conf: Add assert-h. * gl/lib/randperm.c: Do not include verify.h. * gl/lib/randperm.c, src/basenc.c, src/dd.c, src/digest.c: * src/dircolors.c, src/expr.c, src/factor.c, src/ls.c, src/numfmt.c: * src/od.c, src/seq.c, src/shred.c, src/sort.c, src/stat.c: Prefer C23’s static_assert to nonstandard verify. * gl/modules/randperm (Depends-on): Add assert-h.
Diffstat (limited to 'src/dircolors.c')
-rw-r--r--src/dircolors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dircolors.c b/src/dircolors.c
index f8e2f549f..373ef1b4f 100644
--- a/src/dircolors.c
+++ b/src/dircolors.c
@@ -67,7 +67,7 @@ static char const *const ls_codes[] =
"so", "bd", "bd", "cd", "cd", "do", "ex", "lc", "lc", "rc", "rc", "ec", "ec",
"su", "su", "sg", "sg", "st", "ow", "ow", "tw", "tw", "ca", "mh", "cl", NULL
};
-verify (ARRAY_CARDINALITY (slack_codes) == ARRAY_CARDINALITY (ls_codes));
+static_assert (ARRAY_CARDINALITY (slack_codes) == ARRAY_CARDINALITY (ls_codes));
/* Whether to output escaped ls color codes for display. */
static bool print_ls_colors;