[FFmpeg-cvslog] r17104 - trunk/libavutil/common.h

michael subversion
Mon Feb 9 22:47:06 CET 2009


Author: michael
Date: Mon Feb  9 22:47:05 2009
New Revision: 17104

Log:
av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing code.

Modified:
   trunk/libavutil/common.h

Modified: trunk/libavutil/common.h
==============================================================================
--- trunk/libavutil/common.h	Mon Feb  9 22:34:20 2009	(r17103)
+++ trunk/libavutil/common.h	Mon Feb  9 22:47:05 2009	(r17104)
@@ -93,6 +93,14 @@
 #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 */




More information about the ffmpeg-cvslog mailing list