=== modified file 'clients/playrtp.c' --- clients/playrtp.c 2009-04-18 13:26:04 +0000 +++ clients/playrtp.c 2009-05-02 10:12:21 +0000 @@ -324,6 +324,9 @@ pthread_cond_broadcast(&cond); pthread_mutex_unlock(&lock); } +#if HAVE_STUPID_GCC44 + return NULL; +#endif } /** @brief Background thread collecting samples === modified file 'configure.ac' --- configure.ac 2009-04-05 11:28:33 +0000 +++ configure.ac 2009-05-02 10:12:21 +0000 @@ -697,6 +697,25 @@ gcc_werror='' fi + AC_CACHE_CHECK([checking for excessively strict -Wreturn-type], + [rjk_cv_gcc44_stupidity],[ + old_CC="$CC" + if test $GCC = yes; then + CC="$CC -Wreturn-type -Werror" + fi + AC_COMPILE_IFELSE([ + static void *threadfn(void) { + for(;;) + ; + }], + [rjk_cv_gcc44_stupidity=no], + [rjk_cv_gcc44_stupidity=yes]) + CC="$old_CC" + ]) + if test $rjk_cv_gcc44_stupidity = yes; then + AC_DEFINE([HAVE_STUPID_GCC44],[1],[Define if your compiler has excessively strict -Wreturn-type]) + fi + # a reasonable default set of warnings CC="${CC} -Wall -W -Wpointer-arith -Wbad-function-cast \ -Wwrite-strings -Wmissing-prototypes \