aboutsummaryrefslogtreecommitdiff
path: root/c/common
diff options
context:
space:
mode:
authorJyrki Alakuijala <jyrki.alakuijala@gmail.com>2021-12-07 01:47:07 +0100
committerGitHub <noreply@github.com>2021-12-07 01:47:07 +0100
commit4ec67035c0d97c270c1c73038cc66fc5fcdfc120 (patch)
tree2a6fb79958091ecc65d84b08cf00eb4795f0e707 /c/common
parent8376f72ed6a8ca01548aad1a4f4f1df33094d3e0 (diff)
parent27dd7265403d8e8fed99a854b9c3e1db7d79525f (diff)
downloadbrotli-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/common')
-rw-r--r--c/common/shared_dictionary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/common/shared_dictionary.c b/c/common/shared_dictionary.c
index a6d8794..3ca40c0 100644
--- a/c/common/shared_dictionary.c
+++ b/c/common/shared_dictionary.c
@@ -460,7 +460,7 @@ void BrotliSharedDictionaryDestroyInstance(
BROTLI_BOOL BrotliSharedDictionaryAttach(
BrotliSharedDictionary* dict, BrotliSharedDictionaryType type,
- size_t data_size, const uint8_t* data) {
+ size_t data_size, const uint8_t data[BROTLI_ARRAY_PARAM(data_size)]) {
if (!dict) {
return BROTLI_FALSE;
}