mirror of
https://github.com/fluencelabs/musl
synced 2025-06-26 05:02:02 +00:00
fix signed and unsigned comparision in macros in public headers
gcc -Wsign-compare warns about expanded macros that were defined in standard headers (before gcc 4.8) which can make builds fail that use -Werror. changed macros: WIFSIGNALED, __CPU_op_S
This commit is contained in:
@ -78,7 +78,7 @@ int __sched_cpucount(size_t, const cpu_set_t *);
|
||||
int sched_getaffinity(pid_t, size_t, cpu_set_t *);
|
||||
int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
|
||||
|
||||
#define __CPU_op_S(i, size, set, op) ( (i)/8 >= (size) ? 0 : \
|
||||
#define __CPU_op_S(i, size, set, op) ( (i)/8U >= (size) ? 0 : \
|
||||
((set)->__bits[(i)/8/sizeof(long)] op (1UL<<((i)%(8*sizeof(long))))) )
|
||||
|
||||
#define CPU_SET_S(i, size, set) __CPU_op_S(i, size, set, |=)
|
||||
|
Reference in New Issue
Block a user