... for win32 builds. Spotted by gcc(mingw-w64)
src/waffle/core/wcore_display.c:37:5: warning: missing braces around
initializer [-Wmissing-braces]
static mtx_t mutex = _MTX_INITIALIZER_NP;
^
Signed-off-by: Emil Velikov <[email protected]>
---
third_party/threads/threads.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/third_party/threads/threads.h b/third_party/threads/threads.h
index 8317c85..4e7dba2 100644
--- a/third_party/threads/threads.h
+++ b/third_party/threads/threads.h
@@ -57,7 +57,7 @@
#define TSS_DTOR_ITERATIONS 1
// FIXME: temporary non-standard hack to ease transition
-#define _MTX_INITIALIZER_NP {(PCRITICAL_SECTION_DEBUG)-1, -1, 0, 0, 0, 0}
+#define _MTX_INITIALIZER_NP {{(PCRITICAL_SECTION_DEBUG)-1, -1, 0, 0, 0, 0}}
/*---------------------------- types ----------------------------*/
typedef struct cnd_t {
--
2.0.0
_______________________________________________
waffle mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/waffle