removed unused parameters warnings with the solution proposed by myself and Bob Fries...
[openjpeg.git] / libopenjpeg / j2k.c
index 0b09899a04b7ba68c8e692bf49e44bbe3fd5143c..0a58a81a5ae8bf22d8a4b22c1f3b2f7d65551109 100644 (file)
@@ -297,6 +297,9 @@ static int j2k_get_num_tp(opj_cp_t *cp,int pino,int tileno){
 /**    mem allocation for TLM marker*/
 int j2k_calculate_tp(opj_cp_t *cp,int img_numcomp,opj_image_t *image,opj_j2k_t *j2k ){
        int pino,tileno,totnum_tp=0;
+
+       OPJ_ARG_NOT_USED(img_numcomp);
+
        j2k->cur_totnum_tp = (int *) opj_malloc(cp->tw * cp->th * sizeof(int));
        for (tileno = 0; tileno < cp->tw * cp->th; tileno++) {
                int cur_totnum_tp = 0;
@@ -1848,8 +1851,9 @@ opj_image_t* j2k_decode_jpt_stream(opj_j2k_t *j2k, opj_cio_t *cio,  opj_codestre
        opj_jpt_msg_header_t header;
        int position;
 
+       OPJ_ARG_NOT_USED(cstr_info);
+
        opj_common_ptr cinfo = j2k->cinfo;
-       
        j2k->cio = cio;
 
        /* create an empty image */