diff options
author | Magnus Granberg <zorry@gentoo.org> | 2016-12-25 22:20:41 +0000 |
---|---|---|
committer | Magnus Granberg <zorry@gentoo.org> | 2016-12-25 22:20:41 +0000 |
commit | 65c6d25f20b37906d35a4f7b999a923a1621f139 (patch) | |
tree | 9cf704a91c3f3ae05317e06879ee35ceaa1d3ef2 /6.3.0/gentoo/11_all_default-warn-format-security.patch | |
parent | add default ssp support for gcc 6.2.0 (diff) | |
download | gcc-patches-65c6d25f20b37906d35a4f7b999a923a1621f139.tar.gz gcc-patches-65c6d25f20b37906d35a4f7b999a923a1621f139.tar.bz2 gcc-patches-65c6d25f20b37906d35a4f7b999a923a1621f139.zip |
add gcc-6.3 patchset
Diffstat (limited to '6.3.0/gentoo/11_all_default-warn-format-security.patch')
-rw-r--r-- | 6.3.0/gentoo/11_all_default-warn-format-security.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/6.3.0/gentoo/11_all_default-warn-format-security.patch b/6.3.0/gentoo/11_all_default-warn-format-security.patch new file mode 100644 index 0000000..8994654 --- /dev/null +++ b/6.3.0/gentoo/11_all_default-warn-format-security.patch @@ -0,0 +1,22 @@ +Enable -Wformat and -Wformat-security by default. + +--- a/gcc/c-family/c.opt 2016-03-23 18:51:56.000000000 +0100 ++++ b/gcc/c-family/c.opt 2016-04-28 23:45:54.063351272 +0200 +@@ -459,7 +459,7 @@ C ObjC C++ ObjC++ Var(warn_format_nonlit + Warn about format strings that are not literals. + + Wformat-security +-C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) ++C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) + Warn about possible security problems with format functions. + + Wformat-signedness +@@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l + Warn about zero-length formats. + + Wformat= +-C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) ++C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) + Warn about printf/scanf/strftime/strfmon format string anomalies. + + Wignored-qualifiers |