mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
MSVC C4551 compiler warnings in platform.h #236
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 @rvandermeulen on GitHub (May 31, 2018).
I was taking a look at updating Firefox' vendored copy of brotli to version 1.0.4 today.
Along the way, I ran into Werror bustage in platform.h within the newly-added
BROTLI_UNUSED_FUNCTION void BrotliSuppressUnusedFunctions(void)block. MSVC gives a "warning C4551: function call missing argument list" error for each subsequent line within it.The warning is fixable by explicitly making those all references instead, i.e.
BROTLI_UNUSED(&BrotliSuppressUnusedFunctions)instead ofBROTLI_UNUSED(BrotliSuppressUnusedFunctions). As far as I can tell, everything compiles and functions fine with GCC and clang as well with this change.@eustas commented on GitHub (Jun 4, 2018):
Going to do that soon. Thanks for reporting.