]> git.ipfire.org Git - thirdparty/squid.git/commit
MinGW: PRINTF_FORMAT_ARG workaround (#1390)
authorAmos Jeffries <yadij@users.noreply.github.com>
Sat, 22 Jul 2023 17:30:22 +0000 (17:30 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 22 Jul 2023 17:30:37 +0000 (17:30 +0000)
commitf43562f5115d4696fadb7ad0379a1301ff803598
tree52a4e94cb4b14d205a37da258b52d3e59ee04ad9
parenta3bc98c38a3e6d7e86edb8685a6b23655ff56f3a
MinGW: PRINTF_FORMAT_ARG workaround (#1390)

MinGW produces warnings about not supporting the printf '%zu' format
code when the 'printf' format archetype is used to validate code.

Checking against the 'gnu_printf' format archetype avoids this bad
warning. We accept the lower rate of error detection since other OS
builds verify against the 'printf' format archetype.

We also removed undocumented, inconsistent, and presumably unused
support for providing custom PRINTF_FORMAT_ARG macros during Squid
build. This removal simplifies code.
compat/compat_shared.h
compat/os/mswindows.h