[trunk] remove warnings related to the use of -Wall -Wextra -pedantic

This commit is contained in:
Mickael Savinaud 2012-10-29 10:08:35 +00:00
parent 1c8a657044
commit 18e7fcc37f
2 changed files with 5 additions and 5 deletions

View File

@ -1863,7 +1863,7 @@ static opj_bool opj_j2k_read_siz(opj_j2k_t *p_j2k,
opj_event_mgr_t * p_manager
)
{
OPJ_UINT32 l_size, i;
OPJ_UINT32 i;
OPJ_UINT32 l_nb_comp;
OPJ_UINT32 l_nb_comp_remain;
OPJ_UINT32 l_remaining_size;
@ -1896,8 +1896,6 @@ static opj_bool opj_j2k_read_siz(opj_j2k_t *p_j2k,
return OPJ_FALSE;
}
l_size = p_header_size + 2; /* Lsiz */
opj_read_bytes(p_header_data,&l_tmp ,2); /* Rsiz (capabilities) */
p_header_data+=2;
l_cp->rsiz = (OPJ_RSIZ_CAPABILITIES) l_tmp;
@ -2578,7 +2576,6 @@ opj_bool opj_j2k_write_qcd( opj_j2k_t *p_j2k,
opj_event_mgr_t * p_manager
)
{
opj_cp_t *l_cp = 00;
OPJ_UINT32 l_qcd_size,l_remaining_size;
OPJ_BYTE * l_current_data = 00;
@ -2587,7 +2584,6 @@ opj_bool opj_j2k_write_qcd( opj_j2k_t *p_j2k,
assert(p_manager != 00);
assert(p_stream != 00);
l_cp = &(p_j2k->m_cp);
l_qcd_size = 4 + opj_j2k_get_SQcd_SQcc_size(p_j2k,p_j2k->m_current_tile_number,0);
l_remaining_size = l_qcd_size;

View File

@ -862,6 +862,8 @@ void opj_pi_update_encode_poc_and_final ( opj_cp_t *p_cp,
/* number of pocs*/
OPJ_UINT32 l_poc_bound;
OPJ_ARG_NOT_USED(p_max_res);
/* preconditions in debug*/
assert(p_cp != 00);
assert(p_tileno < p_cp->tw * p_cp->th);
@ -986,6 +988,8 @@ void opj_pi_update_decode_poc (opj_pi_iterator_t * p_pi,
opj_pi_iterator_t * l_current_pi = 00;
opj_poc_t* l_current_poc = 0;
OPJ_ARG_NOT_USED(p_max_res);
/* preconditions in debug*/
assert(p_pi != 00);
assert(p_tcp != 00);