[thunderbird-enigmail] add -Wformat-security -Wformat -Werror=format-security option

Remi Collet remi at fedoraproject.org
Sun Jun 8 17:46:18 UTC 2014


commit 4ef0d3a5f5b986f238deb90aac390e23701cb181
Author: Remi Collet <remi at fedoraproject.org>
Date:   Sun Jun 8 19:46:07 2014 +0200

    add  -Wformat-security -Wformat -Werror=format-security option

 thunderbird-enigmail.spec |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/thunderbird-enigmail.spec b/thunderbird-enigmail.spec
index 9683096..7b757fb 100644
--- a/thunderbird-enigmail.spec
+++ b/thunderbird-enigmail.spec
@@ -247,6 +247,9 @@ cd %{tarballdir}
 # 
 MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS -fpermissive" | \
                       %{__sed} -e 's/-Wall//')
+
+MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
+
 %if %{?debug_build}
 MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
 %endif


More information about the scm-commits mailing list