From: Arran Cudbard-Bell Date: Mon, 27 Jun 2022 14:06:30 +0000 (-0500) Subject: Quiet issue with sign comparisons X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a281bb7b8bbd16be19a118902fac68a5efaf464;p=thirdparty%2Ffreeradius-server.git Quiet issue with sign comparisons --- diff --git a/src/lib/util/udpfromto.c b/src/lib/util/udpfromto.c index 92d8d282bba..11f0a1168bc 100644 --- a/src/lib/util/udpfromto.c +++ b/src/lib/util/udpfromto.c @@ -296,10 +296,15 @@ int recvfromto(int fd, void *buf, size_t len, int flags, if (ifindex) *ifindex = 0; if (when) *when = fr_time_wrap(0); +/* + * Needed for emscripten, seems to be an issue in CMSG_NXTHDR + */ +DIAG_OFF(sign-compare) /* Process auxiliary received data in msgh */ for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh, cmsg)) { +DIAG_ON(sign-compare) #ifdef IP_PKTINFO if ((cmsg->cmsg_level == SOL_IP) &&