File inline.diff of Package libbrotli

From: Jan Engelhardt <jengelh@inai.de>
Date: 2015-10-06 12:43:48.210688513 +0200

Only on big endian, pullbyte is called before it was declared.

brotli/dec/./bit_reader.h: In function 'BrotliFillBitWindow':
brotli/dec/./bit_reader.h:184:5: warning: implicit declaration of
function 'BrotliPullByte' [-Wimplicit-function-declaration]
     BrotliPullByte(br);
brotli/dec/./bit_reader.h: At top level:
brotli/dec/./bit_reader.h:190:27: warning: conflicting types for
'BrotliPullByte'
 static BROTLI_INLINE void BrotliPullByte(BrotliBitReader* const br) {
---
 brotli/dec/bit_reader.h |    1 +
 1 file changed, 1 insertion(+)

Index: libbrotli-0.1.0~git30/brotli/dec/bit_reader.h
===================================================================
--- libbrotli-0.1.0~git30.orig/brotli/dec/bit_reader.h
+++ libbrotli-0.1.0~git30/brotli/dec/bit_reader.h
@@ -133,6 +133,7 @@ static BROTLI_INLINE int BrotliCheckInpu
    Precondition: accumulator contains at least 1 bit.
    n_bits should be in the range [1..24] for regular build. For portable
    non-64-bit little endian build only 16 bits are safe to request. */
+static BROTLI_INLINE void BrotliPullByte(BrotliBitReader *);
 static BROTLI_INLINE void BrotliFillBitWindow(
     BrotliBitReader* const br, int n_bits) {
 #if (BROTLI_64_BITS_LITTLE_ENDIAN)
openSUSE Build Service is sponsored by