win32: silence build warning
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Wed, 6 Nov 2013 13:02:26 +0000 (14:02 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jan 2014 13:28:31 +0000 (08:28 -0500)
glocalfile.c: In function 'g_local_file_measure_size_of_file':
glocalfile.c:2654:3: warning: passing argument 2 of 'g_lstat' from
incompatible pointer type [enabled by default]
   if (g_lstat (name->data, &buf) != 0)
   ^
In file included from glocalfile.c:68:0:
../glib/gstdio.h:135:5: note: expected 'struct GStatBuf *' but argument
is of type 'struct _stati64 *'

https://bugzilla.gnome.org/show_bug.cgi?id=711547

gio/glocalfile.c

index be516c1..1eb3750 100644 (file)
@@ -2643,7 +2643,7 @@ g_local_file_measure_size_of_file (gint           parent_fd,
                                    MeasureState  *state,
                                    GError       **error)
 {
-  struct stat buf;
+  GLocalFileStat buf;
 
   if (g_cancellable_set_error_if_cancelled (state->cancellable, error))
     return FALSE;