mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[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:

committed by
Geoffrey McRae

parent
dc17492750
commit
a46a3a2668
@@ -158,12 +158,12 @@ static struct Option egl_options[] =
|
||||
|
||||
void update_mouse_shape(struct Inst * this);
|
||||
|
||||
const char * egl_get_name()
|
||||
const char * egl_get_name(void)
|
||||
{
|
||||
return "EGL";
|
||||
}
|
||||
|
||||
void egl_setup()
|
||||
void egl_setup(void)
|
||||
{
|
||||
option_register(egl_options);
|
||||
}
|
||||
|
@@ -268,7 +268,7 @@ bool egl_texture_setup(EGL_Texture * texture, enum EGL_PixelFormat pixFmt, size_
|
||||
return true;
|
||||
}
|
||||
|
||||
static void egl_warn_slow()
|
||||
static void egl_warn_slow(void)
|
||||
{
|
||||
static bool warnDone = false;
|
||||
if (!warnDone)
|
||||
|
Reference in New Issue
Block a user