From 6d03dfbedda1615c4cba1211f8d81735575209c8 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Tue, 25 Oct 2022 12:29:58 -0700 Subject: [PATCH] Fix -Wstrict-prototypes warnings (#985) Envoy builds brotli with -Werror, and these strict prototypes are picked up by newer versions of clang. --- c/common/dictionary.c | 2 +- c/dec/decode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/common/dictionary.c b/c/common/dictionary.c index 3075257..7c015ab 100644 --- a/c/common/dictionary.c +++ b/c/common/dictionary.c @@ -5897,7 +5897,7 @@ static BrotliDictionary kBrotliDictionary = { #endif }; -const BrotliDictionary* BrotliGetDictionary() { +const BrotliDictionary* BrotliGetDictionary(void) { return &kBrotliDictionary; } diff --git a/c/dec/decode.c b/c/dec/decode.c index 2fe58a7..41166f9 100644 --- a/c/dec/decode.c +++ b/c/dec/decode.c @@ -2776,7 +2776,7 @@ const char* BrotliDecoderErrorString(BrotliDecoderErrorCode c) { } } -uint32_t BrotliDecoderVersion() { +uint32_t BrotliDecoderVersion(void) { return BROTLI_VERSION; }