diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/thread_tools.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/thread_tools.c b/misc/thread_tools.c index 91b774eb93..55dd85c944 100644 --- a/misc/thread_tools.c +++ b/misc/thread_tools.c @@ -245,7 +245,14 @@ int mp_cancel_get_fd(struct mp_cancel *c) { pthread_mutex_lock(&c->lock); if (c->wakeup_pipe[0] < 0) { +#if defined(__GNUC__) && !defined(__clang__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wstringop-overflow=" +#endif mp_make_wakeup_pipe(c->wakeup_pipe); +#if defined(__GNUC__) && !defined(__clang__) +# pragma GCC diagnostic pop +#endif retrigger_locked(c); } pthread_mutex_unlock(&c->lock); |