Skip to content

Commit

Permalink
Reduce warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Nov 2, 2024
1 parent 630217f commit 2b6fb15
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/core/coding/ojph_block_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1814,9 +1814,9 @@ namespace ojph {
ui32 width, ui32 height, ui32 stride,
bool stripe_causal)
{
static bool insufficient_precision = false;
static bool modify_code = false;
static bool truncate_spp_mrp = false;
// static bool insufficient_precision = false;
// static bool modify_code = false;
// static bool truncate_spp_mrp = false;

if (num_passes > 1 && lengths2 == 0)
{
Expand Down Expand Up @@ -2045,12 +2045,12 @@ namespace ojph {
cond0 = u_q0 > 32;
u_ext = (ui16)(cond0 ? (uvlc_entry & 0xF) : 0);
vlc_val = rev_advance64(&vlc, cond0 ? 4 : 0);
u_q0 += u_ext << 2;
u_q0 = (ui16)(u_q0 + (u_ext << 2));
sp[1] = u_q0;
cond1 = u_q1 > 32;
u_ext = (ui16)(cond1 ? (uvlc_entry & 0xF) : 0);
vlc_val = rev_advance64(&vlc, cond1 ? 4 : 0);
u_q1 += u_ext << 2;
u_q1 = (ui16)(u_q1 + (u_ext << 2));
sp[3] = u_q1;
}
sp[0] = sp[1] = 0;
Expand Down Expand Up @@ -2167,12 +2167,12 @@ namespace ojph {
cond0 = u_q0 > 32;
u_ext = (ui16)(cond0 ? (uvlc_entry & 0xF) : 0);
vlc_val = rev_advance64(&vlc, cond0 ? 4 : 0);
u_q0 += u_ext << 2;
u_q0 = (ui16)(u_q0 + (u_ext << 2));
sp[1] = u_q0;
cond1 = u_q1 > 32;
u_ext = (ui16)(cond1 ? (uvlc_entry & 0xF) : 0);
vlc_val = rev_advance64(&vlc, cond1 ? 4 : 0);
u_q1 += u_ext << 2;
u_q1 = (ui16)(u_q1 + (u_ext << 2));
sp[3] = u_q1;
}
sp[0] = sp[1] = 0;
Expand Down

0 comments on commit 2b6fb15

Please sign in to comment.