4 ms·
So -std=c99 inserted by cmake was the culprit, whilst the default in current GCC is gnu17. So please people, don't use silly build systems. autoconf doesn't ins
by rurban 4y ago
So -std=c99 inserted by cmake was the culprit, whilst the default in current GCC is gnu17. So please people, don't use silly build systems. autoconf doesn't insert this sillyness, when the compiler does better.
https://gcc.gnu.org/onlinedocs/gcc/Standards.html https://gcc.gnu.org/onlinedocs/gcc/Standards.html
> The default, if no C language dialect options are given, is -std=gnu17.
- nemetroid 4y agoI’m sure autoconf will insert this if you explicitly tell it to [1]. 1: https://github.com/facebook/zstd/blob/b7b7edb3a3017ac8e16d7eb2dbede45168560c58/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake#L28 https://github.com/facebook/zstd/blob/b7b7edb3a3017ac8e16d7e...