Mercurial > geeqie
changeset 1164:3692efcbd325
Fix compilation warnings.
author | zas_ |
---|---|
date | Thu, 20 Nov 2008 11:46:43 +0000 |
parents | a72acb0fb9a6 |
children | 473a7c4881cd |
files | src/exif-common.c src/filecache.c src/print.c src/ui_fileops.c src/ui_fileops.h src/view_file_icon.c src/view_file_list.c |
diffstat | 7 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/exif-common.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/exif-common.c Thu Nov 20 11:46:43 2008 +0000 @@ -456,7 +456,7 @@ p2 = (gint)((p - p1)*60); p3 = ((p - p1)*60 - p2)*60; - g_string_append_printf(string, "%0d° %0d' %0.2f\" %.1s", p1, p2, p3, ref); + g_string_append_printf(string, "%0lu° %0lu' %0.2f\" %.1s", p1, p2, p3, ref); } // if (item && ref) item = exif_get_item(exif, "Exif.GPSInfo.GPSLongitude"); @@ -474,7 +474,7 @@ p2 = (gint)((p - p1)*60); p3 = ((p - p1)*60 - p2)*60; - g_string_append_printf(string, ", %0d° %0d' %0.2f\" %.1s", p1, p2, p3, ref); + g_string_append_printf(string, ", %0lu° %0lu' %0.2f\" %.1s", p1, p2, p3, ref); } // if (item && ref) text = string->str;
--- a/src/filecache.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/filecache.c Thu Nov 20 11:46:43 2008 +0000 @@ -165,7 +165,7 @@ { GList *work; work = fc->list; - guint n = 0; + gulong n = 0; DEBUG_1("cache dump: fc=%p max size:%ld size:%ld", fc, fc->max_size, fc->size); while (work)
--- a/src/print.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/print.c Thu Nov 20 11:46:43 2008 +0000 @@ -1223,7 +1223,7 @@ } text[6] = '\0'; - fprintf(f, text); + fprintf(f, "%s", text); } static gint print_job_ps_page_image(PrintWindow *pw, GdkPixbuf *pixbuf, gdouble x, gdouble y, gdouble w, gdouble h, @@ -1348,7 +1348,7 @@ text[1] = hex_digits[*p & 0xf]; text[2] = '\0'; - fprintf(f, text); + fprintf(f, "%s", text); p++; }
--- a/src/ui_fileops.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/ui_fileops.c Thu Nov 20 11:46:43 2008 +0000 @@ -829,7 +829,7 @@ return ret; } -gboolean recursive_mkdir_if_not_exists(gchar *path, mode_t mode) +gboolean recursive_mkdir_if_not_exists(const gchar *path, mode_t mode) { if (!path) return FALSE;
--- a/src/ui_fileops.h Thu Nov 20 07:22:56 2008 +0000 +++ b/src/ui_fileops.h Thu Nov 20 11:46:43 2008 +0000 @@ -84,7 +84,7 @@ gint file_in_path(const gchar *name); -gboolean recursive_mkdir_if_not_exists(gchar *path, mode_t mode); +gboolean recursive_mkdir_if_not_exists(const gchar *path, mode_t mode); #endif /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
--- a/src/view_file_icon.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/view_file_icon.c Thu Nov 20 11:46:43 2008 +0000 @@ -544,7 +544,7 @@ uri_text = uri_text_from_filelist(list, &total, (info == TARGET_TEXT_PLAIN)); filelist_free(list); - DEBUG_1(uri_text); + DEBUG_1("%s", uri_text); gtk_selection_data_set(selection_data, selection_data->target, 8, (guchar *)uri_text, total);
--- a/src/view_file_list.c Thu Nov 20 07:22:56 2008 +0000 +++ b/src/view_file_list.c Thu Nov 20 11:46:43 2008 +0000 @@ -246,7 +246,7 @@ uri_text = uri_text_from_filelist(list, &total, (info == TARGET_TEXT_PLAIN)); filelist_free(list); - DEBUG_1(uri_text); + DEBUG_1("%s", uri_text); gtk_selection_data_set(selection_data, selection_data->target, 8, (guchar *)uri_text, total);