diff options
| author | Freeimage <freeimage@aliceadsl.fr> | 2006-01-31 21:26:11 +0000 |
|---|---|---|
| committer | Freeimage <freeimage@aliceadsl.fr> | 2006-01-31 21:26:11 +0000 |
| commit | 355b88c15d2dcafe4074b725e2165511df02f2dd (patch) | |
| tree | a02e55bae93e0403ab99c168dd1a2f34d8894e00 /codec/j2k_to_image.c | |
| parent | 74c1b3637e922cac859dbda5cfefee4dc4f365e1 (diff) | |
fixed various minor warnings occuring under icc9 and bcc32, added MSVC project and compiler directives to build a 'standard' WIN32 DLL
Diffstat (limited to 'codec/j2k_to_image.c')
| -rw-r--r-- | codec/j2k_to_image.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/codec/j2k_to_image.c b/codec/j2k_to_image.c index 13338f2c..4541badd 100644 --- a/codec/j2k_to_image.c +++ b/codec/j2k_to_image.c @@ -126,7 +126,6 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters) "!! Unrecognized format for infile : %s [accept only *.j2k, *.jp2, *.jpc or *.jpt] !!\n\n", infile); return 1; - break; } strncpy(parameters->infile, infile, MAX_PATH); } @@ -146,7 +145,6 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters) default: fprintf(stderr, "Unknown output format image %s [only *.pnm, *.pgm, *.ppm, *.pgx or *.bmp]!! \n", outfile); return 1; - break; } strncpy(parameters->outfile, outfile, MAX_PATH); } @@ -173,11 +171,8 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters) /* ----------------------------------------------------- */ case 'h': /* display an help description */ - { decode_help_display(); - return 1; - } - break; + return 1; /* ----------------------------------------------------- */ @@ -360,7 +355,6 @@ int main(int argc, char **argv) { default: fprintf(stderr, "ERROR -> j2k_to_image : Unknown input image format\n"); return 1; - break; } /* free the memory containing the code-stream */ |
