3 ms·
In what situation fn() doesn't mean fn(void) under C23?
by fuhsnn 1y ago
In what situation fn() doesn't mean fn(void) under C23?
- el_pollo_diablo 1y agoNone, but that is not my point. Before C23, fn() already meant the same thing as fn(void) in function definitions, which the situation under discussion here. C23 changed what fn() means outside a function definition.
- fuhsnn 1y agoOh, yeah, the codegen for the fn() itself would likely be the same, but the prototype of that definition is still a K&R function. https://godbolt.org/z/Psvae55Pr https://godbolt.org/z/Psvae55Pr