Rain 🚱 is a user on cybre.space. You can follow them or interact with them if you have an account anywhere in the fediverse.

C and C++ still continue to astonish me sometimes...

godbolt.org/g/wJ2ut3

Apparently, if you write a C function declaration with no parameters and don't put void in the parameter section, you can call the function with an arbitrary number of parameters without so much as a warning from GCC.
😲

And it's not a bug in GCC, it's part of the standard! 😱

Rain 🚱 @grainloom

@AlexMax the standard is crap, (or ) warns you by default

· Web · 0 · 1