[FFmpeg-devel] [PATCH] all: use { 0 } for zero initializing compound data structures

wm4 nfxjfg at googlemail.com
Fri Aug 21 12:46:17 CEST 2015


On Fri, 21 Aug 2015 12:26:46 +0200
Hendrik Leppkes <h.leppkes at gmail.com> wrote:

> On Fri, Aug 21, 2015 at 11:37 AM, wm4 <nfxjfg at googlemail.com> wrote:
> > On Fri, 21 Aug 2015 08:04:36 +0200
> > Clément Bœsch <u at pkh.me> wrote:
> >
> >> On Thu, Aug 20, 2015 at 10:19:51PM -0400, Ganesh Ajjanagadde wrote:
> >> > C Standard guarantees that { 0 } will do a correct zero initialization.
> >> > We use this for consistency across the project.
> >> >
> >>
> >> See 392b4b663c450f5522f7c1442da91f7647db6bf0
> >>
> >> [...]
> >>
> >
> > These warnings go against what the C standard allows.
> 
> No reason to start causing them just for a sense of cleanlyness either, though.

True enough, gcc 5 finally fixed the bogus warning though.


More information about the ffmpeg-devel mailing list