Skip to content
Snippets Groups Projects
Commit 31c885e0 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

semaphore: mute warning about deprecated functions on macOS

parent 137c063c
No related branches found
No related tags found
No related merge requests found
Pipeline #48217 passed with warnings
......@@ -18,6 +18,10 @@
#include <stdlib.h>
#if defined(__APPLE__)
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
void knot_sem_init(knot_sem_t *sem, unsigned int value)
{
int ret = sem_init(&sem->semaphore, 1, value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment