comparison 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
comparison
equal deleted inserted replaced
748:1758c34f13fe 749:f606e8962329
95 { EXIF_FORMAT_SHORT, 2, "sshort", "signed short" }, 95 { EXIF_FORMAT_SHORT, 2, "sshort", "signed short" },
96 { EXIF_FORMAT_LONG, 4, "slong", "signed long" }, 96 { EXIF_FORMAT_LONG, 4, "slong", "signed long" },
97 { EXIF_FORMAT_RATIONAL, 8, "srational", "signed rational" }, 97 { EXIF_FORMAT_RATIONAL, 8, "srational", "signed rational" },
98 { EXIF_FORMAT_FLOAT, 4, "float", "float" }, 98 { EXIF_FORMAT_FLOAT, 4, "float", "float" },
99 { EXIF_FORMAT_DOUBLE, 8, "double", "double" }, 99 { EXIF_FORMAT_DOUBLE, 8, "double", "double" },
100 { -1, 0, NULL } 100 { -1, 0, NULL, NULL }
101 }; 101 };
102 102
103 /* tags that are special, or need special treatment */ 103 /* tags that are special, or need special treatment */
104 #define TAG_EXIFOFFSET 0x8769 104 #define TAG_EXIFOFFSET 0x8769
105 #define TAG_EXIFMAKERNOTE 0x927c 105 #define TAG_EXIFMAKERNOTE 0x927c
617 gint i; 617 gint i;
618 618
619 i = 0; 619 i = 0;
620 while (!result && list[i].value >= 0) 620 while (!result && list[i].value >= 0)
621 { 621 {
622 if (value == list[i].value) result = g_strdup(_(list[i].description)); 622 if (value == (guint) list[i].value) result = g_strdup(_(list[i].description));
623 i++; 623 i++;
624 } 624 }
625 if (!result) result = g_strdup_printf("%d (%s)", value, _("unknown")); 625 if (!result) result = g_strdup_printf("%d (%s)", value, _("unknown"));
626 626
627 return result; 627 return result;
877 } 877 }
878 } 878 }
879 879
880 /* Where is the data, is it available? 880 /* Where is the data, is it available?
881 */ 881 */
882 if (marker->components > 0 && marker->components != count) 882 if (marker->components > 0 && (guint) marker->components != count)
883 { 883 {
884 log_printf("warning: exif tag %s has %d elements, exif spec requests %d\n", 884 log_printf("warning: exif tag %s has %d elements, exif spec requests %d\n",
885 marker->key, count, marker->components); 885 marker->key, count, marker->components);
886 } 886 }
887 887