diff options
author | 2015-06-25 19:50:18 +0200 | |
---|---|---|
committer | 2015-06-27 11:43:00 +0200 | |
commit | 6790076cc3e2b51f92796f2a06221126b5bc632a (patch) | |
tree | 33e70bbb7890be9463e6b07d41d53a9b5dc39456 | |
parent | 5204bea106ab1b72bd6082a53f450f63221bc703 (diff) |
Disable "-Wmaybe-unitialized" warnings. Unfortunately you can't do that
were it actually happens. (nw)
-rw-r--r-- | src/emu/netlist/solver/vector_base.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emu/netlist/solver/vector_base.h b/src/emu/netlist/solver/vector_base.h index e0ad8139296..cf2a83f8821 100644 --- a/src/emu/netlist/solver/vector_base.h +++ b/src/emu/netlist/solver/vector_base.h @@ -66,6 +66,10 @@ inline void vec_mult_scalar (const int n, const double * RESTRICT v, const doubl } } +#ifndef __clang__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif inline void vec_add_mult_scalar (const int n, const double * RESTRICT v, const double scalar, double * RESTRICT result) { for ( unsigned i = 0; i < n; i++ ) @@ -83,6 +87,9 @@ inline void vec_sub(const int n, const double * RESTRICT v1, const double * REST for ( unsigned i = 0; i < n; i++ ) result[i] = v1[i] - v2[i]; } +#ifndef __clang__ +#pragma GCC diagnostic pop +#endif inline void vec_scale (const int n, double * RESTRICT v, const double scalar) { |