From dabd65dd7920a9faa2642a13531d600a67bffa5d Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 13 Oct 2023 00:34:16 +0000 Subject: quiet compiler warning git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4752 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/jpeg2000/libjasper/jpc/jpc_t1enc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'converter/other/jpeg2000/libjasper/jpc/jpc_t1enc.c') diff --git a/converter/other/jpeg2000/libjasper/jpc/jpc_t1enc.c b/converter/other/jpeg2000/libjasper/jpc/jpc_t1enc.c index e9ec12d4..367dd020 100644 --- a/converter/other/jpeg2000/libjasper/jpc/jpc_t1enc.c +++ b/converter/other/jpeg2000/libjasper/jpc/jpc_t1enc.c @@ -126,7 +126,6 @@ #include "netpbm/nstring.h" -#include "jasper/jas_fix.h" #include "jasper/jas_malloc.h" #include "jasper/jas_math.h" @@ -190,11 +189,8 @@ encodeBlocksOfPrecinct(jpc_enc_prc_t * const prcP, cblkP->numbps = MAX(jpc_firstone(mx) + 1 - JPC_NUMEXTRABITS, 0); } - for (cblkno = 0; cblkno < prcP->numcblks; ++ cblkno) { - jpc_enc_cblk_t * const cblkP = &prcP->cblks[cblkno]; - - assert(cblkP->numbps <= bandP->numbps); - } + for (cblkno = 0; cblkno < prcP->numcblks; ++ cblkno) + assert(prcP->cblks[cblkno].numbps <= bandP->numbps); for (cblkno = 0, *errorP = NULL; cblkno < prcP->numcblks && !*errorP; -- cgit 1.4.1