comparison configure.in @ 2300:e2fdc9035c5b

[xemacs-hg @ 2004-09-22 11:40:40 by malcolmp] Unused parameter and variables warnings apply to GCC 3 or greater.
author malcolmp
date Wed, 22 Sep 2004 11:41:02 +0000
parents 04bc9d2f42c7
children e219f63b9c24
comparison
equal deleted inserted replaced
2299:a640f9c13696 2300:e2fdc9035c5b
2053 esac 2053 esac
2054 elif test "$CC" = "xlc"; then 2054 elif test "$CC" = "xlc"; then
2055 cflags_warning="-qinfo" 2055 cflags_warning="-qinfo"
2056 elif test "$GCC" = "yes"; then 2056 elif test "$GCC" = "yes"; then
2057 cflags_warning="-Wall -Wno-switch -Winline -Wmissing-prototypes" 2057 cflags_warning="-Wall -Wno-switch -Winline -Wmissing-prototypes"
2058 cflags_warning="$cflags_warning -Wunused-parameter -Wunused-variable"
2059 2058
2060 dnl Yuck, bad compares have been worth at least 3 crashes! 2059 dnl Yuck, bad compares have been worth at least 3 crashes!
2061 cflags_warning="$cflags_warning -Wsign-compare" 2060 cflags_warning="$cflags_warning -Wsign-compare"
2062 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes" 2061 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes"
2063 if test "$__GCC3" = "yes"; then 2062 if test "$__GCC3" = "yes"; then
2064 cflags_warning="$cflags_warning -Wpacked" 2063 cflags_warning="$cflags_warning -Wpacked -Wunused-parameter -Wunused-variable"
2065 fi 2064 fi
2066 dnl glibc is intentionally not `-Wpointer-arith'-clean. 2065 dnl glibc is intentionally not `-Wpointer-arith'-clean.
2067 dnl Ulrich Drepper has rejected patches to fix the glibc header files. 2066 dnl Ulrich Drepper has rejected patches to fix the glibc header files.
2068 test "$have_glibc" != "yes" && \ 2067 test "$have_glibc" != "yes" && \
2069 cflags_warning="$cflags_warning -Wpointer-arith" 2068 cflags_warning="$cflags_warning -Wpointer-arith"