Skip to content

Commit 6d52531

Browse files
committed
Remove unused variable l_tccp in opj_pi_initialise_encode
This has been unused since this function was added back in 3a78e80 (called pi_initialise_encode_v2 back then, in libopenjpeg/pi.c back then). Fixes a -Wunused-but-set-variable warning.
1 parent 94f4293 commit 6d52531

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
@@ -1630,7 +1630,6 @@ opj_pi_iterator_t *opj_pi_initialise_encode(const opj_image_t *p_image,
16301630
/* pointers*/
16311631
opj_pi_iterator_t *l_pi = 00;
16321632
opj_tcp_t *l_tcp = 00;
1633-
const opj_tccp_t *l_tccp = 00;
16341633
opj_pi_comp_t *l_current_comp = 00;
16351634
opj_image_comp_t * l_img_comp = 00;
16361635
opj_pi_iterator_t * l_current_pi = 00;
@@ -1705,7 +1704,6 @@ opj_pi_iterator_t *opj_pi_initialise_encode(const opj_image_t *p_image,
17051704
/* special treatment for the first packet iterator*/
17061705
l_current_comp = l_current_pi->comps;
17071706
l_img_comp = p_image->comps;
1708-
l_tccp = l_tcp->tccps;
17091707
l_current_pi->tx0 = l_tx0;
17101708
l_current_pi->ty0 = l_ty0;
17111709
l_current_pi->tx1 = l_tx1;
@@ -1736,14 +1734,12 @@ opj_pi_iterator_t *opj_pi_initialise_encode(const opj_image_t *p_image,
17361734

17371735
++l_current_comp;
17381736
++l_img_comp;
1739-
++l_tccp;
17401737
}
17411738
++l_current_pi;
17421739

17431740
for (pino = 1 ; pino < l_bound ; ++pino) {
17441741
l_current_comp = l_current_pi->comps;
17451742
l_img_comp = p_image->comps;
1746-
l_tccp = l_tcp->tccps;
17471743

17481744
l_current_pi->tx0 = l_tx0;
17491745
l_current_pi->ty0 = l_ty0;
@@ -1773,7 +1769,6 @@ opj_pi_iterator_t *opj_pi_initialise_encode(const opj_image_t *p_image,
17731769
}
17741770
++l_current_comp;
17751771
++l_img_comp;
1776-
++l_tccp;
17771772
}
17781773

17791774
/* special treatment*/

0 commit comments

Comments
 (0)