Hi Roie,

I also compiled stunnel 5.70 using mingw and I see the same issue. You can get rid of the warning by replacing %llu by %I64u in the code.

Most likely, this issue does not show up in the official binaries that are compiled using the Microsoft compiler.

For more information see https://stackoverflow.com/questions/23718110/error-unknown-conversion-type-character-l-in-format-scanning-long-long

Regards,
Jose

On Friday, July 21, 2023, 01:21:34 PM GMT-5, <[email protected]> wrote:


Hi,

Trying to build stunnel the following warning showed up:

network.c: In function 's_read':
network.c:737:44: warning: unknown conversion type character 'l' in format [-Wformat=]
        s_log(LOG_ERR, "s_read: Received %llu out of requested %llu byte(s)",
                                            ^
network.c:737:66: warning: unknown conversion type character 'l' in format [-Wformat=]
        s_log(LOG_ERR, "s_read: Received %llu out of requested %llu byte(s)",
                                                                  ^
network.c:737:24: warning: too many arguments for format [-Wformat-extra-args]
        s_log(LOG_ERR, "s_read: Received %llu out of requested %llu byte(s)",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

And one more of the same kind.
I wonder how it didn't happen in the official binaries. Are they being built using the instructions in INSTALL.W32 ? Using xmingw-64 ?
Roie
_______________________________________________
stunnel-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]