This is the mail archive of the
mailing list for the glibc project.
stdio.h vs. bits/stdio.h header brokeness?
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Thu, 08 May 2003 11:45:21 +0200
- Subject: stdio.h vs. bits/stdio.h header brokeness?
with current glibc CVS and gcc-3.3pre I get a lot of g++ testsuite warnings
when I run the g++ testsuite with -O2 on powerpc-linux.
The reason is that various functions (eg. vprintf, getchar,
getc_unlocked,...) from stdio.h differ in their exception specifications
between stdio.h and bits/stdio.h, in bits/stdio.h they are declared with
__THROW, in stdio.h declared without __THROW.
Which one is the correct declaration?