mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-23 07:39:17 +02:00
tests/1bitmutex: Hack to build with -Werror=missing-prototypes
Admittedly, this could probably be better, but it builds. https://bugzilla.gnome.org/show_bug.cgi?id=687385
This commit is contained in:
parent
8e59d8602c
commit
139892734e
@ -21,6 +21,10 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
#if TEST_EMULATED_FUTEX
|
#if TEST_EMULATED_FUTEX
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
|
||||||
|
|
||||||
/* this is defined for the 1bit-mutex-emufutex test.
|
/* this is defined for the 1bit-mutex-emufutex test.
|
||||||
*
|
*
|
||||||
* we want to test the emulated futex even if futex(2) is available.
|
* we want to test the emulated futex even if futex(2) is available.
|
||||||
@ -46,6 +50,8 @@
|
|||||||
#define G_BIT_LOCK_FORCE_FUTEX_EMULATION
|
#define G_BIT_LOCK_FORCE_FUTEX_EMULATION
|
||||||
|
|
||||||
#include <glib/gbitlock.c>
|
#include <glib/gbitlock.c>
|
||||||
|
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
volatile GThread *owners[LOCKS];
|
volatile GThread *owners[LOCKS];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user