diff options
author | Jyrki Alakuijala <jyrki.alakuijala@gmail.com> | 2021-12-07 01:47:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 01:47:07 +0100 |
commit | 4ec67035c0d97c270c1c73038cc66fc5fcdfc120 (patch) | |
tree | 2a6fb79958091ecc65d84b08cf00eb4795f0e707 /c/dec | |
parent | 8376f72ed6a8ca01548aad1a4f4f1df33094d3e0 (diff) | |
parent | 27dd7265403d8e8fed99a854b9c3e1db7d79525f (diff) | |
download | brotli-4ec67035c0d97c270c1c73038cc66fc5fcdfc120.zip brotli-4ec67035c0d97c270c1c73038cc66fc5fcdfc120.tar.gz brotli-4ec67035c0d97c270c1c73038cc66fc5fcdfc120.tar.bz2 |
Merge pull request #929 from jbms/fix-vla-parameter
Fix -Werror=vla-parameter errors with GCC 11.2.0
Diffstat (limited to 'c/dec')
-rw-r--r-- | c/dec/decode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/dec/decode.c b/c/dec/decode.c index 8097f37..2fe58a7 100644 --- a/c/dec/decode.c +++ b/c/dec/decode.c @@ -1494,8 +1494,9 @@ static int CopyFromCompoundDictionary(BrotliDecoderState* s, int pos) { return pos - orig_pos; } -BROTLI_BOOL BrotliDecoderAttachDictionary(BrotliDecoderState* state, - BrotliSharedDictionaryType type, size_t data_size, const uint8_t* data) { +BROTLI_BOOL BrotliDecoderAttachDictionary( + BrotliDecoderState* state, BrotliSharedDictionaryType type, + size_t data_size, const uint8_t data[BROTLI_ARRAY_PARAM(data_size)]) { uint32_t i; uint32_t num_prefix_before = state->dictionary->num_prefix; if (state->state != BROTLI_STATE_UNINITED) return BROTLI_FALSE; |