[all] use explicit void parameter lists

This makes it a compile-time error to call a function that semantically
takes no parameters with a nonzero number of arguments.

Previously, such code would still compile, but risk blowing up the stack
if a compiler chose to use something other than caller-cleanup calling
conventions.
This commit is contained in:
Tudor Brindus authored and Geoffrey McRae committed 2021-01-14 17:29:37 +11:00
1 parent dc17492750
commit a46a3a2668
28 files changed
+111 -111

No files matched your search

+2 -2
View File
@@ -20,7 +20,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <unistd.h>
#include <GL/glx.h>
int sysinfo_gfx_max_multisample()
int sysinfo_gfx_max_multisample(void)
{
Display * dpy = XOpenDisplay(NULL);
if (!dpy)
@@ -64,7 +64,7 @@ int sysinfo_gfx_max_multisample()
return maxSamples;
}
long sysinfo_getPageSize()
long sysinfo_getPageSize(void)
{
return sysconf(_SC_PAGESIZE);
}