wok-next view gcc/stuff/patches/011_all_default-warn-format-security.patch @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | |
children |
line source
1 Enable -Wformat and -Wformat-security by default.
3 --- a/gcc/c-family/c.opt 2016-03-23 18:51:56.000000000 +0100
4 +++ b/gcc/c-family/c.opt 2016-04-28 23:45:54.063351272 +0200
5 @@ -459,7 +459,7 @@ C ObjC C++ ObjC++ Var(warn_format_nonlit
6 Warn about format strings that are not literals.
8 Wformat-security
9 -C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
10 +C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
11 Warn about possible security problems with format functions.
13 Wformat-signedness
14 @@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l
15 Warn about zero-length formats.
17 Wformat=
18 -C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2)
19 +C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2)
20 Warn about printf/scanf/strftime/strfmon format string anomalies.
22 Wignored-qualifiers