d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Running From Cmd Line And Hitting Warning > Want It To Compile And Run Ignoring Warn
Add Reply New Topic New Poll
Member
Posts: 23,502
Joined: Aug 3 2011
Gold: 6,921.00
Aug 10 2018 10:26am
Paying 100 fg for an answer, can send code if it's requested, maybe I'm using the #pragma command wrong but this is getting annoying...

Code
Threads.cpp:43:2: warning: 'sem_init' is deprecated [-Wdeprecated-declarations]
sem_init(&Semaphore_For_Buffer, 0, Size_Of_Buffer);


1 warning generated.

To give more of an insight

This post was edited by Cocoo on Aug 10 2018 10:37am
Member
Posts: 9,803
Joined: Jun 28 2005
Gold: 6.67
Aug 19 2018 02:42am
It seems you're using a mac, and osx doesn't seem to implement this feature at all:
- https://stackoverflow.com/q/27736618/2456565
- https://stackoverflow.com/q/1413785/2456565

Use the suggested alternatives instead.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll