From: Luca Bruno Date: Fri, 15 Jul 2011 16:24:15 +0000 (+0200) Subject: glib-2.0: Set lvalue_access to false for va_list X-Git-Tag: 0.13.2~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83afc92daf8b4660c99cfea0f06c5b2a3d8a1aff;p=thirdparty%2Fvala.git glib-2.0: Set lvalue_access to false for va_list Fixes bug 654646. --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 02911887f..f77549bf4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -67,6 +67,7 @@ TESTS = \ structs/bug622422.vala \ structs/bug623092.vala \ structs/bug651441.vala \ + structs/bug654646.vala \ delegates/delegates.vala \ delegates/bug539166.vala \ delegates/bug595610.vala \ diff --git a/tests/structs/bug654646.vala b/tests/structs/bug654646.vala new file mode 100644 index 000000000..3a6597407 --- /dev/null +++ b/tests/structs/bug654646.vala @@ -0,0 +1,10 @@ +void foo (int i, ...) { + va_list v = va_list (); + bar (v); +} + +void bar (va_list v) { +} + +void main () { +} diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 8ce2417b8..34de1a45a 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -793,7 +793,7 @@ public struct time_t { } [SimpleType] -[CCode (cheader_filename="stdarg.h", cprefix="va_", has_type_id = false, destroy_function = "va_end")] +[CCode (cheader_filename="stdarg.h", cprefix="va_", has_type_id = false, destroy_function = "va_end", lvalue_access = false)] public struct va_list { [CCode (cname = "va_start")] public va_list ();