Skip to content

Commit

Permalink
osdep.h: Drop no-longer-needed Coverity workarounds
Browse files Browse the repository at this point in the history
In commit a1a9835 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.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-id: [email protected]
  • Loading branch information
pm215 committed Apr 14, 2020
1 parent 14e5526 commit c160f17
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions include/qemu/osdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,6 @@
#else
#include "exec/poison.h"
#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"

Expand Down

0 comments on commit c160f17

Please sign in to comment.