[1.5] COMP: Fix warnings identified by clang31
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 24 Aug 2012 08:13:17 +0000 (08:13 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 24 Aug 2012 08:13:17 +0000 (08:13 +0000)
commit4935eaf773d49df92cea4845c52ff45d4a17ed1e
tree5d800fe3728a894c5e2e436e35ee2ce11c1505d0
parentbad9a71e77863322abb67ec750139e2eba98bbde
[1.5] COMP: Fix warnings identified by clang31

openjpeg/libopenjpeg/tcd.c:1884 col 48: warning: comparison of unsigned expressi
on < 0 is always false

openjpeg/applications/codec/j2k_dump.c:362 col 29: warning: equality comparison
with extraneous parentheses

openjpeg/libopenjpeg/jpwl/jpwl_lib.c:680:19: warning: format specifies type 'int
' but the argument has type 'long long' [-Wformat]
    printf("Marker@%d: %X\n", cio_tell(cio) - 2, id);
                   ~^         ~~~~~~~~~~~~~~~~~
                   %lld

openjpeg/applications/jpip/libopenjpip/byte_manager.c:58:63: warning: format spe
cifies type 'long' but the argument has type 'OPJ_OFF_T' (aka 'long long') [-Wfo
rmat]
fprintf( FCGI_stderr, "Error: error in fetch_bytes( %d, %ld, %lu)\n", fd, offset
, size);

Author: Hans Johnson <hans-johnson@uiowa.edu>
applications/codec/j2k_dump.c
applications/jpip/libopenjpip/byte_manager.c
libopenjpeg/jpwl/jpwl_lib.c
libopenjpeg/tcd.c