mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +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
@@ -89,12 +89,12 @@ static void on_mouseMove(int x, int y)
|
||||
lgSignalEvent(this->cursorEvents[0]);
|
||||
}
|
||||
|
||||
static const char * nvfbc_getName()
|
||||
static const char * nvfbc_getName(void)
|
||||
{
|
||||
return "NVFBC (NVidia Frame Buffer Capture)";
|
||||
};
|
||||
|
||||
static void nvfbc_initOptions()
|
||||
static void nvfbc_initOptions(void)
|
||||
{
|
||||
struct Option options[] =
|
||||
{
|
||||
@@ -163,7 +163,7 @@ static bool nvfbc_create(
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool nvfbc_init()
|
||||
static bool nvfbc_init(void)
|
||||
{
|
||||
this->stop = false;
|
||||
getDesktopSize(&this->width, &this->height, &this->dpi);
|
||||
@@ -205,7 +205,7 @@ static bool nvfbc_init()
|
||||
return true;
|
||||
}
|
||||
|
||||
static void nvfbc_stop()
|
||||
static void nvfbc_stop(void)
|
||||
{
|
||||
this->stop = true;
|
||||
lgSignalEvent(this->cursorEvents[0]);
|
||||
@@ -218,7 +218,7 @@ static void nvfbc_stop()
|
||||
}
|
||||
}
|
||||
|
||||
static bool nvfbc_deinit()
|
||||
static bool nvfbc_deinit(void)
|
||||
{
|
||||
mouseHook_remove();
|
||||
|
||||
@@ -231,7 +231,7 @@ static bool nvfbc_deinit()
|
||||
return true;
|
||||
}
|
||||
|
||||
static void nvfbc_free()
|
||||
static void nvfbc_free(void)
|
||||
{
|
||||
NvFBCToSysRelease(&this->nvfbc);
|
||||
|
||||
@@ -243,17 +243,17 @@ static void nvfbc_free()
|
||||
NvFBCFree();
|
||||
}
|
||||
|
||||
static unsigned int nvfbc_getMaxFrameSize()
|
||||
static unsigned int nvfbc_getMaxFrameSize(void)
|
||||
{
|
||||
return this->maxWidth * this->maxHeight * 4;
|
||||
}
|
||||
|
||||
static unsigned int nvfbc_getMouseScale()
|
||||
static unsigned int nvfbc_getMouseScale(void)
|
||||
{
|
||||
return this->dpi * 100 / DPI_100_PERCENT;
|
||||
}
|
||||
|
||||
static CaptureResult nvfbc_capture()
|
||||
static CaptureResult nvfbc_capture(void)
|
||||
{
|
||||
getDesktopSize(&this->width, &this->height, &this->dpi);
|
||||
NvFBCFrameGrabInfo grabInfo;
|
||||
|
Reference in New Issue
Block a user