mirror of
https://github.com/holub/mame
synced 2025-04-19 23:12:11 +03:00
Disable "-Wmaybe-unitialized" warnings. Unfortunately you can't do that
were it actually happens. (nw)
This commit is contained in:
parent
5204bea106
commit
6790076cc3
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user