Am 27.02.25 um 01:41 schrieb Jeremy Harris via Exim-dev:
On 2/26/25 8:45 PM, Heiko Schlittermann via Exim-dev wrote:
Andreas Piesk via Exim-dev <exim-dev@lists.exim.org> (Mi 26 Feb 2025 19:52:57 
CET):
I get warnings like these when compiling exim with gcc on linux:

pdkim.c: In function ‘pdkim_parse_sig_header’:
pdkim.c:615:65: warning: unknown conversion type character ‘Y’ in format 
[-Wformat=]
   615 | bad_tag:  DEBUG(D_acl) debug_printf(" Unknown tag encountered: %Y\n", 
cur_tag);
       |                                                                 ^

my printf() doesn't know about %Y and i don't see a register_printf_function, 
what I'm missing here?

src/string.c around L 1637 should be used for interpreting this. So I'm
not sure, why gcc complains here. Either because it is overly sensible

Because it thinks that anything printf-like must be exactly the printf()s that
it knows about.  You could ignore it, or you could delve around in the gcc docs
to try to find the -W to turn off the warning.

For anyone that cares, %Y in Exim's printf-like internal string handling
takes a "gstring" - a pointer-plus-count object.

Thanks to all responders, I will turn it off with -Wno-format.

Best,
-ap


--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-dev-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to