mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
Compilation error due to macro BROTLI_ALLOC in enc/memory.h (GCC 7 -Wint-in-bool-context) #176
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 @Exagone313 on GitHub (Jun 16, 2017).
Hi,
I'm compiling ngx_brotli, with v0.6.0 brotli release (but the macro is the same in current master branch), and I had to fix an issue with this macro:
Just replace the macro like this:
(test if (N) is strictly greater that zero).
I believe this is the fix, it compiles and runs fine after changing this, but only tried using nginx with ngx_brotli (it does not use the decoder part).
I'm using GCC 7.1.1 (as available in ArchLinux repos); nginx does not add a parameter like
-stdto commands.ngx_brotli repo actually uses the commit
222564a95dfor brotli, if there is any security concern about this.If you agree to, I can try to submit a PR (on both repos, in ngx_brotli it's just updating the list of files in enc) so I can have my name somewhere in the history :)