aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-11-20 12:37:46 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-11-25 08:46:37 +0100
commit5d241225a25c57aaecc11ee0989c6aea4da78043 (patch)
tree9d2d0b82b5bacbffcd0cfab9ca0fe5ee53e10c60
parentb28884f4beca45086a74f78cc10e0548fe4e63a9 (diff)
downloadfbida-5d241225a25c57aaecc11ee0989c6aea4da78043.tar.gz
fix warnings
-rw-r--r--GNUmakefile2
-rw-r--r--rd/read-tiff.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 5d35341..466e6f2 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -154,7 +154,7 @@ ida : LDLIBS += -lXm -lXpm -lXt -lXext -lX11
ida : LDLIBS += -ljpeg -lexif -lm
# RegEdit.c is good old K&R ...
-RegEdit.o : CFLAGS += -Wno-missing-prototypes -Wno-strict-prototypes
+RegEdit.o : CFLAGS += -Wno-missing-prototypes -Wno-strict-prototypes -Wno-maybe-uninitialized
ida: $(OBJS_IDA) $(OBJS_READER) $(OBJS_WRITER)
diff --git a/rd/read-tiff.c b/rd/read-tiff.c
index 3f75b83..b88b10c 100644
--- a/rd/read-tiff.c
+++ b/rd/read-tiff.c
@@ -55,7 +55,7 @@ tiff_init(FILE *fp, char *filename, unsigned int page,
"nsamples=%d, depth=%d fo=%d pm=%d scanline=%" PRId32 "\n",
h->width,h->height,h->config,h->nsamples,h->depth,
h->fillorder,h->photometric,
- TIFFScanlineSize(h->tif));
+ (uint32_t)TIFFScanlineSize(h->tif));
if (PHOTOMETRIC_PALETTE == h->photometric ||
PHOTOMETRIC_YCBCR == h->photometric ||