d2jsp
d2jsp Forums > Programmer's Haven > C/C++/C# > Running From Cmd Line And Hitting Warning > Want It To Compile And Run Ignoring Warn
Add Reply New Topic New Poll
Sterben
#1 Aug 10 2018 10:26am
Group: Member
Posts: 21,476
Joined: Aug 3 2011
Gold: 3,597.00
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
KrzaQ2
#2 Aug 19 2018 02:42am
Group: Member
Posts: 9,800
Joined: Jun 28 2005
Gold: 6.66
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 C/C++/C# Topic List
Add Reply New Topic New Poll