From kde-core-devel Fri Feb 18 18:59:44 2005 From: Thiago Macieira Date: Fri, 18 Feb 2005 18:59:44 +0000 To: kde-core-devel Subject: Re: Gcc 2.95 patch for kdebase 3.3.92 Message-Id: <200502181659.46461.thiago.macieira () kdemail ! net> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=110875316906232 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1181830.pA3etulyHa" --nextPart1181830.pA3etulyHa Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Leo Savernik wrote: >Am Freitag, 18. Februar 2005 18:44 schrieb Andras Mantia: >> On Friday 18 February 2005 19:45, Leo Savernik wrote: > >[...] > >> > Having hit this bug many times myself, isn't there a switch for gcc >> > 3.x to turn off C99 extensions by default? >> >> gcc -std=3D ? See man gcc. > >Thanks. > >Here's a patch that adds -std=3Diso9899:1990 to CFLAGS on GNU/Linux > platforms. I have yet to check it, but is the patch principally ok? > >mfg > Leo =2Dansi is a short form of -std=3Dlatest-ISO-std-fully-supported. That's wh= y=20 it has different behaviours in gcc 2.95 and recent 3.x. So, since we don't support C99 at all -- too many platforms without it,=20 like Solaris 2.6 -- I'd say this is probably the way to go. You'll have=20 to remove the -ansi switch from there, though. =2D-=20 Thiago Macieira - thiago (AT) macieira (DOT) info PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 3. Ac seo woruld wear=C3=B0 geborod, sw=C3=A1 se Scieppend cwea=C3=B0 "Gewu= rde Unix" and=20 wundor fremede and him "Unix" genemned, =C3=BE=C3=A6t is se rihtendgesamnun= g. --nextPart1181830.pA3etulyHa Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCFjsiM/XwBW70U1gRAqk5AJ0XtDLJTB7FDL5b00HuAOb5VdiS+ACeP886 MJjJ6WzawTesytBHVmAkx4E= =UxJZ -----END PGP SIGNATURE----- --nextPart1181830.pA3etulyHa--