diff options
author | Szabolcs Nagy <nsz@port70.net> | 2014-02-11 10:51:16 +0100 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2014-02-11 10:51:16 +0100 |
commit | aa6ce3d4e31e6e138a8fa5911d801ebc5ab47473 (patch) | |
tree | a8a9948658fff295d374ad2822d65cc4fc5c1d9d /include/stdlib.h | |
parent | fdf5f1b13123883ac1d5e298e5f32c7ed43578ce (diff) | |
download | musl-aa6ce3d4e31e6e138a8fa5911d801ebc5ab47473.tar.gz musl-aa6ce3d4e31e6e138a8fa5911d801ebc5ab47473.tar.bz2 musl-aa6ce3d4e31e6e138a8fa5911d801ebc5ab47473.tar.xz musl-aa6ce3d4e31e6e138a8fa5911d801ebc5ab47473.zip |
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/stdlib.h')
-rw-r--r-- | include/stdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 1e67b896..f034c6e5 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -93,7 +93,7 @@ size_t wcstombs (char *__restrict, const wchar_t *__restrict, size_t); #define WSTOPSIG(s) WEXITSTATUS(s) #define WIFEXITED(s) (!WTERMSIG(s)) #define WIFSTOPPED(s) ((short)((((s)&0xffff)*0x10001)>>8) > 0x7f00) -#define WIFSIGNALED(s) (((s)&0xffff)-1 < 0xffu) +#define WIFSIGNALED(s) (((s)&0xffff)-1U < 0xffu) int posix_memalign (void **, size_t, size_t); int setenv (const char *, const char *, int); |