Public
Federated
Thread

so is it just safe to ignore these stupid compiler warnings when i use pthreads or what?


replyReply to @nyanide@lab.nyanide.com
@nyanide@lab.nyanide.com it's technically just a note, not a warning yet

replyReply to @takao@shitposter.world
@takao@shitposter.world there's warnings around it complaining about similar problems.


GNUkko (Eris-libre)
replyReply to @nyanide@lab.nyanide.com
I'm assuming this is from you calling pthread_create, right? This is not a stupid warning, it is complaining that you should give it a function void fn(void* arg) but you gave it void fn(int arg). It will probably work, but you should probably have the thread start function be the expected interface and then just do the void*int conversion in your own code instead of relying on the compiler to do the "right thing" in the face of UB.

replyReply to @eris@p.enes.lv
@eris@p.enes.lv yeah it is, I guess for c the way that function is designed works fine