mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Compilation fails with gcc 11+ and -Werror due to incompatible type redeclaration #439
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @istr on GitHub (Dec 27, 2022).
Due to an inconsistent redeclaration of
BrotliEncoderCompressthe compilation fails with gcc 11 and later when using-Werror=format-security.This is due to the introduction of
-Wvla-paremeter, seeThe following patch resolves the issue
This simply matches the function declaration in
encode.cwith what has been previously declared inencode.h.@eustas you could use this patch as is (I've just signed the CLA) or I could prepare a PR if you tell me to do so.