Closed b4n closed 7 months ago
C23 will fix this by defining empty argument lists to work like C++.
Indeed it will, but why not make this work with older standards? It has no side effect I know to C++ or C23 but to be a tiny bit more verbose, does it?
Included in version 5.2.9.
Lexilla.h is expected to be usable from C code, so use proper C prototypes for a C compiler to be happy: in C, an empty argument list is written as
(void)
,()
alone denotes an unspecified argument list.GCC and clang emits a warning with
-Wstrict-prototypes
in C mode.