From: Kyle McMartin <kyle@infradead.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Kyle McMartin <kyle@infradead.org>, Ingo Molnar <mingo@elte.hu>,
Mikael Pettersson <mikpe@it.uu.se>,
linux-kernel@vger.kernel.org
Subject: Re: "eliminate warn_on_slowpath()" change causes many gcc-3.2.3 warnings
Date: Sat, 17 Jan 2009 16:38:52 -0500 [thread overview]
Message-ID: <20090117213852.GC1700@bombadil.infradead.org> (raw)
In-Reply-To: <497248AE.10500@zytor.com>
On Sat, Jan 17, 2009 at 01:07:58PM -0800, H. Peter Anvin wrote:
> Kyle McMartin wrote:
> >
> > How about something utterly evil? (Since you can't pass a zero-length
> > string to a printf attributed function either...)
> >
>
> ?!
>
> *That* should definitely be permitted... anything else is an utter bug.
>
Sadly,
kyle@ihatethathostname ~ $ cat foo.c
#include <stdio.h>
int main(void) {
printf("");
return 0;
}
kyle@ihatethathostname ~ $ gcc -O2 -Wall -o foo foo.c
foo.c: In function âmainâ:
foo.c:3: warning: zero-length printf format string
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
next prev parent reply other threads:[~2009-01-17 21:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-17 15:19 Mikael Pettersson
2009-01-17 16:18 ` Ingo Molnar
2009-01-17 20:01 ` H. Peter Anvin
2009-01-17 20:44 ` Kyle McMartin
2009-01-17 20:57 ` Kyle McMartin
2009-01-17 21:07 ` H. Peter Anvin
2009-01-17 21:38 ` Kyle McMartin [this message]
2009-01-17 23:37 ` Linus Torvalds
2009-01-17 23:40 ` H. Peter Anvin
2009-01-18 0:01 ` Linus Torvalds
2009-01-18 0:10 ` H. Peter Anvin
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=20090117213852.GC1700@bombadil.infradead.org \
--to=kyle@infradead.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mikpe@it.uu.se \
--cc=mingo@elte.hu \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®