build: Enable -Wfloat-conversion by default

GLib now compiles without emitting any float conversion warnings, so
let’s keep it that way.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3405
This commit is contained in:
Philip Withnall 2024-06-28 14:44:01 +01:00
parent e35cfef509
commit 692a50b78e
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -551,6 +551,7 @@ endforeach
if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
warning_common_args = [
'-Wduplicated-branches',
'-Wfloat-conversion',
'-Wimplicit-fallthrough',
'-Wmisleading-indentation',
'-Wmissing-field-initializers',