What is your policy about compiler warnings from successfully completing autoconf tests? Attached patch fixes one such warning, caused by having main() returning char instead of int.
A couple of c.m4 macros declare function with return type char, and then return same return value from main(). Attached patch translates character from function into int 0 or 1 to be returned from main(). - ML
diff -Nurd autoconf/lib/autoconf/c.m4 autoconf/lib/autoconf/c.m4 --- autoconf/lib/autoconf/c.m4 2008-06-17 21:41:23.000000000 +0300 +++ autoconf/lib/autoconf/c.m4 2008-06-17 22:04:53.000000000 +0300 @@ -224,7 +224,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 ();])], [return $2 ();])]) +char $2 ();])], [return $2 () ? 1 : 0])]) # AC_LANG_FUNC_LINK_TRY(C)(FUNCTION) @@ -273,7 +273,7 @@ #if defined __stub_$1 || defined __stub___$1 choke me #endif -], [return $1 ();])]) +], [return $1 () ? 1 : 0])]) # AC_LANG_BOOL_COMPILE_TRY(C)(PROLOGUE, EXPRESSION)
