[gthumb] build failure on x32: printf("%ld", time_t) warnings with -Werror
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] build failure on x32: printf("%ld", time_t) warnings with -Werror
- Date: Tue, 10 Mar 2015 07:31:43 +0000 (UTC)
commit ed219c771bc0c63e1a7847e44c81f43223454eac
Author: kilobyte <kilobyte angband pl>
Date: Tue Mar 10 08:29:46 2015 +0100
build failure on x32: printf("%ld", time_t) warnings with -Werror
gthumb/gnome-desktop-thumbnail.c | 4 ++--
gthumb/main-migrate-catalogs.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gnome-desktop-thumbnail.c b/gthumb/gnome-desktop-thumbnail.c
index 2356bf5..14d1eee 100644
--- a/gthumb/gnome-desktop-thumbnail.c
+++ b/gthumb/gnome-desktop-thumbnail.c
@@ -1370,7 +1370,7 @@ gnome_desktop_thumbnail_factory_save_thumbnail (GnomeDesktopThumbnailFactory *fa
}
close (tmp_fd);
- g_snprintf (mtime_str, 21, "%ld", original_mtime);
+ g_snprintf (mtime_str, 21, "%ld", (long) original_mtime);
width = gdk_pixbuf_get_option (thumbnail, "tEXt::Thumb::Image::Width");
height = gdk_pixbuf_get_option (thumbnail, "tEXt::Thumb::Image::Height");
@@ -1471,7 +1471,7 @@ gnome_desktop_thumbnail_factory_create_failed_thumbnail (GnomeDesktopThumbnailFa
}
close (tmp_fd);
- g_snprintf (mtime_str, 21, "%ld", mtime);
+ g_snprintf (mtime_str, 21, "%ld", (long) mtime);
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, 1, 1);
saved_ok = gdk_pixbuf_save (pixbuf,
tmp_path,
diff --git a/gthumb/main-migrate-catalogs.c b/gthumb/main-migrate-catalogs.c
index 1c28fca..e823d6e 100644
--- a/gthumb/main-migrate-catalogs.c
+++ b/gthumb/main-migrate-catalogs.c
@@ -171,7 +171,7 @@ migration_for_each_file (GFile *file,
gboolean b;
int line_ofs;
/*gboolean all_keywords;*/
- time_t date;
+ long date;
int date_scope;
extension = ".search";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]