[glib] tests/1bitmutex: Hack to build with -Werror=missing-prototypes
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests/1bitmutex: Hack to build with -Werror=missing-prototypes
- Date: Fri, 2 Nov 2012 13:05:29 +0000 (UTC)
commit 139892734ebdc012b7a0c4897d89d16b3706fd5f
Author: Colin Walters <walters verbum org>
Date: Thu Nov 1 19:37:38 2012 -0400
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
glib/tests/1bit-mutex.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/1bit-mutex.c b/glib/tests/1bit-mutex.c
index 8811cd3..881f1a6 100644
--- a/glib/tests/1bit-mutex.c
+++ b/glib/tests/1bit-mutex.c
@@ -21,6 +21,10 @@
#include <glib.h>
#if TEST_EMULATED_FUTEX
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmissing-prototypes"
+
/* this is defined for the 1bit-mutex-emufutex test.
*
* we want to test the emulated futex even if futex(2) is available.
@@ -46,6 +50,8 @@
#define G_BIT_LOCK_FORCE_FUTEX_EMULATION
#include <glib/gbitlock.c>
+
+#pragma GCC diagnostic pop
#endif
volatile GThread *owners[LOCKS];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]