mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-13 02:48:23 +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
@@ -396,7 +396,7 @@ static struct Option options[] =
|
||||
{0}
|
||||
};
|
||||
|
||||
void config_init()
|
||||
void config_init(void)
|
||||
{
|
||||
params.center = true;
|
||||
params.w = 1024;
|
||||
@@ -514,12 +514,12 @@ bool config_load(int argc, char * argv[])
|
||||
return true;
|
||||
}
|
||||
|
||||
void config_free()
|
||||
void config_free(void)
|
||||
{
|
||||
option_free();
|
||||
}
|
||||
|
||||
static void doLicense()
|
||||
static void doLicense(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"\n"
|
||||
|
Reference in New Issue
Block a user