musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/sched.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014年02月11日 10:51:16 +0100
committerSzabolcs Nagy <nsz@port70.net>2014年02月11日 10:51:16 +0100
commitaa6ce3d4e31e6e138a8fa5911d801ebc5ab47473 (patch)
treea8a9948658fff295d374ad2822d65cc4fc5c1d9d /include/sched.h
parentfdf5f1b13123883ac1d5e298e5f32c7ed43578ce (diff)
downloadmusl-aa6ce3d4e31e6e138a8fa5911d801ebc5ab47473.tar.gz
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
Diffstat (limited to 'include/sched.h')
-rw-r--r--include/sched.h 2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sched.h b/include/sched.h
index 6a6b2fcb..105dac95 100644
--- a/include/sched.h
+++ b/include/sched.h
@@ -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, |=)
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 07:19:01 +0000

AltStyle によって変換されたページ (->オリジナル) /