Skip to content

Commit 94f4293

Browse files
committed
Remove unused variable l_tccp in opj_pi_create_decode
This has been unused since this function was added back in b551844 (called pi_create_decode_v2 back then, in libopenjpeg/pi.c back then). Fixes a -Wunused-but-set-variable warning.
1 parent a6ec867 commit 94f4293

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/lib/openjp2/pi.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,6 @@ opj_pi_iterator_t *opj_pi_create_decode(opj_image_t *p_image,
14121412
/* pointers */
14131413
opj_pi_iterator_t *l_pi = 00;
14141414
opj_tcp_t *l_tcp = 00;
1415-
const opj_tccp_t *l_tccp = 00;
14161415
opj_pi_comp_t *l_current_comp = 00;
14171416
opj_image_comp_t * l_img_comp = 00;
14181417
opj_pi_iterator_t * l_current_pi = 00;
@@ -1490,7 +1489,6 @@ opj_pi_iterator_t *opj_pi_create_decode(opj_image_t *p_image,
14901489
/* special treatment for the first packet iterator */
14911490
l_current_comp = l_current_pi->comps;
14921491
l_img_comp = p_image->comps;
1493-
l_tccp = l_tcp->tccps;
14941492

14951493
l_current_pi->tx0 = l_tx0;
14961494
l_current_pi->ty0 = l_ty0;
@@ -1524,14 +1522,12 @@ opj_pi_iterator_t *opj_pi_create_decode(opj_image_t *p_image,
15241522
}
15251523
++l_current_comp;
15261524
++l_img_comp;
1527-
++l_tccp;
15281525
}
15291526
++l_current_pi;
15301527

15311528
for (pino = 1 ; pino < l_bound ; ++pino) {
15321529
l_current_comp = l_current_pi->comps;
15331530
l_img_comp = p_image->comps;
1534-
l_tccp = l_tcp->tccps;
15351531

15361532
l_current_pi->tx0 = l_tx0;
15371533
l_current_pi->ty0 = l_ty0;
@@ -1563,7 +1559,6 @@ opj_pi_iterator_t *opj_pi_create_decode(opj_image_t *p_image,
15631559
}
15641560
++l_current_comp;
15651561
++l_img_comp;
1566-
++l_tccp;
15671562
}
15681563
/* special treatment*/
15691564
l_current_pi->include = (l_current_pi - 1)->include;

0 commit comments

Comments
 (0)