]> granicus.if.org Git - openjpeg/commitdiff
[trunk] COMP: Fix one warning identified by clang31 :
authorMickael Savinaud <savmickael@users.noreply.github.com>
Thu, 30 Aug 2012 16:34:17 +0000 (16:34 +0000)
committerMickael Savinaud <savmickael@users.noreply.github.com>
Thu, 30 Aug 2012 16:34:17 +0000 (16:34 +0000)
 openjpeg/applications/codec/j2k_dump.c:362 col 29: warning: equality comparison
with extraneous parentheses
(thanks to Hans Johnson)

applications/codec/j2k_dump.c

index fbdbce9132f49ec1e1804c89f61038023f26f09d..6c63c2cacfd877384ce538d6a80c65a737a0cad7 100644 (file)
@@ -354,12 +354,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;