summaryrefslogtreecommitdiff
path: root/applications/codec
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-08-24 08:13:17 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-08-24 08:13:17 +0000
commit4935eaf773d49df92cea4845c52ff45d4a17ed1e (patch)
tree5d800fe3728a894c5e2e436e35ee2ce11c1505d0 /applications/codec
parentbad9a71e77863322abb67ec750139e2eba98bbde (diff)
[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>
Diffstat (limited to 'applications/codec')
-rw-r--r--applications/codec/j2k_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/codec/j2k_dump.c b/applications/codec/j2k_dump.c
index ed250e83..60b8c3c8 100644
--- a/applications/codec/j2k_dump.c
+++ b/applications/codec/j2k_dump.c
@@ -274,12 +274,12 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters,i
fprintf(stderr, "Only one format allowed! Valid format PGM, PPM, PNM, PGX, BMP, TIF, RAW and TGA!!\n");
return 1;
}
- if(!((parameters->outfile[0] == 0))){
+ if(!(parameters->outfile[0] == 0)){
fprintf(stderr, "Error: options -ImgDir and -o cannot be used together !!\n");
return 1;
}
}else{
- if((parameters->infile[0] == 0) ) {
+ if( parameters->infile[0] == 0 ) {
fprintf(stderr, "Example: %s -i image.j2k\n",argv[0]);
fprintf(stderr, " Try: %s -h\n",argv[0]);
return 1;