aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-02-20 11:46:08 -0800
committerPaul Eggert2011-02-20 11:46:08 -0800
commit6cac9cb117a63296885ffce71f5cd2d944930e89 (patch)
tree1d080d9b507fbd49de863c8e55a2a4a5483ad416
parent32159fc37e0281a54dd35abb17aac7302104fd5e (diff)
downloademacs-6cac9cb117a63296885ffce71f5cd2d944930e89.tar.gz
emacs-6cac9cb117a63296885ffce71f5cd2d944930e89.zip
* configure.in (C_WARNINGS_SWITCH): Do not prepend -Wno-pointer-sign.
-rw-r--r--ChangeLog10
-rwxr-xr-xconfigure31
-rw-r--r--configure.in13
3 files changed, 10 insertions, 44 deletions
diff --git a/ChangeLog b/ChangeLog
index 07cafd1f33a..b390cfb7266 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
12011-02-20 Paul Eggert <eggert@cs.ucla.edu>
2
3 * configure.in (C_WARNINGS_SWITCH): Do not prepend -Wno-pointer-sign.
4 This undoes the 2006-01-02 change. The -Wno-pointer-sign option
5 is no longer needed, due to the recent SSDATA and related changes.
6 Perhaps -Wno-pointer-sign should also be removed from
7 nextstep/Cocoa/Emacs.xcodeproj/project.pbxproj but I have no easy
8 way to test this so I left it alone.
9 * configure: Regenerate.
10
12011-02-20 Christoph Scholtes <cschol2112@gmail.com> 112011-02-20 Christoph Scholtes <cschol2112@gmail.com>
2 12
3 * lib/makefile.w32-in ($(BLD)/md5.$(O)): New recipe, moved from 13 * lib/makefile.w32-in ($(BLD)/md5.$(O)): New recipe, moved from
diff --git a/configure b/configure
index d3607aec316..558ed63da17 100755
--- a/configure
+++ b/configure
@@ -6177,37 +6177,6 @@ else
6177 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS" 6177 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6178fi 6178fi
6179 6179
6180### Use -Wno-pointer-sign if the compiler supports it
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
6182$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
6183SAVE_CFLAGS="$CFLAGS"
6184CFLAGS="$CFLAGS -Wno-pointer-sign"
6185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h. */
6187
6188int
6189main ()
6190{
6191
6192 ;
6193 return 0;
6194}
6195_ACEOF
6196if ac_fn_c_try_compile "$LINENO"; then :
6197 has_option=yes
6198else
6199 has_option=no
6200fi
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202if test $has_option = yes; then
6203 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
6204fi
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6206$as_echo "$has_option" >&6; }
6207CFLAGS="$SAVE_CFLAGS"
6208unset has_option
6209unset SAVE_CFLAGS
6210
6211### Use -Wdeclaration-after-statement if the compiler supports it 6180### Use -Wdeclaration-after-statement if the compiler supports it
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6213$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 6182$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
diff --git a/configure.in b/configure.in
index ed25373a12d..376c82c4ca4 100644
--- a/configure.in
+++ b/configure.in
@@ -699,19 +699,6 @@ else
699 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS" 699 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
700fi 700fi
701 701
702### Use -Wno-pointer-sign if the compiler supports it
703AC_MSG_CHECKING([whether gcc understands -Wno-pointer-sign])
704SAVE_CFLAGS="$CFLAGS"
705CFLAGS="$CFLAGS -Wno-pointer-sign"
706AC_TRY_COMPILE([], [], has_option=yes, has_option=no,)
707if test $has_option = yes; then
708 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
709fi
710AC_MSG_RESULT($has_option)
711CFLAGS="$SAVE_CFLAGS"
712unset has_option
713unset SAVE_CFLAGS
714
715### Use -Wdeclaration-after-statement if the compiler supports it 702### Use -Wdeclaration-after-statement if the compiler supports it
716AC_MSG_CHECKING([whether gcc understands -Wdeclaration-after-statement]) 703AC_MSG_CHECKING([whether gcc understands -Wdeclaration-after-statement])
717SAVE_CFLAGS="$CFLAGS" 704SAVE_CFLAGS="$CFLAGS"