diff mbox series

[FFmpeg-devel] avdevice/fbdev_common: Make declaration proper prototype

Message ID AS8P250MB07448BA9864E645D4DE6B8D58FFCA@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 81afd4652b727a91a3b5cbd8d9778a9acc1b1cd8
Headers show
Series [FFmpeg-devel] avdevice/fbdev_common: Make declaration proper prototype | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 25, 2023, 8:37 p.m. UTC
Fixes a -Wstrict-prototypes warning from Clang 15.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavdevice/fbdev_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Rheinhardt Sept. 27, 2023, 7:54 p.m. UTC | #1
Andreas Rheinhardt:
> Fixes a -Wstrict-prototypes warning from Clang 15.
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavdevice/fbdev_common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavdevice/fbdev_common.c b/libavdevice/fbdev_common.c
> index 47e7edde5c..2c70abb1f0 100644
> --- a/libavdevice/fbdev_common.c
> +++ b/libavdevice/fbdev_common.c
> @@ -62,7 +62,7 @@ enum AVPixelFormat ff_get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *varin
>      return AV_PIX_FMT_NONE;
>  }
>  
> -const char* ff_fbdev_default_device()
> +const char *ff_fbdev_default_device(void)
>  {
>      const char *dev = getenv("FRAMEBUFFER");
>      if (!dev)

Will apply this tomorrow unless there are objections.

- Andreas
diff mbox series

Patch

diff --git a/libavdevice/fbdev_common.c b/libavdevice/fbdev_common.c
index 47e7edde5c..2c70abb1f0 100644
--- a/libavdevice/fbdev_common.c
+++ b/libavdevice/fbdev_common.c
@@ -62,7 +62,7 @@  enum AVPixelFormat ff_get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *varin
     return AV_PIX_FMT_NONE;
 }
 
-const char* ff_fbdev_default_device()
+const char *ff_fbdev_default_device(void)
 {
     const char *dev = getenv("FRAMEBUFFER");
     if (!dev)