Mercurial > geeqie
changeset 304:0fc0a130e8cf
Silent some gcc warnings.
author | zas_ |
---|---|
date | Fri, 11 Apr 2008 10:45:37 +0000 |
parents | 6ff0bc50ac46 |
children | 72445e31aa58 |
files | src/exiv2.cc |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/exiv2.cc Fri Apr 11 09:02:20 2008 +0000 +++ b/src/exiv2.cc Fri Apr 11 10:45:37 2008 +0000 @@ -66,13 +66,13 @@ image->readMetadata(); #if EXIV2_TEST_VERSION(0,16,0) - if (debug >= 2) printf("xmp count %d\n", image->xmpData().count()); + if (debug >= 2) printf("xmp count %li\n", image->xmpData().count()); if (sidecar_path && image->xmpData().empty()) { sidecar = Exiv2::ImageFactory::open(sidecar_path); sidecar->readMetadata(); have_sidecar = sidecar->good(); - if (debug >= 2) printf("sidecar xmp count %d\n", sidecar->xmpData().count()); + if (debug >= 2) printf("sidecar xmp count %li\n", sidecar->xmpData().count()); } #endif @@ -316,6 +316,7 @@ char *exif_item_get_data(ExifItem *item, guint *data_len) { + return NULL; } char *exif_item_get_description(ExifItem *item) @@ -698,7 +699,7 @@ RawFile rf(fd); if (debug) printf("%s: offset ", path); offset = rf.preview_offset(); - if (debug) printf("%d\n", offset); + if (debug) printf("%lu\n", offset); } catch (Exiv2::AnyError& e) { std::cout << "Caught Exiv2 exception '" << e << "'\n"; @@ -708,7 +709,7 @@ if (image_offset && offset > 0) { *image_offset = offset; - if (lseek(fd, *image_offset, SEEK_SET) != *image_offset) + if ((unsigned long) lseek(fd, *image_offset, SEEK_SET) != *image_offset) { printf("Failed to seek to embedded image\n");