Fix compiler warning in release mode

This commit is contained in:
Even Rouault 2017-09-01 16:30:39 +02:00
parent d5153ba404
commit d1299d9670
2 changed files with 10 additions and 0 deletions

View File

@ -1541,6 +1541,7 @@ static void opj_dwt_interleave_partial_h(OPJ_INT32 *dest,
dest + 1 - cas + 2 * win_h_x0, dest + 1 - cas + 2 * win_h_x0,
2, 0, OPJ_TRUE); 2, 0, OPJ_TRUE);
assert(ret); assert(ret);
OPJ_UNUSED(ret);
} }
@ -1567,6 +1568,7 @@ static void opj_dwt_interleave_partial_v(OPJ_INT32 *dest,
dest + 1 - cas + 2 * win_h_y0, dest + 1 - cas + 2 * win_h_y0,
0, 2, OPJ_TRUE); 0, 2, OPJ_TRUE);
assert(ret); assert(ret);
OPJ_UNUSED(ret);
} }
static void opj_dwt_decode_partial_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn, static void opj_dwt_decode_partial_1(OPJ_INT32 *a, OPJ_INT32 dn, OPJ_INT32 sn,
@ -1751,6 +1753,7 @@ static OPJ_BOOL opj_dwt_decode_partial_tile(
1, tr_max->win_x1 - tr_max->win_x0, 1, tr_max->win_x1 - tr_max->win_x0,
OPJ_TRUE); OPJ_TRUE);
assert(ret); assert(ret);
OPJ_UNUSED(ret);
opj_sparse_array_int32_free(sa); opj_sparse_array_int32_free(sa);
return OPJ_TRUE; return OPJ_TRUE;
} }
@ -1937,6 +1940,7 @@ static OPJ_BOOL opj_dwt_decode_partial_tile(
1, tr_max->win_x1 - tr_max->win_x0, 1, tr_max->win_x1 - tr_max->win_x0,
OPJ_TRUE); OPJ_TRUE);
assert(ret); assert(ret);
OPJ_UNUSED(ret);
} }
opj_sparse_array_int32_free(sa); opj_sparse_array_int32_free(sa);
return OPJ_TRUE; return OPJ_TRUE;
@ -2018,6 +2022,7 @@ static void opj_v4dwt_interleave_partial_h(opj_v4dwt_t* dwt,
(OPJ_INT32*)(dwt->wavelet + 1 - dwt->cas + 2 * dwt->win_h_x0) + i, (OPJ_INT32*)(dwt->wavelet + 1 - dwt->cas + 2 * dwt->win_h_x0) + i,
8, 0, OPJ_TRUE); 8, 0, OPJ_TRUE);
assert(ret); assert(ret);
OPJ_UNUSED(ret);
} }
} }
@ -2061,6 +2066,7 @@ static void opj_v4dwt_interleave_partial_v(opj_v4dwt_t* OPJ_RESTRICT dwt,
(OPJ_INT32*)(dwt->wavelet + 1 - dwt->cas + 2 * dwt->win_h_x0) + i, (OPJ_INT32*)(dwt->wavelet + 1 - dwt->cas + 2 * dwt->win_h_x0) + i,
0, 8, OPJ_TRUE); 0, 8, OPJ_TRUE);
assert(ret); assert(ret);
OPJ_UNUSED(ret);
} }
} }
@ -2425,6 +2431,7 @@ OPJ_BOOL opj_dwt_decode_partial_97(opj_tcd_tilecomp_t* OPJ_RESTRICT tilec,
1, tr_max->win_x1 - tr_max->win_x0, 1, tr_max->win_x1 - tr_max->win_x0,
OPJ_TRUE); OPJ_TRUE);
assert(ret); assert(ret);
OPJ_UNUSED(ret);
opj_sparse_array_int32_free(sa); opj_sparse_array_int32_free(sa);
return OPJ_TRUE; return OPJ_TRUE;
} }
@ -2614,6 +2621,7 @@ OPJ_BOOL opj_dwt_decode_partial_97(opj_tcd_tilecomp_t* OPJ_RESTRICT tilec,
1, tr_max->win_x1 - tr_max->win_x0, 1, tr_max->win_x1 - tr_max->win_x0,
OPJ_TRUE); OPJ_TRUE);
assert(ret); assert(ret);
OPJ_UNUSED(ret);
} }
opj_sparse_array_int32_free(sa); opj_sparse_array_int32_free(sa);

View File

@ -29,6 +29,8 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#undef NDEBUG
#include "opj_includes.h" #include "opj_includes.h"
int main() int main()