X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmopenjpeg%2Flibopenjpeg%2Ftcd.c;h=a9f3f5332350ba8bf9dc29aed5de66dc2443fe0a;hb=6c1b9eb78c07847c3dbfeccc55e031df5cf47a5f;hp=eabca32281e12af6ae80eb80d91d96df314e5d35;hpb=936856c6cfe43d028762bbb3ef5399337634c58c;p=gdcm.git diff --git a/src/gdcmopenjpeg/libopenjpeg/tcd.c b/src/gdcmopenjpeg/libopenjpeg/tcd.c index eabca322..a9f3f533 100644 --- a/src/gdcmopenjpeg/libopenjpeg/tcd.c +++ b/src/gdcmopenjpeg/libopenjpeg/tcd.c @@ -61,6 +61,7 @@ extern jmp_buf j2k_error; void tcd_dump(tcd_image_t * img, int curtileno) { int tileno, compno, resno, bandno, precno, cblkno; + (void)curtileno; fprintf(stdout, "image {\n"); fprintf(stdout, " tw=%d, th=%d x0=%d x1=%d y0=%d y1=%d\n", img->tw, img->th, tcd_img->x0, tcd_img->x1, tcd_img->y0, tcd_img->y1); @@ -1285,7 +1286,7 @@ for (compno = 0; compno < tile->numcomps; compno++) { time7 = clock() - time7; fprintf(stdout,"total: %ld.%.3ld s\n", time7 / CLOCKS_PER_SEC, - (time7 % CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); + (time7 % (int)CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); /* cleaning memory */ for (compno = 0; compno < tile->numcomps; compno++) { @@ -1444,7 +1445,7 @@ for (compno = 0; compno < tile->numcomps; compno++) { /*---------------CLEAN-------------------*/ time = clock() - time; fprintf(stdout,"total: %ld.%.3ld s\n", time / CLOCKS_PER_SEC, - (time % CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); + (time % (int)CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); for (compno = 0; compno < tile->numcomps; compno++) { tilec = &tile->comps[compno]; @@ -1583,7 +1584,7 @@ int tcd_decode_tile(unsigned char *src, int len, int tileno) time = clock() - time; fprintf(stdout, "%ld.%.3ld s\n", time / CLOCKS_PER_SEC, - (time % CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC); + (time % (int)CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC);