4 ms·
> I didn't know that no-arg functions in C are implicitly variadic! That's bizarre. I would have expected modern compilers to disable that by default, but I can
by justinmk 9y ago
> I didn't know that no-arg functions in C are implicitly variadic! That's bizarre. I would have expected modern compilers to disable that by default, but I can't get Clang to warn me about it even with -Wall.
Try -Wstrict-prototypes, then `void` is required.
- iainmerrick 9y agoThat works in GCC, but not in Clang. As far as I can tell Clang has no warnings relating to this at all.