Removal of -pedantic and -pedantic-errors from acinclude.m4.in
mueller at kde.org
Sat Aug 16 01:09:59 BST 2003
On Fre, 15 Aug 2003, Helio Chissini de Castro wrote:
> Was explained to me that the header itself is a very common implementation
> under Linux kernel, and is a gcc-ism, so -pedantic will not work.
Thats why we use -pedantic.
> One of the our kernel hacker told me to do a C++ implementation of cdrom.h
> header to avoid this, but believe that can be worst than remove -pedantic.
Sorry, braced-groups are also invalid in ISO C, you said yourself above
("and is a gcc-ism"). Therefore, a C++ implementation will not gain
The fix is to add __extension__ to the offending statement system header, so
that GCC will stop complaining.
I really don't understand why this case is so much different to the other
368 gcc-ism's in glibc headers.
More information about the kde-core-devel