[glib] win32: silence build warning



commit 2873b3c20cf6b6ebde5bcaaf395675ba7bc3b696
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Wed Nov 6 13:54:34 2013 +0100

    win32: silence build warning
    
    glocalfileinfo.c: In function '_g_local_file_info_get':
    glocalfileinfo.c:1955:11: warning: passing argument 3 of
    'get_thumbnail_attributes' from incompatible pointer type [enabled by
    default]
               get_thumbnail_attributes (path, info, &statbuf);
               ^
    glocalfileinfo.c:1285:1: note: expected 'const struct GStatBuf *' but
    argument is of type 'struct _stati64 *'
     get_thumbnail_attributes (const char     *path,
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711547

 gio/glocalfileinfo.c   |    2 +-
 gio/thumbnail-verify.c |    2 +-
 gio/thumbnail-verify.h |    3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index ff707b7..c5d9bba 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -1283,7 +1283,7 @@ get_content_type (const char          *basename,
 static void
 get_thumbnail_attributes (const char     *path,
                           GFileInfo      *info,
-                          const GStatBuf *stat_buf)
+                          const GLocalFileStat *stat_buf)
 {
   GChecksum *checksum;
   char *uri;
diff --git a/gio/thumbnail-verify.c b/gio/thumbnail-verify.c
index afa10ec..e50b281 100644
--- a/gio/thumbnail-verify.c
+++ b/gio/thumbnail-verify.c
@@ -224,7 +224,7 @@ out:
 gboolean
 thumbnail_verify (const char     *thumbnail_path,
                   const gchar    *file_uri,
-                  const GStatBuf *file_stat_buf)
+                  const GLocalFileStat *file_stat_buf)
 {
   gboolean thumbnail_is_valid = FALSE;
   ExpectedInfo expected_info;
diff --git a/gio/thumbnail-verify.h b/gio/thumbnail-verify.h
index b01fef9..3c1812c 100644
--- a/gio/thumbnail-verify.h
+++ b/gio/thumbnail-verify.h
@@ -23,9 +23,10 @@
 
 #include <glib.h>
 #include <gstdio.h>
+#include "glocalfileinfo.h"
 
 gboolean   thumbnail_verify                   (const gchar            *thumbnail_path,
                                                const gchar            *file_uri,
-                                               const GStatBuf         *file_stat_buf);
+                                               const GLocalFileStat   *file_stat_buf);
 
 #endif /* _thumbnail_verify_h_ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]