From: Dmitry V. Levin Date: Tue, 12 Jan 2016 00:04:15 +0000 (+0000) Subject: signal.c: fix musl libc compilation warning X-Git-Tag: v4.12~654 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07572c68dd2c4cb2bffb2fb894200e835de551ab;p=strace signal.c: fix musl libc compilation warning musl libc defines SIGRTMAX to a function that returns signed int, which obviously makes gcc -Wsign-compare unhappy. * signal.c (signame): Cast ASM_SIGRTMAX to unsigned int. --- diff --git a/signal.c b/signal.c index ec1684ef..45509dce 100644 --- a/signal.c +++ b/signal.c @@ -124,7 +124,7 @@ signame(const int sig) if (s < nsignals) return signalent[s]; #ifdef ASM_SIGRTMAX - if (s >= ASM_SIGRTMIN && s <= ASM_SIGRTMAX) { + if (s >= ASM_SIGRTMIN && s <= (unsigned int) ASM_SIGRTMAX) { sprintf(buf, "SIGRT_%u", s - ASM_SIGRTMIN); return buf; }