diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-03-08 02:01:57 -0500 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-03-19 08:58:18 +0100 |
commit | 82a186567e279e1d458cb39ae78595560eb19c76 (patch) | |
tree | 2fd0cec654fd5d0c1702ad7b311aab247d0c3db5 /video/out | |
parent | 4f381f2137613054cc1fda42de74602249292f47 (diff) | |
download | mpv-82a186567e279e1d458cb39ae78595560eb19c76.tar.bz2 mpv-82a186567e279e1d458cb39ae78595560eb19c76.tar.xz |
various: fix -Wold-style-declaration warning
warning: `static' is not at beginning of declaration
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/hwdec/hwdec_aimagereader.c | 2 | ||||
-rw-r--r-- | video/out/hwdec/hwdec_cuda.c | 2 | ||||
-rw-r--r-- | video/out/hwdec/hwdec_drmprime.c | 4 | ||||
-rw-r--r-- | video/out/hwdec/hwdec_vaapi.c | 2 | ||||
-rw-r--r-- | video/out/hwdec/hwdec_vt.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/video/out/hwdec/hwdec_aimagereader.c b/video/out/hwdec/hwdec_aimagereader.c index c08f97b3c7..1aa92eea4a 100644 --- a/video/out/hwdec/hwdec_aimagereader.c +++ b/video/out/hwdec/hwdec_aimagereader.c @@ -75,7 +75,7 @@ struct priv { void (EGLAPIENTRY *EGLImageTargetTexture2DOES)(GLenum, GLeglImageOES); }; -const static struct { const char *symbol; int offset; } lib_functions[] = { +static const struct { const char *symbol; int offset; } lib_functions[] = { { "AImageReader_newWithUsage", offsetof(struct priv_owner, AImageReader_newWithUsage) }, { "AImageReader_getWindow", offsetof(struct priv_owner, AImageReader_getWindow) }, { "AImageReader_setImageListener", offsetof(struct priv_owner, AImageReader_setImageListener) }, diff --git a/video/out/hwdec/hwdec_cuda.c b/video/out/hwdec/hwdec_cuda.c index 68ad60d465..57e4fb40e3 100644 --- a/video/out/hwdec/hwdec_cuda.c +++ b/video/out/hwdec/hwdec_cuda.c @@ -57,7 +57,7 @@ int check_cu(const struct ra_hwdec *hw, CUresult err, const char *func) #define CHECK_CU(x) check_cu(hw, (x), #x) -const static cuda_interop_init interop_inits[] = { +static const cuda_interop_init interop_inits[] = { #if HAVE_GL cuda_gl_init, #endif diff --git a/video/out/hwdec/hwdec_drmprime.c b/video/out/hwdec/hwdec_drmprime.c index 55bd55e505..bf604056f3 100644 --- a/video/out/hwdec/hwdec_drmprime.c +++ b/video/out/hwdec/hwdec_drmprime.c @@ -52,7 +52,7 @@ static void uninit(struct ra_hwdec *hw) av_buffer_unref(&p->hwctx.av_device_ref); } -const static dmabuf_interop_init interop_inits[] = { +static const dmabuf_interop_init interop_inits[] = { #if HAVE_DMABUF_INTEROP_GL dmabuf_interop_gl_init, #endif @@ -72,7 +72,7 @@ const static dmabuf_interop_init interop_inits[] = { * pixel formats by name. As rpi is an important target platform for this hwdec * we don't really have the luxury of ignoring these forks. */ -const static char *forked_pix_fmt_names[] = { +static const char *forked_pix_fmt_names[] = { "rpi4_8", "rpi4_10", }; diff --git a/video/out/hwdec/hwdec_vaapi.c b/video/out/hwdec/hwdec_vaapi.c index d1cad42b1e..34b6e52b3c 100644 --- a/video/out/hwdec/hwdec_vaapi.c +++ b/video/out/hwdec/hwdec_vaapi.c @@ -124,7 +124,7 @@ static void uninit(struct ra_hwdec *hw) va_destroy(p->ctx); } -const static dmabuf_interop_init interop_inits[] = { +static const dmabuf_interop_init interop_inits[] = { #if HAVE_DMABUF_INTEROP_GL dmabuf_interop_gl_init, #endif diff --git a/video/out/hwdec/hwdec_vt.c b/video/out/hwdec/hwdec_vt.c index ab41d027cf..643ff9043f 100644 --- a/video/out/hwdec/hwdec_vt.c +++ b/video/out/hwdec/hwdec_vt.c @@ -36,7 +36,7 @@ static void uninit(struct ra_hwdec *hw) av_buffer_unref(&p->hwctx.av_device_ref); } -const static vt_interop_init interop_inits[] = { +static const vt_interop_init interop_inits[] = { #if HAVE_VIDEOTOOLBOX_GL || HAVE_IOS_GL vt_gl_init, #endif |