[FFmpeg-devel] [PATCH V3 1/5] libavdevice/v4l2.c: fix build warning for [-Wformat-truncation=]

Guo, Yejun yejun.guo at intel.com
Mon Mar 1 04:12:27 EET 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of Nicolas
> George
> Sent: 2021年2月28日 19:45
> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH V3 1/5] libavdevice/v4l2.c: fix build
> warning for [-Wformat-truncation=]
> 
> Guo, Yejun (12021-02-27):
> > 'man readdir' on my system shows that it is d_name[256], see below.
> 
> man tells you what your particular system does right now, assuming the man
> page is up-to-date. It does not tell you if your system will change tomorrow,
> nor what other system do.
> 
> > agree, and maybe we can just let this build warning there.
> 
> In the long run, better disable it. We have check_disable_warning in configure,
> so it is probably a one line patch.

thanks for the advice, we might don't disable it, because the disabling will no longer
remind the developers of this issue existing, this is another comment. thanks.



More information about the ffmpeg-devel mailing list