mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-26 21:30:07 +00:00
6dd5e955f5
When building C code with gcc and the -Wstrict-prototypes option, function declarations and definitions that don't specify their argument types generate warnings. Functions that don't take parameters need to specify (void) as their parameter list, rather than leaving it empty. Note this only applies to C, so only the functions exported in C-compatible headers need fixing. In C++ functions can't be declared/defined without a parameter list, so C++ can safely allow an empty parameter list to imply (void). |
||
---|---|---|
.. | ||
libspirv.h | ||
libspirv.hpp | ||
linker.hpp | ||
optimizer.hpp |