static void rational_from_data(ExifRational *r, gpointer src, ExifByteOrder bo)
{
r->num = exif_byte_get_int32(src, bo);
- r->den = exif_byte_get_int32(src + sizeof(guint32), bo);
+ r->den = exif_byte_get_int32((guchar *)src + sizeof(guint32), bo);
}
/* src_format and item->format must be compatible
case EXIF_FORMAT_SHORT:
for (i = 0; i < ne; i++)
{
- ((guint16 *)dest)[i] = exif_byte_get_int16(src + i * bs, bo);
+ ((guint16 *)dest)[i] = exif_byte_get_int16((guchar *)src + i * bs, bo);
}
break;
case EXIF_FORMAT_LONG_UNSIGNED:
for (i = 0; i < ne; i++)
{
((gint32 *)dest)[i] =
- (gint32)exif_byte_get_int16(src + i * ss, bo);
+ (gint32)exif_byte_get_int16((guchar *)src + i * ss, bo);
}
}
else
for (i = 0; i < ne; i++)
{
((gint32 *)dest)[i] =
- exif_byte_get_int32(src + i * bs, bo);
+ exif_byte_get_int32((guchar *)src + i * bs, bo);
}
}
break;
case EXIF_FORMAT_RATIONAL:
for (i = 0; i < ne; i++)
{
- rational_from_data(&((ExifRational *)dest)[i], src + i * bs, bo);
+ rational_from_data(&((ExifRational *)dest)[i], (guchar *)src + i * bs, bo);
}
break;
case EXIF_FORMAT_FLOAT:
for (i = 0; i < ne; i++)
{
- ((float *)dest)[i] = exif_byte_get_int32(src + i * bs, bo);
+ ((float *)dest)[i] = exif_byte_get_int32((guchar *)src + i * bs, bo);
}
break;
case EXIF_FORMAT_DOUBLE:
{
ExifRational r;
- rational_from_data(&r, src + i * bs, bo);
+ rational_from_data(&r, (guchar *)src + i * bs, bo);
if (r.den) ((gdouble *)dest)[i] = (gdouble)r.num / r.den;
}
break;
}
-gchar* exif_get_image_comment(FileData* fd)
+gchar* exif_get_image_comment(FileData* UNUSED(fd))
{
log_printf("%s", _("Can't get image comment: not compiled with Exiv2.\n"));
return g_strdup("");
}
-void exif_set_image_comment(FileData* fd, const gchar* comment)
+void exif_set_image_comment(FileData* UNUSED(fd), const gchar* UNUSED(comment))
{
log_printf("%s", _("Can't set image comment: not compiled with Exiv2.\n"));
}
g_free(exif);
}
-ExifData *exif_read(gchar *path, gchar *sidecar_path, GHashTable *modified_xmp)
+ExifData *exif_read(gchar *path, gchar *UNUSED(sidecar_path), GHashTable *UNUSED(modified_xmp))
{
ExifData *exif;
gpointer f;
return text;
}
-gchar *exif_item_get_string(ExifItem *item, gint idx)
+gchar *exif_item_get_string(ExifItem *item, gint UNUSED(idx))
{
return exif_item_get_data_as_text_full(item, METADATA_PLAIN);
}
g_fprintf(f, "----------------------------------------------------\n");
}
-gboolean exif_write(ExifData *exif)
+gboolean exif_write(ExifData *UNUSED(exif))
{
log_printf("Not compiled with EXIF write support\n");
return FALSE;
}
-gboolean exif_write_sidecar(ExifData *exif, gchar *path)
+gboolean exif_write_sidecar(ExifData *UNUSED(exif), gchar *UNUSED(path))
{
log_printf("Not compiled with EXIF write support\n");
return FALSE;
}
-gint exif_update_metadata(ExifData *exif, const gchar *key, const GList *values)
+gint exif_update_metadata(ExifData *UNUSED(exif), const gchar *UNUSED(key), const GList *UNUSED(values))
{
return 0;
}
static GList *exif_unmap_list = 0;
-guchar *exif_get_preview(ExifData *exif, guint *data_len, gint requested_width, gint requested_height)
+guchar *exif_get_preview(ExifData *exif, guint *data_len, gint UNUSED(requested_width), gint UNUSED(requested_height))
{
guint offset;
const gchar* path;