Commit f31407eb authored by Rafaël Carré's avatar Rafaël Carré

warn about unused parameters, detect plugins with undefined symbols (disabled only on FreeBSD)

parent 75968f5c
...@@ -963,15 +963,17 @@ if test "${ac_cv_c_ntohl_sys_param_h}" != "no"; then ...@@ -963,15 +963,17 @@ if test "${ac_cv_c_ntohl_sys_param_h}" != "no"; then
fi fi
CFLAGS="${CFLAGS_save}" CFLAGS="${CFLAGS_save}"
RDC_PROG_CC_WFLAGS([all extra no-unused-parameter 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])
RDC_PROG_CC_FLAGS_IFELSE([-pipe]) RDC_PROG_CC_FLAGS_IFELSE([-pipe])
dnl This helps detect broken plugins with undefined symbols dnl This helps detect broken plugins with undefined symbols
dnl Better fail loudly at build-time than silenty at run-time. dnl Better fail loudly at build-time than silenty at run-time.
dnl Unfortunately, this sucks on FreeBSD (won't even link with -lc) dnl Unfortunately, this sucks on FreeBSD (won't even link with -lc)
dnl RDC_PROG_LINK_FLAGS_IFELSE([-Wl,-z,defs], [ if test `uname -s` != FreeBSD; then
dnl VLC_ADD_LDFLAGS([plugin],[-Wl,-z,defs]) RDC_PROG_LINK_FLAGS_IFELSE([-Wl,-z,defs], [
dnl ]) VLC_ADD_LDFLAGS([plugin],[-Wl,-z,defs])
])
fi
dnl Check for various optimization flags dnl Check for various optimization flags
AC_CACHE_CHECK([if \$CC accepts -Os], AC_CACHE_CHECK([if \$CC accepts -Os],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment