build: tr: avoid a warning due to newer gcc's -Wenum-compare
commit65ed4ca07bd18c2038b5863ed1e18d3bfc8e696d
authorJim Meyering <meyering@redhat.com>
Sun, 17 May 2009 10:47:24 +0000 (17 12:47 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 17 May 2009 11:59:12 +0000 (17 13:59 +0200)
tree60b8239c2282e6305249d252a09d6cdf33c0f543
parent9b54961b13af78c4805076c6b6739cc282b53c5e
build: tr: avoid a warning due to newer gcc's -Wenum-compare

* src/tr.c (N_CHAR_CLASSES): Remove anonymous enum definition.
(look_up_char_class): Use ARRAY_CARDINALITY, rather than N_CHAR_CLASSES.
src/tr.c