diff options
author | Johann <johannkoenig@google.com> | 2017-01-31 15:18:40 -0800 |
---|---|---|
committer | Johann Koenig <johannkoenig@google.com> | 2017-02-14 00:56:08 +0000 |
commit | 8a1fb4027345c7f36ef02bea969484018ee0693b (patch) | |
tree | a9ffca3c911fcf097215b824fd2fb914978aa8e2 /vpx_ports | |
parent | 5cc0a364ae9bd3e3ac6248f85283cf0cfa9ab07f (diff) | |
download | libvpx-8a1fb4027345c7f36ef02bea969484018ee0693b.tar libvpx-8a1fb4027345c7f36ef02bea969484018ee0693b.tar.gz libvpx-8a1fb4027345c7f36ef02bea969484018ee0693b.tar.bz2 libvpx-8a1fb4027345c7f36ef02bea969484018ee0693b.zip |
Remove UNINITIALIZED_IS_SAFE
Where clang static analysis or gcc -Wmaybe-uninitialized warns of
uninitialized values, assign 0 to ints, MB_MODE_COUNT to
MB_PREDICTION_MODE, and B_MODE_COUNT to B_PREDICTION_MODE.
Assert that the modes have been changed from the invalid value by
the end of the function.
Change-Id: Ib11e1ffb08f0a6fe4b6c6729dc93b83b1c4b6350
Diffstat (limited to 'vpx_ports')
-rw-r--r-- | vpx_ports/mem.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/vpx_ports/mem.h b/vpx_ports/mem.h index 2d49b7a06..49954e904 100644 --- a/vpx_ports/mem.h +++ b/vpx_ports/mem.h @@ -23,16 +23,6 @@ #define DECLARE_ALIGNED(n, typ, val) typ val #endif -/* Indicates that the usage of the specified variable has been audited to assure - * that it's safe to use uninitialized. Silences 'may be used uninitialized' - * warnings on gcc. - */ -#if defined(__GNUC__) && __GNUC__ -#define UNINITIALIZED_IS_SAFE(x) x = x -#else -#define UNINITIALIZED_IS_SAFE(x) x -#endif - #if HAVE_NEON && defined(_MSC_VER) #define __builtin_prefetch(x) #endif |