build: add -Wstrict-prototypes to the compiler arguments

This commit is contained in:
James Almer
2021-06-20 20:24:48 +00:00
committed by Jean-Baptiste Kempf
co-authored by Jean-Baptiste Kempf
parent a336f470ed
commit 27f0b245e0
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ typedef struct rdr_info
// Cookie passed to the renderer implementation callbacks
void *cookie;
// Callback to create the renderer
void* (*create_renderer)();
void* (*create_renderer)(void);
// Callback to destroy the renderer
void (*destroy_renderer)(void *cookie);
// Callback to the render function that renders a prevously sent frame
+1 -1
View File
@@ -43,7 +43,7 @@ typedef struct renderer_priv_ctx
SDL_Texture *tex;
} Dav1dPlayRendererPrivateContext;
static void *sdl_renderer_create()
static void *sdl_renderer_create(void)
{
SDL_Window *win = dp_create_sdl_window(0);
if (win == NULL)
+1
View File
@@ -247,6 +247,7 @@ if cc.get_argument_syntax() != 'msvc'
'-Wno-maybe-uninitialized',
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
'-Wstrict-prototypes',
'-Werror=missing-prototypes',
'-Wshorten-64-to-32',
]
+1 -1
View File
@@ -27,7 +27,7 @@
#include DAV1D_TEST_HEADER
int main()
int main(void)
{
return 0;
}