Comment by WalterBright
3 days ago
I tried:
int test()
{
int i;
return i;
}
using clang on my Mac mini, and:
clang -c test.c
and it compiled without complaint.
3 days ago
I tried:
int test()
{
int i;
return i;
}
using clang on my Mac mini, and:
clang -c test.c
and it compiled without complaint.
I always build with -Wall so I'm used to seeing the warning:
For the oldest compiler I have access to, VC++ 6.0 from 1998:
The trouble with warnings is every compiler has a different set of warnings. It balkanizes the language. Many D features are the result of cherry picking warnings from various compilers and making them standard features.
> It balkanizes the language.
Not really, as C has had even more diverse implementations per-standardization. I would say the situation is now, much less diverse under the rule of GCC and Clang. (Yeah MSVC also exists.)
6 replies →
C compilers without arguments start in 'trust me and shut up mode'. Seems to be sensible to me, because the 'I don't care about correctness' typically coincides with writing throwaway code, while you surely have the time to add compiler arguments when you set up the build system for an actual project.
Or just have the language initialize it for you!
Thanks, I very much don't want that. There are also people (like me) who find the C semantics pretty great.
7 replies →