comparison configure @ 109655:b862722704f6

More undeclared function fixes and add -Wimplicit-function-declaration. If a function returns Lisp_Object it must be declared, otherwise on a 64-bit system, it will return just 32 bits (int). * configure.in: Use -Wimplicit-function-declaration if compiler supports it. * src/keyboard.h (poll_for_input_1): Unconditionally declare. * src/xterm.h (x_get_focus_frame): Declare.
author Jan D <jan.h.d@swipnet.se>
date Fri, 06 Aug 2010 13:28:59 +0200
parents 9cfca8c9fb07
children d50010a75cee
comparison
equal deleted inserted replaced
109654:d349244d7b08 109655:b862722704f6
4863 $as_echo "$has_option" >&6; } 4863 $as_echo "$has_option" >&6; }
4864 CFLAGS="$SAVE_CFLAGS" 4864 CFLAGS="$SAVE_CFLAGS"
4865 unset has_option 4865 unset has_option
4866 unset SAVE_CFLAGS 4866 unset SAVE_CFLAGS
4867 4867
4868 ### Use -Wimplicit-function-declaration if the compiler supports it
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4870 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4871 SAVE_CFLAGS="$CFLAGS"
4872 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875
4876 int
4877 main ()
4878 {
4879
4880 ;
4881 return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_compile "$LINENO"; then :
4885 has_option=yes
4886 else
4887 has_option=no
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 if test $has_option = yes; then
4891 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4894 $as_echo "$has_option" >&6; }
4895 CFLAGS="$SAVE_CFLAGS"
4896 unset has_option
4897 unset SAVE_CFLAGS
4898
4899
4868 4900
4869 4901
4870 #### Some other nice autoconf tests. 4902 #### Some other nice autoconf tests.
4871 4903
4872 ac_ext=c 4904 ac_ext=c