Revision: 1259
http://geeqie.svn.sourceforge.net/geeqie/?rev=1259&view=rev
Author: zas_
Date: 2008-11-20 11:46:43 +0000 (Thu, 20 Nov 2008)
Log Message:
-----------
Fix compilation warnings.
Modified Paths:
--------------
trunk/src/exif-common.c
trunk/src/filecache.c
trunk/src/print.c
trunk/src/ui_fileops.c
trunk/src/ui_fileops.h
trunk/src/view_file_icon.c
trunk/src/view_file_list.c
Modified: trunk/src/exif-common.c
===================================================================
--- trunk/src/exif-common.c 2008-11-20 07:22:56 UTC (rev 1258)
+++ trunk/src/exif-common.c 2008-11-20 11:46:43 UTC (rev 1259)
@@ -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;
Modified: trunk/src/filecache.c
===================================================================
--- trunk/src/filecache.c 2008-11-20 07:22:56 UTC (rev 1258)
+++ trunk/src/filecache.c 2008-11-20 11:46:43 UTC (rev 1259)
@@ -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)
Modified: trunk/src/print.c
===================================================================
--- trunk/src/print.c 2008-11-20 07:22:56 UTC (rev 1258)
+++ trunk/src/print.c 2008-11-20 11:46:43 UTC (rev 1259)
@@ -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++;
}
Modified: trunk/src/ui_fileops.c
===================================================================
--- trunk/src/ui_fileops.c 2008-11-20 07:22:56 UTC (rev 1258)
+++ trunk/src/ui_fileops.c 2008-11-20 11:46:43 UTC (rev 1259)
@@ -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;
Modified: trunk/src/ui_fileops.h
===================================================================
--- trunk/src/ui_fileops.h 2008-11-20 07:22:56 UTC (rev 1258)
+++ trunk/src/ui_fileops.h 2008-11-20 11:46:43 UTC (rev 1259)
@@ -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: */
Modified: trunk/src/view_file_icon.c
===================================================================
--- trunk/src/view_file_icon.c 2008-11-20 07:22:56 UTC (rev 1258)
+++ trunk/src/view_file_icon.c 2008-11-20 11:46:43 UTC (rev 1259)
@@ -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);
Modified: trunk/src/view_file_list.c
===================================================================
--- trunk/src/view_file_list.c 2008-11-20 07:22:56 UTC (rev 1258)
+++ trunk/src/view_file_list.c 2008-11-20 11:46:43 UTC (rev 1259)
@@ -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);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn