From kde-core-devel Sat Aug 16 00:09:59 2003 From: Dirk Mueller Date: Sat, 16 Aug 2003 00:09:59 +0000 To: kde-core-devel Subject: Re: Removal of -pedantic and -pedantic-errors from acinclude.m4.in X-MARC-Message: https://marc.info/?l=kde-core-devel&m=106099269421615 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 anything. 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. -- Dirk