__unused in file.h/file.c causes build failure with some systems
Christos Zoulas
christos at zoulas.com
Mon Mar 19 06:21:55 EET 2007
On Mar 18, 11:20pm, vapier at gentoo.org (Mike Frysinger) wrote:
-- Subject: __unused in file.h/file.c causes build failure with some systems
| the glibc headers have some structures which have a member=20
| named "__unused" ... since file.h defines this to a gcc attribute, the buil=
| d=20
| fails complaining about syntax error (because "int __unused[4];" was turned=
| =20
| into "int __attribute__((__unused__))[4];"
|
| considering __unused is only used inside of the file source code and isnt=20
| exported anywhere, and because C defines names that start with __=20
| as "reserved", perhaps it's sane to rename it to "gcc_attribute_unused" ...
| =2Dmike
I have killed it already; thanks for the heads up.
christos
More information about the File
mailing list