mirror of
https://github.com/fluencelabs/musl
synced 2025-06-22 03:02:07 +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:
@ -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);
|
||||
|
Reference in New Issue
Block a user