[PATCH libinput] meson.build: add more overrides for coverity

Peter Hutterer peter.hutterer at who-t.net
Wed Jun 20 00:28:06 UTC 2018


"/usr/include/math.h", line 381: error #20: identifier "_Float32" is undefined
  # define _Mdouble_		_Float32

Same for a few others. Since we don't actually need those anyway, we can just
cast those to the some close-enough sizes. We don't have stdint.h in config.h
and meson cannot have a custom #include line in the config object. So let's go
with what does the job for now.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
The extra additions are probably caused by my update to F28, but something
is wrong on the coverity side here and I'd rather #define random things 
away than not run coverity...

 meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meson.build b/meson.build
index 54c5bbe0..b650bbde 100644
--- a/meson.build
+++ b/meson.build
@@ -52,6 +52,10 @@ endif
 # be removed when coverity fixes this again.
 if get_option('coverity')
 	config_h.set('_Float128', '__uint128_t')
+	config_h.set('_Float32', 'int')
+	config_h.set('_Float32x', 'int')
+	config_h.set('_Float64', 'long')
+	config_h.set('_Float64x', 'long')
 endif
 
 # Dependencies
-- 
2.17.1



More information about the wayland-devel mailing list