GNOME Bugzilla – Bug 679237
GLib.File.load_contents warns that third parameter is guint8 **
Last modified: 2014-01-25 07:32:49 UTC
This is the code: . . . uint8[] file_contents; file.load_contents (null, out file_contents, null); . . . valac: warning: passing argument 3 of ‘g_file_load_contents’ from incompatible pointer type [enabled by default] In file included from /usr/include/glib-2.0/gio/gio.h:66:0, from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28, from /usr/include/gtk-3.0/gdk/gdk.h:32, from /usr/include/gtk-3.0/gtk/gtk.h:30, ... /usr/include/glib-2.0/gio/gfile.h:968:10: note: expected ‘char **’ but argument is of type ‘guint8 **’
I know this bug came first, but marking it as a dup of #710867 since that bug includes some other functions with the same issue, as well as more conversation. *** This bug has been marked as a duplicate of bug 710867 ***