Gcc 2.95 patch for kdebase 3.3.92

Thiago Macieira thiago.macieira at kdemail.net
Fri Feb 18 18:59:44 GMT 2005


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=<standard> ? See man gcc.
>
>Thanks.
>
>Here's a patch that adds -std=iso9899:1990 to CFLAGS on GNU/Linux
> platforms. I have yet to check it, but is the patch principally ok?
>
>mfg
> Leo

-ansi is a short form of -std=latest-ISO-std-fully-supported. That's why 
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, 
like Solaris 2.6 -- I'd say this is probably the way to go. You'll have 
to remove the -ansi switch from there, though.

-- 
  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ð geborod, swá se Scieppend cweað "Gewurde Unix" and 
wundor fremede and him "Unix" genemned, þæt is se rihtendgesamnung.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050218/07e53996/attachment.sig>


More information about the kde-core-devel mailing list