Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pthread_t is a pointer on musl libc. ../src/debuglog.c: In function 'log_line': ../src/debuglog.c:279:40: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'pthread_t' {aka 'struct __pthread *'} [-Werror=format=] 279 | printf("%s%.8d%s [" THREAD_FORMAT "] %s%s%s, %s%s%s\n", | ^~~~~~~~~~~~ 280 | time_pfx, delta, time_sfx, thread_id, | ~~~~~~~~~ | | | pthread_t {aka struct __pthread *} ../src/debuglog.c:268:26: note: format string is defined here 268 | #define THREAD_FORMAT "%lu" | ~~^ | | | long unsigned int ../src/debuglog.c:285:40: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'pthread_t' {aka 'struct __pthread *'} [-Werror=format=] 285 | printf("%s%.8d%s [" THREAD_FORMAT "] %s%s%s\n", | ^~~~~~~~~~~~ 286 | time_pfx, delta, time_sfx, thread_id, | ~~~~~~~~~ | | | pthread_t {aka struct __pthread *} ../src/debuglog.c:268:26: note: format string is defined here 268 | #define THREAD_FORMAT "%lu" | ~~^ | | | long unsigned int cc1: some warnings being treated as errors ninja: build stopped: subcommand failed. Signed-off-by: Rosen Penev <[email protected]>
- Loading branch information