mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[host] build with -Wstrict-prototypes
This commit is contained in:
parent
91d6e3a82a
commit
eeefc15e46
@ -39,6 +39,7 @@ add_compile_options(
|
|||||||
"-Wall"
|
"-Wall"
|
||||||
"-Werror"
|
"-Werror"
|
||||||
"-Wfatal-errors"
|
"-Wfatal-errors"
|
||||||
|
"$<$<COMPILE_LANGUAGE:C>:-Wstrict-prototypes>"
|
||||||
"-ffast-math"
|
"-ffast-math"
|
||||||
"-fdata-sections"
|
"-fdata-sections"
|
||||||
"-ffunction-sections"
|
"-ffunction-sections"
|
||||||
|
@ -96,21 +96,21 @@ typedef struct CaptureInterface
|
|||||||
{
|
{
|
||||||
const char * shortName;
|
const char * shortName;
|
||||||
const bool asyncCapture;
|
const bool asyncCapture;
|
||||||
const char * (*getName )();
|
const char * (*getName )(void);
|
||||||
void (*initOptions )();
|
void (*initOptions )(void);
|
||||||
|
|
||||||
bool(*create)(
|
bool(*create)(
|
||||||
CaptureGetPointerBuffer getPointerBufferFn,
|
CaptureGetPointerBuffer getPointerBufferFn,
|
||||||
CapturePostPointerBuffer postPointerBufferFn
|
CapturePostPointerBuffer postPointerBufferFn
|
||||||
);
|
);
|
||||||
|
|
||||||
bool (*init )();
|
bool (*init )(void);
|
||||||
bool (*start )();
|
bool (*start )(void);
|
||||||
void (*stop )();
|
void (*stop )(void);
|
||||||
bool (*deinit )();
|
bool (*deinit )(void);
|
||||||
void (*free )();
|
void (*free )(void);
|
||||||
|
|
||||||
CaptureResult (*capture )();
|
CaptureResult (*capture )(void);
|
||||||
CaptureResult (*waitFrame )(CaptureFrame * frame, const size_t maxFrameSize);
|
CaptureResult (*waitFrame )(CaptureFrame * frame, const size_t maxFrameSize);
|
||||||
CaptureResult (*getFrame )(FrameBuffer * frame, const unsigned int height, int frameIndex);
|
CaptureResult (*getFrame )(FrameBuffer * frame, const unsigned int height, int frameIndex);
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ static int pointerThread(void * unused);
|
|||||||
|
|
||||||
// forwards
|
// forwards
|
||||||
|
|
||||||
static bool xcb_deinit();
|
static bool xcb_deinit(void);
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ static struct pipewire * this = NULL;
|
|||||||
|
|
||||||
// forwards
|
// forwards
|
||||||
|
|
||||||
static bool pipewire_deinit();
|
static bool pipewire_deinit(void);
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ typedef HRESULT (*D3D12GetDebugInterface_t)(
|
|||||||
void **ppvDebug
|
void **ppvDebug
|
||||||
);
|
);
|
||||||
|
|
||||||
static void d3d12_free();
|
static void d3d12_free(void);
|
||||||
|
|
||||||
static bool d3d12_create(struct DXGIInterface * intf)
|
static bool d3d12_create(struct DXGIInterface * intf)
|
||||||
{
|
{
|
||||||
|
@ -57,8 +57,8 @@ static struct DXGICopyBackend * backends[] = {
|
|||||||
|
|
||||||
// forwards
|
// forwards
|
||||||
|
|
||||||
static bool dxgi_deinit();
|
static bool dxgi_deinit(void);
|
||||||
static CaptureResult dxgi_releaseFrame();
|
static CaptureResult dxgi_releaseFrame(void);
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
|
|
||||||
|
@ -48,8 +48,8 @@ enum DiffMapBlockSize
|
|||||||
DIFFMAP_BLOCKSIZE_64X64
|
DIFFMAP_BLOCKSIZE_64X64
|
||||||
};
|
};
|
||||||
|
|
||||||
bool NvFBCInit();
|
bool NvFBCInit(void);
|
||||||
void NvFBCFree();
|
void NvFBCFree(void);
|
||||||
|
|
||||||
bool NvFBCToSysCreate(
|
bool NvFBCToSysCreate(
|
||||||
int adapterIndex,
|
int adapterIndex,
|
||||||
|
@ -21,4 +21,4 @@
|
|||||||
typedef void (*MouseHookFn)(int x, int y);
|
typedef void (*MouseHookFn)(int x, int y);
|
||||||
|
|
||||||
void mouseHook_install(MouseHookFn callback);
|
void mouseHook_install(MouseHookFn callback);
|
||||||
void mouseHook_remove();
|
void mouseHook_remove(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user