Commit c900703c authored by Sam Thursfield's avatar Sam Thursfield

meson: Enable -Wformat-security

This warning is disabled by default at warning level 1.

Multiple distros are building Tracker with -Werror=format-security and
discovering regressions, we have had reports from Debian, Fedora and
NixOS so far, so let's enable it by default.
parent 25900d6e
Pipeline #28438 passed with stage
in 5 minutes and 41 seconds
......@@ -115,6 +115,8 @@ if have_tracker_miner_rss
add_project_arguments('-Wformat', '-Wformat-security', language: 'c')
# There are various gchar vs. unsigned char warnings that occur in extract
# modules, it's not worth adding casts everywhere so we disable the warning.
add_project_arguments('-Wno-pointer-sign', language: 'c')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment