2017-06-14 17:10:21 +00:00
|
|
|
Enable -Wformat and -Wformat-security by default.
|
|
|
|
|
2018-09-27 17:15:08 +00:00
|
|
|
--- 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.
|
2017-06-14 17:10:21 +00:00
|
|
|
|
|
|
|
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)
|
2018-09-27 17:15:08 +00:00
|
|
|
Warn about possible security problems with format functions.
|
2017-06-14 17:10:21 +00:00
|
|
|
|
2018-09-27 17:15:08 +00:00
|
|
|
Wformat-signedness
|
|
|
|
@@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l
|
|
|
|
Warn about zero-length formats.
|
2017-06-14 17:10:21 +00:00
|
|
|
|
|
|
|
Wformat=
|
2018-09-27 17:15:08 +00:00
|
|
|
-C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2)
|
|
|
|
+C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2)
|
|
|
|
Warn about printf/scanf/strftime/strfmon format string anomalies.
|
2017-06-14 17:10:21 +00:00
|
|
|
|
|
|
|
Wignored-qualifiers
|