SDCC currently allows qualified (unless by a storage-class qualifier) and named void parameters:

int g(register void);
int h(volatile void);
int i(const void);
int j(void x);
int j(void x) { return 0;}

This is undefined behavior in C up to C23, but a constraint violation in C2y. Is anyone using any of these? If not, I'd just make this an error.

Philipp



_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to