enabled and fixed -Wmissing-prototypes compiler warnings

Co-authored-by: matt335672 <30179339+matt335672@users.noreply.github.com>
This commit is contained in:
firewave
2023-10-20 17:14:47 +02:00
parent f92076a2e7
commit fb9c175b11
40 changed files with 183 additions and 144 deletions
+11 -11
View File
@@ -52,7 +52,7 @@ lib_send_copy(struct mod *mod, struct stream *s)
/******************************************************************************/
/* return error */
int
static int
lib_mod_start(struct mod *mod, int w, int h, int bpp)
{
LOG_DEVEL(LOG_LEVEL_TRACE, "in lib_mod_start");
@@ -147,7 +147,7 @@ lib_data_in(struct trans *trans)
/******************************************************************************/
/* return error */
int
static int
lib_mod_connect(struct mod *mod)
{
int error;
@@ -257,7 +257,7 @@ lib_mod_connect(struct mod *mod)
/******************************************************************************/
/* return error */
int
static int
lib_mod_event(struct mod *mod, int msg, tbus param1, tbus param2,
tbus param3, tbus param4)
{
@@ -1230,7 +1230,7 @@ process_server_paint_rect_shmem_ex(struct mod *amod, struct stream *s)
/******************************************************************************/
/* return error */
int
static int
process_server_egfx_shmfd(struct mod *amod, struct stream *s)
{
char *data;
@@ -1814,7 +1814,7 @@ lib_mod_process_message(struct mod *mod, struct stream *s)
/******************************************************************************/
/* return error */
int
static int
lib_mod_signal(struct mod *mod)
{
// no-op
@@ -1823,7 +1823,7 @@ lib_mod_signal(struct mod *mod)
/******************************************************************************/
/* return error */
int
static int
lib_mod_end(struct mod *mod)
{
if (mod->screen_shmem_pixels != 0)
@@ -1836,7 +1836,7 @@ lib_mod_end(struct mod *mod)
/******************************************************************************/
/* return error */
int
static int
lib_mod_set_param(struct mod *mod, const char *name, const char *value)
{
if (g_strcasecmp(name, "username") == 0)
@@ -1865,7 +1865,7 @@ lib_mod_set_param(struct mod *mod, const char *name, const char *value)
/******************************************************************************/
/* return error */
int
static int
lib_mod_get_wait_objs(struct mod *mod, tbus *read_objs, int *rcount,
tbus *write_objs, int *wcount, int *timeout)
{
@@ -1882,7 +1882,7 @@ lib_mod_get_wait_objs(struct mod *mod, tbus *read_objs, int *rcount,
/******************************************************************************/
/* return error */
int
static int
lib_mod_check_wait_objs(struct mod *mod)
{
int rv;
@@ -1905,7 +1905,7 @@ lib_mod_check_wait_objs(struct mod *mod)
/******************************************************************************/
/* return error */
int
static int
lib_mod_frame_ack(struct mod *amod, int flags, int frame_id)
{
LOG_DEVEL(LOG_LEVEL_TRACE,
@@ -1916,7 +1916,7 @@ lib_mod_frame_ack(struct mod *amod, int flags, int frame_id)
/******************************************************************************/
/* return error */
int
static int
lib_mod_suppress_output(struct mod *amod, int suppress,
int left, int top, int right, int bottom)
{