osdep: work around Coverity parsing errors
Coverity does not like the new _Float* types that are used by recent glibc, and croaks on every single file that includes stdlib.h. Add dummy typedefs to please it. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
178003ea49
commit
a1a98357e3
@ -33,6 +33,21 @@
|
|||||||
#else
|
#else
|
||||||
#include "exec/poison.h"
|
#include "exec/poison.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __COVERITY__
|
||||||
|
/* Coverity does not like the new _Float* types that are used by
|
||||||
|
* recent glibc, and croaks on every single file that includes
|
||||||
|
* stdlib.h. These typedefs are enough to please it.
|
||||||
|
*
|
||||||
|
* Note that these fix parse errors so they cannot be placed in
|
||||||
|
* scripts/coverity-model.c.
|
||||||
|
*/
|
||||||
|
typedef float _Float32;
|
||||||
|
typedef double _Float32x;
|
||||||
|
typedef double _Float64;
|
||||||
|
typedef __float80 _Float64x;
|
||||||
|
typedef __float128 _Float128;
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "qemu/compiler.h"
|
#include "qemu/compiler.h"
|
||||||
|
|
||||||
/* Older versions of C++ don't get definitions of various macros from
|
/* Older versions of C++ don't get definitions of various macros from
|
||||||
|
Loading…
Reference in New Issue
Block a user