[tracker/sam/warning-format-security] meson: Enable -Wformat-security



commit 89c71eb2176d61a43b2c33fc1313edd76aefc80d
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Sep 3 14:35:27 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 | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/meson.build b/meson.build
index f2f536644..1b985c263 100644
--- a/meson.build
+++ b/meson.build
@@ -50,8 +50,11 @@ uuid = cc.find_library('uuid')
 # 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')
+
 add_project_arguments('-DTRACKER_COMPILATION', language: 'c')
 
+add_project_arguments('-Wformat-security', language: 'c')
+
 enable_fts = get_option('fts')
 
 have_network_manager = false


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]