mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Add PUFFS_IGNORE_POTENTIALLY_UNUSED_VARIABLE.
This commit is contained in:
1 parent
18e32d61e5
commit
fda696bf95
6 files changed
+16
-20
No files matched your search
+3
-2
@@ -263,6 +263,8 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self,
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
|
||||
#define PUFFS_IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
|
||||
|
||||
// TODO: look for (ifdef) the x86 architecture and cast the pointer? Only do so
|
||||
// if a benchmark justifies the additional code path.
|
||||
#define PUFFS_U16BE(p) (((uint16_t)(p[0]) << 8) | ((uint16_t)(p[1]) << 0))
|
||||
@@ -1288,8 +1290,7 @@ exit:
|
||||
*lim->ptr_to_len -= n;
|
||||
}
|
||||
}
|
||||
/* Avoid the "unused variable" warning. */
|
||||
(void)(b_wend_dst);
|
||||
PUFFS_IGNORE_POTENTIALLY_UNUSED_VARIABLE(b_wend_dst);
|
||||
}
|
||||
if (a_src.buf) {
|
||||
size_t n = b_rptr_src - (a_src.buf->ptr + a_src.buf->ri);
|
||||
|
||||
Reference in new issue
Block a user