mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-07 03:04:05 +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
@@ -196,12 +196,12 @@ static bool draw_frame(struct Inst * this);
|
||||
static void draw_mouse(struct Inst * this);
|
||||
static void render_wait(struct Inst * this);
|
||||
|
||||
const char * opengl_get_name()
|
||||
const char * opengl_get_name(void)
|
||||
{
|
||||
return "OpenGL";
|
||||
}
|
||||
|
||||
static void opengl_setup()
|
||||
static void opengl_setup(void)
|
||||
{
|
||||
option_register(opengl_options);
|
||||
}
|
||||
|
Reference in New Issue
Block a user