diff options
author | Sergei Trofimovich <slyfox@inbox.ru> | 2017-05-30 08:51:42 +0100 |
---|---|---|
committer | Doug Freed <dwfreed@mtu.edu> | 2017-05-30 03:51:42 -0400 |
commit | 688566c535111a141f77caf88db12a4338544f7b (patch) | |
tree | a0b1c4919c778c2e2e7904b45b710e96721b4761 /mk | |
parent | 7185e242ffaa8cd1b672fe4726502a196fd779c2 (diff) |
mk/cc.mk: make implicit function declarations fatal (#136)
Avoids issues with missing prototypes causing truncation of pointers.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/cc.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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, |