# HG changeset patch # User michael # Date 1234216025 0 # Node ID ac3fc6cb4781cb455db1a3d8ecb32857dd31b41f # Parent 396c27769b0e9afe7ad18dca7ae454bcb4351c9a av_uninit() to suppress false uninitialized warnings from gcc without deoptimizing code. diff -r 396c27769b0e -r ac3fc6cb4781 common.h --- a/common.h Sun Feb 08 21:23:15 2009 +0000 +++ b/common.h Mon Feb 09 21:47:05 2009 +0000 @@ -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 */