C standard

Andrius da Costa Ribas andriusmao at gmail.com
Tue Jan 28 17:19:37 UTC 2014


MSVC (at least vc2010) is C89 for C code, changing it to C99 on GCC may
lead to changes that break MSVC build (since almost everything is mostly
tested on linux/gcc only).

--
Andrius


2014-01-28 Alex Merry <kde at randomguy3.me.uk>

> Currently, KDECompilerSettings.cmake in ECM sets -std=iso9899:1990 for C
> code (C90).  Question: do we want to change this to -std=c99?
>
> Bear in mind that our minimum GCC version (4.2) does not completely
> support this standard.  In particular, the semantics for inline
> functions don't match C99's until GCC 4.3, and there are some corner
> cases for variable length arrays and complex numbers that are not fixed
> until GCC 4.5.
>
> Obviously, this won't affect that much code, since most of it is C++
> (for which, incidentally, we set -std=c++0x, ie: C++11).
>
> Alex
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20140128/2f905f73/attachment.html>


More information about the Kde-buildsystem mailing list