Skip to content

Commit c09dfa0

Browse files
committed
Address warnings in Linux
1 parent 3292374 commit c09dfa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/codestream/ojph_codeblock_fun.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ namespace ojph {
217217
}
218218
encode_cb32 = ojph_encode_codeblock_avx2;
219219
bool result = initialize_block_encoder_tables_avx2();
220-
assert(result);
220+
assert(result); ojph_unused(result);
221221

222222
find_max_val64 = avx2_find_max_val64;
223223
if (reversible) {
@@ -236,7 +236,7 @@ namespace ojph {
236236
if (get_cpu_ext_level() >= X86_CPU_EXT_LEVEL_AVX512) {
237237
encode_cb32 = ojph_encode_codeblock_avx512;
238238
bool result = initialize_block_encoder_tables_avx512();
239-
assert(result);
239+
assert(result); ojph_unused(result);
240240
}
241241
#endif // !OJPH_DISABLE_AVX512
242242

0 commit comments

Comments
 (0)