wok-next diff gcc/stuff/patches/011_all_default-warn-format-security.patch @ rev 21726

updated firefox-official (77.0 -> 81.0)
author Hans-G?nter Theisgen
date Sun Sep 27 14:34:31 2020 +0100 (2020-09-27)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc/stuff/patches/011_all_default-warn-format-security.patch	Sun Sep 27 14:34:31 2020 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +Enable -Wformat and -Wformat-security by default.
     1.5 +
     1.6 +--- a/gcc/c-family/c.opt	2016-03-23 18:51:56.000000000 +0100
     1.7 ++++ b/gcc/c-family/c.opt	2016-04-28 23:45:54.063351272 +0200
     1.8 +@@ -459,7 +459,7 @@ C ObjC C++ ObjC++ Var(warn_format_nonlit
     1.9 + Warn about format strings that are not literals.
    1.10 + 
    1.11 + Wformat-security
    1.12 +-C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
    1.13 ++C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
    1.14 + Warn about possible security problems with format functions.
    1.15 + 
    1.16 + Wformat-signedness
    1.17 +@@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l
    1.18 + Warn about zero-length formats.
    1.19 + 
    1.20 + Wformat=
    1.21 +-C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2)
    1.22 ++C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2)
    1.23 + Warn about printf/scanf/strftime/strfmon format string anomalies.
    1.24 + 
    1.25 + Wignored-qualifiers