mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 12:46:46 +00:00
osdep.h: Drop no-longer-needed Coverity workarounds
In commit a1a98357e3fd in 2018 we added some workarounds for Coverity not being able to handle the _Float* types introduced by recent glibc. Newer versions of the Coverity scan tools have support for these types, and will fail with errors about duplicate typedefs if we have our workaround. Remove our copy of the typedefs. Backports commit c160f17cd6f5fc3f8698b408a451149b34b1a647 from qemu
This commit is contained in:
parent
05cd02d6c6
commit
c6509498da
|
@ -32,20 +32,6 @@
|
|||
#include "config-target.h"
|
||||
#endif
|
||||
#include "qemu/compiler.h"
|
||||
#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
|
||||
|
||||
/* Older versions of C++ don't get definitions of various macros from
|
||||
* stdlib.h unless we define these macros before first inclusion of
|
||||
|
|
Loading…
Reference in a new issue