av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing...
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Feb 2009 21:47:05 +0000 (21:47 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Feb 2009 21:47:05 +0000 (21:47 +0000)
Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/common.h

index 3005b96..bbcca75 100644 (file)
 #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
 #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
 /* assume b>0 */