build: tr: avoid a warning due to newer gcc's -Wenum-compare