1 |
On Mon, 21 Jul 2014 18:55:25 +0300 |
2 |
Samuli Suominen <ssuominen@g.o> wrote: |
3 |
|
4 |
> But only -Wformat=2 has -Wformat-security. Do we enable -Wformat with |
5 |
> 1 or 2? |
6 |
|
7 |
The gcc info pages say: |
8 |
|
9 |
`-Wformat' |
10 |
|
11 |
[...] |
12 |
|
13 |
In Gentoo, this option is enabled by default for [...] |
14 |
|
15 |
`-Wformat-security' |
16 |
|
17 |
[...] |
18 |
|
19 |
In Gentoo, this option is enabled by default for [...] |
20 |
|
21 |
|
22 |
The relevant patches are found in cvs/gentoo/src/patchsets/gcc/*/gentoo/ |
23 |
and are generally named |
24 |
|
25 |
10_all_default-fortify-source.patch |
26 |
11_all_default-warn-format-security.patch |
27 |
|
28 |
|
29 |
jer |