Hello,
Levi Bard taktaktaktaktaktaktaktaktak...@... writes:
* The variable is actually initialized in the resulting C code, by means
of
[CCode (default_value = 0)] attribute applied to Glib.Pid type in vapi.
However, valac insists that I have to initialize it nevertheless.
I think
Hello Folks,
I have a switch, that will actually always initialize a variable of type
Glib.Pid, but valac wouldn't trust me and say it might be uninitialized.
Now there are two things:
* The variable is actually initialized in the resulting C code, by means of
[CCode (default_value = 0)]
* The variable is actually initialized in the resulting C code, by means of
[CCode (default_value = 0)] attribute applied to Glib.Pid type in vapi.
However, valac insists that I have to initialize it nevertheless.
I think this is related to http://bugzilla.gnome.org/show_bug.cgi?id=578968
2009/4/18 Jan Hudec b...@ucw.cz:
Hello Folks,
I have a switch, that will actually always initialize a variable of type
Glib.Pid, but valac wouldn't trust me and say it might be uninitialized.
Using a cast
GLib.Pid pid = (GLib.Pid)0;
works for me.