mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: Handling of L and ll prefixes different from glibc
Date: Thu, 15 Dec 2016 12:30:42 +0100	[thread overview]
Message-ID: <20161215113041.GJ16379@port70.net> (raw)
In-Reply-To: <585215B7.2070507@adelielinux.org>

* A. Wilcox <awilfox@adelielinux.org> [2016-12-14 22:01:59 -0600]:
> On 14/12/16 20:30, Rich Felker wrote:
> > BTW I wonder if gcc's -Wformat catches these errors.
> 
> It is meant to.  I know that clang whines loudly on mismatched format
> specifiers, and I seem to recall it even whines on format specifiers
> that don't exist, but it has been a while since I checked GCC's.

despite clang propaganda, gcc actually has more detailed model
of printf now and thus gives better warnings

https://godbolt.org/g/Z0nnEH

note that clang does not warn at all, while gcc caught two bugs.


      reply	other threads:[~2016-12-15 11:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-14 13:46 Nadav Har'El
2016-12-14 16:13 ` Rich Felker
2016-12-14 17:17   ` Szabolcs Nagy
2016-12-14 22:37     ` A. Wilcox
2016-12-15  2:30       ` Rich Felker
2016-12-15  4:01         ` A. Wilcox
2016-12-15 11:30           ` Szabolcs Nagy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161215113041.GJ16379@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).