aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-09-07 10:46:08 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-09-07 10:55:43 +0000
commit2c8cab3670b6dfe4591ac0a4dbb3c9e30ed33356 (patch)
tree08d2b448c17a4aa81569bc81476e0a6a96091595
parent2bb699fc96e80bc2f98d88369718d2b768a53c8f (diff)
build,meson: disable float comparison warnings
We have several symbols defined as floating point numbers that identify "unknown" values, e.g. MM_LOCATION_LONGITUDE_UNKNOWN. We want to be able to compare with those values directly, even if they're floats.
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 4d09cfe7..c33f5fd7 100644
--- a/meson.build
+++ b/meson.build
@@ -82,6 +82,8 @@ cc_args = cc.get_supported_arguments([
'-Wno-cast-function-type',
# all message protocol structs are packed, never complain about it
'-Wno-packed',
+ # we use some floating point ids as unknown, so we want to compare with them
+ '-Wno-float-equal',
])
# strict flags to use in debug builds
@@ -94,7 +96,6 @@ if get_option('buildtype').contains('debug')
'-Wdouble-promotion',
'-Wduplicated-branches',
'-Wduplicated-cond',
- '-Wfloat-equal',
'-Wformat=2',
'-Wformat-nonliteral',
'-Wformat-security',