dnslabeltext.rl: In function ‘DNSName::string_t segmentDNSNameRaw(const char*, size_t)’:
dnslabeltext.rl:115:38: warning: comparison is always false due to limited range of data type [-Wtype-limits]
115 | if (labellen < 0 || labellen > 63) {
| ~~~~~~~~~^~~
dnslabeltext.rl:115:38: warning: comparison is always false due to limited range of data type [-Wtype-limits]
115 | if (labellen < 0 || labellen > 63) {
| ~~~~~~~~~^~~
labeltext is defined as char, but some platforms have char as unsigned.
Short description
labeltext is defined as
char
, but some platforms havechar
asunsigned
.I cannot tell if this is harmless or not.
Environment
Steps to reproduce
Build on arm64 / ppc64el / s390x, apparently :)
Other information
Logs: