diff src/exif.c @ 749:f606e8962329

Silent few warnings that appeared when using --disable-exiv2 configure option.
author zas_
date Fri, 23 May 2008 23:18:40 +0000
parents fbebf5cf4a55
children 0c3f6ef17d18
line wrap: on
line diff
--- a/src/exif.c	Fri May 23 22:57:51 2008 +0000
+++ b/src/exif.c	Fri May 23 23:18:40 2008 +0000
@@ -97,7 +97,7 @@
 	{ EXIF_FORMAT_RATIONAL,		8, "srational",	"signed rational" },
 	{ EXIF_FORMAT_FLOAT,		4, "float",	"float" },
 	{ EXIF_FORMAT_DOUBLE,		8, "double",	"double" },
-	{ -1, 0, NULL }
+	{ -1, 0, NULL, NULL }
 };
 
 /* tags that are special, or need special treatment */
@@ -619,7 +619,7 @@
 	i = 0;
 	while (!result && list[i].value >= 0)
 		{
-		if (value == list[i].value) result = g_strdup(_(list[i].description));
+		if (value == (guint) list[i].value) result = g_strdup(_(list[i].description));
 		i++;
 		}
 	if (!result) result = g_strdup_printf("%d (%s)", value, _("unknown"));
@@ -879,7 +879,7 @@
 
 	/* Where is the data, is it available?
 	 */
-	if (marker->components > 0 && marker->components != count)
+	if (marker->components > 0 && (guint) marker->components != count)
 		{
 		log_printf("warning: exif tag %s has %d elements, exif spec requests %d\n",
 			marker->key, count, marker->components);