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 #442
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.
@eustas commented on GitHub (Dec 27, 2022):
Oh, gosh, this thing again. Will fix soon.
@eustas commented on GitHub (Dec 30, 2022):
Isn't it fixed in #893?
We plan to have release soon, that will include this change.
@istr commented on GitHub (Dec 30, 2022):
@eustas you are right, my search in the issues was not good enough -- sorry for the noise. 😊