mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1247301 - Fix false positive warning in Brotli. r=mcmanus
This commit is contained in:
parent
a387f5b592
commit
d8c56d4552
@ -15,3 +15,7 @@ The in-tree copy is updated by running
|
||||
from within the modules/brotli directory.
|
||||
|
||||
Current version: [commit 33aa40220b96cf95ad2b9ba61dc8d7fd2f964f2c].
|
||||
|
||||
dec/port.h was patched to fix false positive warning in Brotli and a
|
||||
corresponding change will be done upstream.
|
||||
See https://bugzilla.mozilla.org/show_bug.cgi?id=1247301
|
||||
|
@ -125,9 +125,9 @@ OR:
|
||||
|
||||
/* IS_CONSTANT macros returns true for compile-time constant expressions. */
|
||||
#if BROTLI_MODERN_COMPILER || __has_builtin(__builtin_constant_p)
|
||||
#define IS_CONSTANT(x) __builtin_constant_p(x)
|
||||
#define IS_CONSTANT(x) (!!__builtin_constant_p(x))
|
||||
#else
|
||||
#define IS_CONSTANT(x) 0
|
||||
#define IS_CONSTANT(x) (!!0)
|
||||
#endif
|
||||
|
||||
#if BROTLI_MODERN_COMPILER || __has_attribute(always_inline)
|
||||
@ -213,9 +213,9 @@ static BROTLI_INLINE unsigned BrotliRBit(unsigned input) {
|
||||
#endif /* gcc || clang */
|
||||
|
||||
#if defined(BROTLI_TARGET_ARM)
|
||||
#define BROTLI_HAS_UBFX 1
|
||||
#define BROTLI_HAS_UBFX (!!1)
|
||||
#else
|
||||
#define BROTLI_HAS_UBFX 0
|
||||
#define BROTLI_HAS_UBFX (!!0)
|
||||
#endif
|
||||
|
||||
#define BROTLI_ALLOC(S, L) S->alloc_func(S->memory_manager_opaque, L)
|
||||
|
Loading…
Reference in New Issue
Block a user