Force an error when a function prototype is missing
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Mon, 27 Oct 2008 17:29:13 +0000 (19:29 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Mon, 27 Oct 2008 17:29:13 +0000 (19:29 +0200)
If someone understands the stochastic process whereby GCC decides to
apply this function or not, please let me know.

configure.ac

index 0bb57b6..8cd1f77 100644 (file)
@@ -933,7 +933,7 @@ if test "${ac_cv_c_ntohl_sys_param_h}" != "no"; then
 fi
 CFLAGS="${CFLAGS_save}"
 
-RDC_PROG_CC_WFLAGS([all extra sign-compare undef pointer-arith bad-function-cast cast-align write-strings missing-prototypes volatile-register-var])
+RDC_PROG_CC_WFLAGS([all extra sign-compare undef pointer-arith bad-function-cast cast-align write-strings missing-prototypes volatile-register-var error-implicit-function-declaration])
 RDC_PROG_CC_FLAGS_IFELSE([-pipe])
 
 dnl Check for various optimization flags