1 |
commit: 688566c535111a141f77caf88db12a4338544f7b |
2 |
Author: Sergei Trofimovich <slyfox <AT> inbox <DOT> ru> |
3 |
AuthorDate: Tue May 30 07:51:42 2017 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 30 07:51:42 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=688566c5 |
7 |
|
8 |
mk/cc.mk: make implicit function declarations fatal (#136) |
9 |
|
10 |
Avoids issues with missing prototypes causing truncation of pointers. |
11 |
|
12 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
13 |
|
14 |
mk/cc.mk | 3 ++- |
15 |
1 file changed, 2 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/mk/cc.mk b/mk/cc.mk |
18 |
index c9f7f355..6d47aa62 100644 |
19 |
--- a/mk/cc.mk |
20 |
+++ b/mk/cc.mk |
21 |
@@ -26,7 +26,8 @@ _CCFLAGS= -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 \ |
22 |
-Wnested-externs \ |
23 |
-Winline -Wwrite-strings -Wcast-align -Wcast-qual \ |
24 |
-Wpointer-arith \ |
25 |
- -Wdeclaration-after-statement -Wsequence-point |
26 |
+ -Wdeclaration-after-statement -Wsequence-point \ |
27 |
+ -Werror=implicit-function-declaration |
28 |
|
29 |
# We should be using -Wredundant-decls, but our library hidden proto stuff |
30 |
# gives loads of warnings. I don't fully understand it (the hidden proto, |