[exim-dev] Re: compiler warnings

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-dev
Subject: [exim-dev] Re: compiler warnings
On 16/11/2023 18:11, Lena--- via Exim-dev wrote:
> lmtp.c:244:48: warning: invalid conversion specifier 'Y' [-Wformat-invalid-specifier]
> DEBUG(D_transport|D_v) debug_printf(" LMTP>> %Y", &gs);


"invalid format specifier" does not understand that printf-like functions
might support their own formats. One could argue that marking the functions
as being printf-like is the error... but it is also biting support for
"extensible format support" in the standard libraries. I'm not sure
what the right answer is, here.

Meantime, the "%Y" conversion specifie
is supported by the Exim printf-like functions. And used.
I suggest you should turn that -W "feature" of the compiler off.



-- > smtp_out.c:173:9: warning: 4 enumeration values not handled in switch: 'TFO_NOT_USED', 'TFO_ATTEMPTED_DATA', 'TFO_USED_NODATA'... [-Wswitch]
> switch (tcp_out_fastopen)


Please, tell your compiler to comle 'C' rather than some other language.
--
Cheers,
Jeremy


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