Module: ngircd.git Branch: master Commit: 10657f88819f5caa8c43d68474dff299816b0db1 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=10657...
Author: Florian Westphal fw@strlen.de Date: Sat May 29 13:06:19 2010 +0200
configure: make implicit declarations fatal
from bugzilla #105: "ngircd-16 works great under openbsd4.7/i386, but it segfaults on openbsd4.7/amd64."
Caused by missing function prototypes and the resulting truncation of pointer to int.
Lets try to catch these bugs during compilation instead of SIGSEGV.
---
configure.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in index 6d9312d..5e90f09 100644 --- a/configure.in +++ b/configure.in @@ -542,7 +542,7 @@ AC_DEFINE_UNQUOTED(TARGET_OS, "$target_os" )
# Add additional CFLAGS, eventually specified on the command line, but after # running this configure script. Useful for "-Werror" for example. -test -n "$CFLAGS_END" && CFLAGS="$CFLAGS $CFLAGS_END" +CFLAGS="$CFLAGS -Werror=implicit-function-declaration $CFLAGS_END"
# -- Generate files --
ngircd-commits@lists.barton.de