mirror of
https://code.videolan.org/videolan/dav1d
synced 2026-06-11 04:03:05 +00:00
build: add -Wstrict-prototypes to the compiler arguments
This commit is contained in:
committed by
Jean-Baptiste Kempf
co-authored by
Jean-Baptiste Kempf
parent
a336f470ed
commit
27f0b245e0
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
@@ -27,7 +27,7 @@
|
||||
|
||||
#include DAV1D_TEST_HEADER
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user