1 |
commit: 9dd010761f134da0f84ef8a86d77825d62953fe5 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 6 09:13:14 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 6 09:25:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dd01076 |
7 |
|
8 |
toolchain.eclass: filter out -Wextra -Wstack-protector |
9 |
|
10 |
On gcc-3.x -Wextra -Wstack-protector were not yet present. |
11 |
These options are seen occasionally in users' CFLAGS. |
12 |
|
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
eclass/toolchain.eclass | 2 ++ |
16 |
1 file changed, 2 insertions(+) |
17 |
|
18 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
19 |
index e2629d40393..0e44d922ebe 100644 |
20 |
--- a/eclass/toolchain.eclass |
21 |
+++ b/eclass/toolchain.eclass |
22 |
@@ -1507,6 +1507,8 @@ gcc_do_filter_flags() { |
23 |
filter-flags -f{no-,}unit-at-a-time -f{no-,}web -mno-tls-direct-seg-refs |
24 |
filter-flags -f{no-,}stack-protector{,-all} |
25 |
filter-flags -fvisibility-inlines-hidden -fvisibility=hidden |
26 |
+ # and warning options |
27 |
+ filter-flags -Wextra -Wstack-protector |
28 |
fi |
29 |
if ! tc_version_is_at_least 4.1 ; then |
30 |
filter-flags -fdiagnostics-show-option |