summaryrefslogtreecommitdiff
path: root/libavutil/common.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-02-09 21:47:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-02-09 21:47:05 +0000
commit51066987cf05a7cad567e965fa637e28f9d902c5 (patch)
tree5261fabea458954c78c6673bc070748fa1b17649 /libavutil/common.h
parent16e3b0b3e6f89d40db9207b31845bec5a3a46e78 (diff)
av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing code.
Originally committed as revision 17104 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/common.h')
-rw-r--r--libavutil/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index 3005b96d47..bbcca7575f 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -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 */