mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing code.
Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
16e3b0b3e6
commit
51066987cf
@ -93,6 +93,14 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef av_uninit
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
# define av_uninit(x) x=x
|
||||||
|
#else
|
||||||
|
# define av_uninit(x) x
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
//rounded division & shift
|
//rounded division & shift
|
||||||
#define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
|
#define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
|
||||||
/* assume b>0 */
|
/* assume b>0 */
|
||||||
|
Loading…
Reference in New Issue
Block a user