[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Removal of -pedantic and -pedantic-errors from acinclude.m4.in
From: Dirk Mueller <mueller () kde ! org>
Date: 2003-08-16 0:09:59
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic