Skip to content

Commit 07572c6

Browse files
committed
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.
1 parent 7bbf8b5 commit 07572c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ signame(const int sig)
124124
if (s < nsignals)
125125
return signalent[s];
126126
#ifdef ASM_SIGRTMAX
127-
if (s >= ASM_SIGRTMIN && s <= ASM_SIGRTMAX) {
127+
if (s >= ASM_SIGRTMIN && s <= (unsigned int) ASM_SIGRTMAX) {
128128
sprintf(buf, "SIGRT_%u", s - ASM_SIGRTMIN);
129129
return buf;
130130
}

0 commit comments

Comments
 (0)