Remove more warnings

This commit is contained in:
Mathieu Malaterre 2011-12-08 09:25:25 +00:00
parent 548a49bb7f
commit 82e539d333
4 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@ What's New for OpenJPEG
+ : added
December 8, 2011
* [Mathieu Malaterre] Remove 6 warnings (gcc)
* [Mathieu Malaterre] Remove 9 warnings (gcc)
December 7, 2011
- [mickael] deactivate tests about class0 files with number of components greater to 1

View File

@ -65,7 +65,7 @@ void reset_options_reading(void) {
int opj_getopt(int nargc, char *const *nargv, const char *ostr) {
# define __progname nargv[0]
static char *place = EMSG; /* option letter processing */
char *oli; /* option letter list index */
char *oli = NULL; /* option letter list index */
if (opj_optreset || !*place) { /* update scanning pointer */
opj_optreset = 0;

View File

@ -74,6 +74,7 @@ int write_cidx( int offset, opj_cio_t *cio, opj_image_t *image, opj_codestream_i
int num_box = 0;
opj_bool EPHused;
lenp = -1;
box = (opj_jp2_box_t *)opj_calloc( 32, sizeof(opj_jp2_box_t));
for (i=0;i<2;i++){

View File

@ -58,6 +58,7 @@ int write_ppix( int coff, opj_codestream_info_t cstr_info, opj_bool EPHused, int
// printf("cstr_info.packno %d\n", cstr_info.packno); //NMAX?
lenp = -1;
box = (opj_jp2_box_t *)opj_calloc( cstr_info.numcomps, sizeof(opj_jp2_box_t));
for (i=0;i<2;i++){