diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 09fd76a2..f4dbcad5 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -39,6 +39,7 @@ add_compile_options( "-Wall" "-Werror" "-Wfatal-errors" + "$<$:-Wstrict-prototypes>" "-ffast-math" "-fdata-sections" "-ffunction-sections" diff --git a/host/include/interface/capture.h b/host/include/interface/capture.h index fff9831d..97fe1d11 100644 --- a/host/include/interface/capture.h +++ b/host/include/interface/capture.h @@ -96,21 +96,21 @@ typedef struct CaptureInterface { const char * shortName; const bool asyncCapture; - const char * (*getName )(); - void (*initOptions )(); + const char * (*getName )(void); + void (*initOptions )(void); bool(*create)( CaptureGetPointerBuffer getPointerBufferFn, CapturePostPointerBuffer postPointerBufferFn ); - bool (*init )(); - bool (*start )(); - void (*stop )(); - bool (*deinit )(); - void (*free )(); + bool (*init )(void); + bool (*start )(void); + void (*stop )(void); + bool (*deinit )(void); + void (*free )(void); - CaptureResult (*capture )(); + CaptureResult (*capture )(void); CaptureResult (*waitFrame )(CaptureFrame * frame, const size_t maxFrameSize); CaptureResult (*getFrame )(FrameBuffer * frame, const unsigned int height, int frameIndex); } diff --git a/host/platform/Linux/capture/XCB/src/xcb.c b/host/platform/Linux/capture/XCB/src/xcb.c index 0e548d3a..e39b8595 100644 --- a/host/platform/Linux/capture/XCB/src/xcb.c +++ b/host/platform/Linux/capture/XCB/src/xcb.c @@ -64,7 +64,7 @@ static int pointerThread(void * unused); // forwards -static bool xcb_deinit(); +static bool xcb_deinit(void); // implementation diff --git a/host/platform/Linux/capture/pipewire/src/pipewire.c b/host/platform/Linux/capture/pipewire/src/pipewire.c index c988f47f..2a9e2049 100644 --- a/host/platform/Linux/capture/pipewire/src/pipewire.c +++ b/host/platform/Linux/capture/pipewire/src/pipewire.c @@ -56,7 +56,7 @@ static struct pipewire * this = NULL; // forwards -static bool pipewire_deinit(); +static bool pipewire_deinit(void); // implementation diff --git a/host/platform/Windows/capture/DXGI/src/d3d12.c b/host/platform/Windows/capture/DXGI/src/d3d12.c index f9bff7bc..a9096131 100644 --- a/host/platform/Windows/capture/DXGI/src/d3d12.c +++ b/host/platform/Windows/capture/DXGI/src/d3d12.c @@ -79,7 +79,7 @@ typedef HRESULT (*D3D12GetDebugInterface_t)( void **ppvDebug ); -static void d3d12_free(); +static void d3d12_free(void); static bool d3d12_create(struct DXGIInterface * intf) { diff --git a/host/platform/Windows/capture/DXGI/src/dxgi.c b/host/platform/Windows/capture/DXGI/src/dxgi.c index df035c81..9202d340 100644 --- a/host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/host/platform/Windows/capture/DXGI/src/dxgi.c @@ -57,8 +57,8 @@ static struct DXGICopyBackend * backends[] = { // forwards -static bool dxgi_deinit(); -static CaptureResult dxgi_releaseFrame(); +static bool dxgi_deinit(void); +static CaptureResult dxgi_releaseFrame(void); // implementation diff --git a/host/platform/Windows/capture/NVFBC/src/wrapper.h b/host/platform/Windows/capture/NVFBC/src/wrapper.h index ca410c06..d5605a84 100644 --- a/host/platform/Windows/capture/NVFBC/src/wrapper.h +++ b/host/platform/Windows/capture/NVFBC/src/wrapper.h @@ -48,8 +48,8 @@ enum DiffMapBlockSize DIFFMAP_BLOCKSIZE_64X64 }; -bool NvFBCInit(); -void NvFBCFree(); +bool NvFBCInit(void); +void NvFBCFree(void); bool NvFBCToSysCreate( int adapterIndex, @@ -95,4 +95,4 @@ CaptureResult NvFBCToSysGetCursor(NvFBCHandle handle, CapturePointer * pointer, #ifdef __cplusplus } -#endif \ No newline at end of file +#endif diff --git a/host/platform/Windows/include/windows/mousehook.h b/host/platform/Windows/include/windows/mousehook.h index 61641c1f..135f7f5b 100644 --- a/host/platform/Windows/include/windows/mousehook.h +++ b/host/platform/Windows/include/windows/mousehook.h @@ -21,4 +21,4 @@ typedef void (*MouseHookFn)(int x, int y); void mouseHook_install(MouseHookFn callback); -void mouseHook_remove(); \ No newline at end of file +void mouseHook_remove(void);