diff --git a/client/audiodevs/PulseAudio/pulseaudio.c b/client/audiodevs/PulseAudio/pulseaudio.c index 2fc4ae6d..a9d9719f 100644 --- a/client/audiodevs/PulseAudio/pulseaudio.c +++ b/client/audiodevs/PulseAudio/pulseaudio.c @@ -187,7 +187,7 @@ err: return false; } -static void pulseaudio_sink_close_nl() +static void pulseaudio_sink_close_nl(void) { if (!pa.sink) return; diff --git a/client/displayservers/X11/clipboard.h b/client/displayservers/X11/clipboard.h index a77dd48f..8435144e 100644 --- a/client/displayservers/X11/clipboard.h +++ b/client/displayservers/X11/clipboard.h @@ -28,7 +28,7 @@ bool x11CBEventThread(const XEvent xe); -bool x11CBInit(); +bool x11CBInit(void); void x11CBNotice(LG_ClipboardData type); void x11CBRelease(void); void x11CBRequest(LG_ClipboardData type); diff --git a/client/include/interface/displayserver.h b/client/include/interface/displayserver.h index 82bdb843..a7741238 100644 --- a/client/include/interface/displayserver.h +++ b/client/include/interface/displayserver.h @@ -123,13 +123,13 @@ struct LG_DisplayServerOps bool (*init)(const LG_DSInitParams params); /* called at startup after window creation, renderer and SPICE is ready */ - void (*startup)(); + void (*startup)(void); /* called just before final window destruction, before final free */ - void (*shutdown)(); + void (*shutdown)(void); /* final free */ - void (*free)(); + void (*free)(void); /* * return a system specific property, returns false if unsupported or failure @@ -170,14 +170,14 @@ struct LG_DisplayServerOps /* dm specific cursor implementations */ void (*guestPointerUpdated)(double x, double y, double localX, double localY); void (*setPointer)(LG_DSPointer pointer); - void (*grabKeyboard)(); - void (*ungrabKeyboard)(); + void (*grabKeyboard)(void); + void (*ungrabKeyboard)(void); /* (un)grabPointer is used to toggle cursor tracking/confine in normal mode */ - void (*grabPointer)(); - void (*ungrabPointer)(); + void (*grabPointer)(void); + void (*ungrabPointer)(void); /* (un)capturePointer is used do toggle special cursor tracking in capture mode */ - void (*capturePointer)(); - void (*uncapturePointer)(); + void (*capturePointer)(void); + void (*uncapturePointer)(void); /* exiting = true if the warp is to leave the window */ void (*warpPointer)(int x, int y, bool exiting); @@ -185,17 +185,17 @@ struct LG_DisplayServerOps /* called when the client needs to realign the pointer. This should simply * call the appropriate app_handleMouse* method for the platform with zero * deltas */ - void (*realignPointer)(); + void (*realignPointer)(void); /* returns true if the position specified is actually valid */ bool (*isValidPointerPos)(int x, int y); /* called to disable/enable the screensaver */ - void (*inhibitIdle)(); - void (*uninhibitIdle)(); + void (*inhibitIdle)(void); + void (*uninhibitIdle)(void); /* called to request activation */ - void (*requestActivation)(); + void (*requestActivation)(void); /* wait for the specified time without blocking UI processing/event loops */ void (*wait)(unsigned int time); diff --git a/client/src/config.c b/client/src/config.c index f498aa9b..7882c933 100644 --- a/client/src/config.c +++ b/client/src/config.c @@ -46,7 +46,7 @@ static bool optScancodeValidate(struct Option * opt, const char ** error); static char * optScancodeToString(struct Option * opt); static bool optRotateValidate (struct Option * opt, const char ** error); -static void doLicense(); +static void doLicense(void); static struct Option options[] = { diff --git a/client/src/config.h b/client/src/config.h index c13b0411..f979b8f9 100644 --- a/client/src/config.h +++ b/client/src/config.h @@ -20,6 +20,6 @@ #include -void config_init(); +void config_init(void); bool config_load(int argc, char * argv[]); -void config_free(); +void config_free(void); diff --git a/client/src/main.c b/client/src/main.c index f5afae42..33b82ccc 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -981,7 +981,7 @@ static bool tryRenderer(const int index, const LG_RendererParams lgrParams, return true; } -static void reportBadVersion() +static void reportBadVersion(void) { DEBUG_BREAK(); DEBUG_ERROR("The host application is not compatible with this client"); diff --git a/client/src/overlays.h b/client/src/overlays.h index 67bcb40d..0bc63e7d 100644 --- a/client/src/overlays.h +++ b/client/src/overlays.h @@ -44,7 +44,7 @@ void overlayAlert_show(LG_MsgAlert type, const char * fmt, va_list args); GraphHandle overlayGraph_register(const char * name, RingBuffer buffer, float min, float max, GraphFormatFn formatFn); -void overlayGraph_unregister(); +void overlayGraph_unregister(GraphHandle handle); void overlayGraph_iterate(void (*callback)(GraphHandle handle, const char * name, bool * enabled, void * udata), void * udata); void overlayGraph_invalidate(GraphHandle handle);