[client] remove non-prototype function declarations

With -Wstrict-prototypes on non-protyped functions are deprecated and
functions must include a void parameter if they do not take parameters.
This commit is contained in:
Ali Abdel-Qader 2022-09-26 01:16:01 -04:00 committed by Geoffrey McRae
parent 081a0a419d
commit 352cd2fafe
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ arcnmx <arcnmx@users.noreply.github.com> (arcnmx)
TheCakeIsNaOH <TheCakeIsNaOH@gmail.com> (TheCakeIsNaOH) TheCakeIsNaOH <TheCakeIsNaOH@gmail.com> (TheCakeIsNaOH)
NamoDev <namodev@users.noreply.github.com> (NamoDev) NamoDev <namodev@users.noreply.github.com> (NamoDev)
feltcat <58396817+feltcat@users.noreply.github.com> (feltcat) feltcat <58396817+feltcat@users.noreply.github.com> (feltcat)
Ali Abdel-Qader <abdelqaderali@protonmail.com> Ali Abdel-Qader <abdelqaderali@protonmail.com> (thrifty-txt)
Jack Karamanian <karamanian.jack@gmail.com> Jack Karamanian <karamanian.jack@gmail.com>
Mikko Rasa <tdb@tdb.fi> (DataBeaver) Mikko Rasa <tdb@tdb.fi> (DataBeaver)
Omar Pakker <Omar007@users.noreply.github.com> (Omar007) Omar Pakker <Omar007@users.noreply.github.com> (Omar007)

View File

@ -103,7 +103,7 @@ bool x11CBEventThread(const XEvent xe)
return false; return false;
} }
bool x11CBInit() bool x11CBInit(void)
{ {
x11cb.aCurSelection = BadValue; x11cb.aCurSelection = BadValue;
for(int i = 0; i < LG_CLIPBOARD_DATA_NONE; ++i) for(int i = 0; i < LG_CLIPBOARD_DATA_NONE; ++i)

View File

@ -458,7 +458,7 @@ void app_handleMouseRelative(double normx, double normy,
// cursor warp support. Instead, we attempt a best-effort emulation which works // cursor warp support. Instead, we attempt a best-effort emulation which works
// with a 1:1 mouse movement patch applied in the guest. For anything fancy, use // with a 1:1 mouse movement patch applied in the guest. For anything fancy, use
// capture mode. // capture mode.
void app_handleMouseBasic() void app_handleMouseBasic(void)
{ {
/* do not pass mouse events to the guest if we do not have focus */ /* do not pass mouse events to the guest if we do not have focus */
if (!g_cursor.guest.valid || !g_state.haveSrcSize || !g_state.focused || if (!g_cursor.guest.valid || !g_state.haveSrcSize || !g_state.focused ||
@ -495,7 +495,7 @@ void app_handleMouseBasic()
DEBUG_ERROR("failed to send mouse motion message"); DEBUG_ERROR("failed to send mouse motion message");
} }
void app_resyncMouseBasic() void app_resyncMouseBasic(void)
{ {
if (!g_cursor.guest.valid) if (!g_cursor.guest.valid)
return; return;