Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
512 stars 122 forks source link

clang 16.0.0 build fail #786

Closed Pro-pra closed 1 year ago

Pro-pra commented 1 year ago

from https://github.com/armory3d/armortools/issues/1557

I have this error on clang 16.0.0

In file included from ../../../armorcore/Kinc/Backends/System/POSIX/Sources/kinc/backend/posixunit.c:4:
../../../armorcore/Kinc/Backends/System/POSIX/Sources/kinc/backend/thread.c.h:67:2: error: call to undeclared function 'pthread_setname_np'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        pthread_setname_np(pthread_self(), name);
        ^
1 error generated.

I think need -Wno-error=implicit-function-declaration Where in the file can it be inserted?

RobDangerous commented 1 year ago

Nope, you can't insert -Wno-error=implicit-function-declaration into that file. Anyway, I'll fix it tonight.