commit:     688566c535111a141f77caf88db12a4338544f7b
Author:     Sergei Trofimovich <slyfox <AT> inbox <DOT> ru>
AuthorDate: Tue May 30 07:51:42 2017 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue May 30 07:51:42 2017 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=688566c5

mk/cc.mk: make implicit function declarations fatal (#136)

Avoids issues with missing prototypes causing truncation of pointers.

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 mk/cc.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mk/cc.mk b/mk/cc.mk
index c9f7f355..6d47aa62 100644
--- a/mk/cc.mk
+++ b/mk/cc.mk
@@ -26,7 +26,8 @@ _CCFLAGS=     -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 \
                -Wnested-externs \
                -Winline -Wwrite-strings -Wcast-align -Wcast-qual \
                -Wpointer-arith \
-               -Wdeclaration-after-statement -Wsequence-point
+               -Wdeclaration-after-statement -Wsequence-point \
+               -Werror=implicit-function-declaration
 
 # We should be using -Wredundant-decls, but our library hidden proto stuff
 # gives loads of warnings. I don't fully understand it (the hidden proto,

Reply via email to