On Mon, 2020-05-25 at 23:58 +0200, Michal Sudolsky wrote:
> Probably only compiler on osx have problem with this which is clang
> instead of gcc on linux.

        Hi,
being it it, I'd expect a lot more format-specific warnings, not only
this one. It's only my opinion, no proof available. I just tried with
clang 10.0.0 on Linux and it doesn't claim this warning. It claims some
other, which gcc (10.1.1) does not claim about here.

> podofo/base/PdfDate.cpp:205:50: warning: ‘%s’ directive output may be
> truncated writing up to 5 bytes into a region of size between 1 and
> 26 [-Wformat-truncation=]
>   205 |     snprintf( m_szDate, PDF_DATE_BUFFER_SIZE, "%s%s'00'",
> szDate, szZone );

This one is not claimed by clang here.

I use the same warning flags for both compilers.

        Bye,
        zyx

P.S.: by the way, would you mind to reply to list instead to all when
replying (at least to my) messages here, please? I do not need to
receive private copy of the message when I get it through the list. I
also reply to the list, not to individuals, unless they explicitly ask
for it (like one time senders, whom might not be subscribed to the
list). Receiving messages through the list makes it easier to reply to
the list, in contrast to edit recipients in "private" mails when
replying.



_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to