[pygobject] Cairo: add missing braces around array-of-struct definition
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Cairo: add missing braces around array-of-struct definition
- Date: Tue, 24 Jan 2012 15:30:32 +0000 (UTC)
commit e37ee78fbf0aa72159a40da4165a26bea065faf1
Author: Will Thompson <will thompson collabora co uk>
Date: Mon Jan 23 13:10:30 2012 +0000
Cairo: add missing braces around array-of-struct definition
This triggered a -Wmissing-braces warning.
https://bugzilla.gnome.org/show_bug.cgi?id=668497
gi/pygi-foreign-cairo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-foreign-cairo.c b/gi/pygi-foreign-cairo.c
index c6303f8..4e12df3 100644
--- a/gi/pygi-foreign-cairo.c
+++ b/gi/pygi-foreign-cairo.c
@@ -112,7 +112,7 @@ cairo_surface_release (GIBaseInfo *base_info,
Py_RETURN_NONE;
}
-static PyMethodDef _gi_cairo_functions[] = {0,};
+static PyMethodDef _gi_cairo_functions[] = { {0,} };
PYGLIB_MODULE_START(_gi_cairo, "_gi_cairo")
{
#if PY_VERSION_HEX < 0x03000000
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]