mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
pthread_t is opaque type therefore we can not apply simple arithmetic to variables of pthread_t type this test needs to pass a invalid pthread_t handle, typcasting to uintptr_t works too and is portable across glibc and musl Fixes | pth_detached3.c:24:25: error: invalid use of undefined type 'struct __pthread' | 24 | pthread_detach(thread + 8); | | ^ [ bvanassche: reformatted patch description and fixed up line numbers ]
13 lines
383 B
Plaintext
13 lines
383 B
Plaintext
|
|
pthread_detach(): invalid thread ID 0x........
|
|
at 0x........: pthread_detach (drd_pthread_intercepts.c:?)
|
|
by 0x........: main (pth_detached3.c:22)
|
|
|
|
pthread_detach(): invalid thread ID 0x........
|
|
at 0x........: pthread_detach (drd_pthread_intercepts.c:?)
|
|
by 0x........: main (pth_detached3.c:25)
|
|
|
|
Finished.
|
|
|
|
ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
|