mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-17 12:58:11 +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
@@ -171,7 +171,7 @@ static enum LG_ClipboardData mimetypeToCbType(const char * mimetype)
|
||||
return LG_CLIPBOARD_DATA_NONE;
|
||||
}
|
||||
|
||||
static const char * wayland_cb_getName()
|
||||
static const char * wayland_cb_getName(void)
|
||||
{
|
||||
return "Wayland";
|
||||
}
|
||||
@@ -327,7 +327,7 @@ static bool wayland_cb_init(
|
||||
return true;
|
||||
}
|
||||
|
||||
static void wayland_cb_free()
|
||||
static void wayland_cb_free(void)
|
||||
{
|
||||
free(this);
|
||||
this = NULL;
|
||||
@@ -425,7 +425,7 @@ static void wayland_cb_notice(LG_ClipboardRequestFn requestFn,
|
||||
this->requestFn(wayland_cb_reply_fn, NULL);
|
||||
}
|
||||
|
||||
static void wayland_cb_release()
|
||||
static void wayland_cb_release(void)
|
||||
{
|
||||
this->requestFn = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user