[MPlayer-cvslog] r33911 - trunk/stream/cache2.c

Nicolas George nicolas.george at normalesup.org
Mon Jul 25 20:45:46 CEST 2011


Le septidi 7 thermidor, an CCXIX, Reimar Döffinger a écrit :
> > +    struct sigaction sa = { { 0 } };
> This is wrong, POSIX does not require it to start with or even contain
> a struct or union.
> Thus your code potentially will not compile on some systems.
> If you want to get rid of the warning you'll have to use memset.

What about this:

struct sigaction sa = { .sa_flags = 0 };

? sa_flags is required to be present and an int.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20110725/3acd00de/attachment.asc>


More information about the MPlayer-cvslog mailing list