Commit 7ca02223 authored by Niels Möller's avatar Niels Möller
Browse files

(LSH_GCC_FUNCTION_NAME): Deleted use of this macro.

Deleted the checks for the sizes of short, int and long. Use
-Wno-pointer-sign when compiling with gcc-4.x.

Rev: configure.ac:1.61
parent dc4a1588
...@@ -522,10 +522,6 @@ AC_HEADER_TIME ...@@ -522,10 +522,6 @@ AC_HEADER_TIME
# Needed by the supplied memcmp.c # Needed by the supplied memcmp.c
AC_C_BIGENDIAN AC_C_BIGENDIAN
AC_CHECK_SIZEOF(short, 2)
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
# FIXME: We should check that a pid_t fits in an int # FIXME: We should check that a pid_t fits in an int
# Checks for library functions. # Checks for library functions.
...@@ -744,7 +740,6 @@ if test x$lsh_cv_sys_unix98_ptys = xyes; then ...@@ -744,7 +740,6 @@ if test x$lsh_cv_sys_unix98_ptys = xyes; then
fi fi
LSH_GCC_ATTRIBUTES LSH_GCC_ATTRIBUTES
LSH_GCC_FUNCTION_NAME
AC_MSG_CHECKING(for BSD pty names) AC_MSG_CHECKING(for BSD pty names)
...@@ -795,6 +790,10 @@ if test x$GCC = xyes ; then ...@@ -795,6 +790,10 @@ if test x$GCC = xyes ; then
else else
CFLAGS="$CFLAGS -ggdb3" CFLAGS="$CFLAGS -ggdb3"
fi fi
# FIXME: It would be better to actually test if this option works and/or is needed.
if "$CC" --version | grep 'gcc.* 4\.' 1>/dev/null 2>&1; then
CFLAGS="$CFLAGS -Wno-pointer-sign"
fi
CFLAGS="$CFLAGS -Wall -W \ CFLAGS="$CFLAGS -Wall -W \
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
-Wpointer-arith -Wbad-function-cast -Wnested-externs" -Wpointer-arith -Wbad-function-cast -Wnested-externs"
......
Supports Markdown
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