From kde-core-devel Fri Aug 15 19:29:01 2003 From: Helio Chissini de Castro Date: Fri, 15 Aug 2003 19:29:01 +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=106097590907626 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-02=_+RTP/mhuBJlpBaz" --Boundary-02=_+RTP/mhuBJlpBaz Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Em Friday 15 August 2003 14:14, thiago@macieira.info escreveu: > I second that. Using gcc 3.3.1 on a standard Linux system, with glibc 2.3, > a couple of modules in KDE don't get compiled because of errors. Removing > the - pedantic option from the command line solved the problem. I don't > remember anymore whether the problem occurred within kernel headers > included by glibc's includes or whether it was glibc headers. In any even= t, > they are errors that shouldn't be happening. Thiago is right.. The only major problem is under sound applications that relies over cdrom.h= =20 Linux Header that includes : In file included from /usr/include/linux/byteorder/little_endian.h:11, from /usr/include/asm/byteorder.h:45, from /usr/include/linux/cdrom.h:14, from CdboDevice.cpp:34: /usr/include/linux/byteorder/swab.h: In function `const __u32 __fswab24(unsigned int)': /usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-grou= ps within expressions Was explained to me that the header itself is a very common implementation= =20 under Linux kernel, and is a gcc-ism, so -pedantic will not work. I Agree with Coolo that we do not must remove it, since the ut not generate= d=20 can hide ugly flaws. One of the our kernel hacker told me to do a C++ implementation of cdrom.h= =20 header to avoid this, but believe that can be worst than remove -pedantic.= =20 So, can anyone bring a better idea ? =2D-=20 Helio Chissini de Castro KDE Developer Development - Conectiva S.A. --Boundary-02=_+RTP/mhuBJlpBaz Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/PTR+8KVbYLGVrvcRAhsjAKCbUQuxcySEOPTrSlXSFOckoPAwdQCeJ6rw XMKriFLBOBZ0rQRUZzZRFXc= =5ygJ -----END PGP SIGNATURE----- --Boundary-02=_+RTP/mhuBJlpBaz--