Closed neheb closed 4 months ago
What is the error message exactly?
pthread_t
may be anything.
../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.
pthread_t is a pointer.