GNOME Bugzilla – Bug 622708
unowned string array treated as char**
Last modified: 2018-05-22 13:39:42 UTC
The following program produces compile time warnings from gcc: namespace Test { public static int main (string[] args) { unowned string[] dirs = Environment.get_system_data_dirs(); return 0; } } Gives: foo.vala.c: In function ‘test_main’: foo.vala.c:25: warning: assignment from incompatible pointer type And indeed on line 25 of the generated C it assigns a const char** to a char**. The VAPI appears to be correct as it declares this function as public static unowned string[] get_system_data_dirs ();
*** Bug 643015 has been marked as a duplicate of this bug. ***
*** Bug 652310 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/113.