__unused in file.h/file.c causes build failure with some systems
Mike Frysinger
vapier at gentoo.org
Mon Mar 19 05:20:42 EET 2007
the glibc headers have some structures which have a member
named "__unused" ... since file.h defines this to a gcc attribute, the build
fails complaining about syntax error (because "int __unused[4];" was turned
into "int __attribute__((__unused__))[4];"
considering __unused is only used inside of the file source code and isnt
exported anywhere, and because C defines names that start with __
as "reserved", perhaps it's sane to rename it to "gcc_attribute_unused" ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://mx.gw.com/pipermail/file/attachments/20070318/f59de7b9/attachment.bin
More information about the File
mailing list