From 07572c68dd2c4cb2bffb2fb894200e835de551ab Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 12 Jan 2016 00:04:15 +0000 Subject: [PATCH] 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. --- signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0