On Mon, 5 Aug 2024, Christoph M. Becker wrote: > On 05.08.2024 at 17:42, Pierre Joye wrote: > > > On Mon, Aug 5, 2024, 10:03 PM Derick Rethans <der...@php.net> wrote: > > > >> Instead of having to deal with tickets, wouldn't be be easier if > >> the compiler they used works with the features that we are using? > >> That could instantly provide a link to the documentation saving all > >> of us time. > > > > it is significantly easier at configure time. Gcc 4.9 is (almost) > > fully c11 compliant (not 4.7). > > But what about other compilers we support on non Windows platforms > currently, like clang, Apple's clang, Solaris Studio and maybe some > more we don't even know about.
Normal clang supports the same flag. Apple clang potentially too, but not currently: https://opensource.apple.com/source/clang/clang-23/clang/tools/clang/docs/UsersManual.html — it could be outdated information though. I don't have a mac to test. But it's just possible to check for the flag for compilers that we *do* know about. And by checking for it and showing a warning, we make people's lives easire. cheers, Derick