[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090117213852.GC1700@bombadil.infradead.org>
Date: Sat, 17 Jan 2009 16:38:52 -0500
From: Kyle McMartin <kyle@...radead.org>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Kyle McMartin <kyle@...radead.org>, Ingo Molnar <mingo@...e.hu>,
Mikael Pettersson <mikpe@...uu.se>,
linux-kernel@...r.kernel.org
Subject: Re: "eliminate warn_on_slowpath()" change causes many gcc-3.2.3
warnings
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@...tethathostname ~ $ cat foo.c
#include <stdio.h>
int main(void) {
printf("");
return 0;
}
kyle@...tethathostname ~ $ 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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists