[FFmpeg-devel] GCC 5.1 warning: -Warray-bounds
george at nsup.org
Thu Jun 4 09:45:25 CEST 2015
Le quintidi 15 prairial, an CCXXIII, Ganesh Ajjanagadde a écrit :
> 1. using av_assert0() to ensure that array access remains in bounds in
> these few cases. This could lead to performance hit.
Using av_assert1() or av_assert2() will yield a performance hit, but only
when enabled in development builds.
But I agree with Hendrik, it should only be done when the correctness of the
code is not obvious for a reasonably smart human reader. If the compiler is
not smart enough to see it, then it only means it is too early to enable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: Digital signature
More information about the ffmpeg-devel