[tracker-miners/sam/warning-format-security] meson: Enable -Wformat-security
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/warning-format-security] meson: Enable -Wformat-security
- Date: Wed, 12 Sep 2018 11:54:48 +0000 (UTC)
commit c900703c9af5cdbe4f354a37cdbac0aef66a86a4
Author: Sam Thursfield <sam afuera me uk>
Date: Mon Sep 3 14:40:34 2018 +0200
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.
meson.build | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/meson.build b/meson.build
index 645817fc1..35886167f 100644
--- a/meson.build
+++ b/meson.build
@@ -115,6 +115,8 @@ if have_tracker_miner_rss
endif
endif
+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')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]