After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679237 - GLib.File.load_contents warns that third parameter is guint8 **
GLib.File.load_contents warns that third parameter is guint8 **
Status: RESOLVED DUPLICATE of bug 710867
Product: vala
Classification: Core
Component: Bindings: GLib
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-02 00:30 UTC by Tiffany Antopolski
Modified: 2014-01-25 07:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tiffany Antopolski 2012-07-02 00:30:40 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 **’
Comment 1 Evan Nemerson 2014-01-25 07:32:49 UTC
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 ***