5 ms·
When clang was first coming about, the number one cause of Debian packages failing to build with clang was that (at the time) clang defaulted to C99 whereas gcc
by jcranmer 10mo ago
When clang was first coming about, the number one cause of Debian packages failing to build with clang was that (at the time) clang defaulted to C99 whereas gcc defaulted to C89.
- LexiMax 10mo agoI'm going to guess that most of those issues were caused by implicit declarations no longer being valid. int main() { printf("Sans headers, this is valid C89."); return 0; } Without an explicit declaration, C will consider this function to have the following signature based on the call site: int printf(); By the way, in C () doesn't mean "no parameters" it means "any parameters, which the compiler will infer from the call site and pass to the function."