diff options
| author | Paul Eggert | 2011-02-20 11:46:08 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-20 11:46:08 -0800 |
| commit | 6cac9cb117a63296885ffce71f5cd2d944930e89 (patch) | |
| tree | 1d080d9b507fbd49de863c8e55a2a4a5483ad416 | |
| parent | 32159fc37e0281a54dd35abb17aac7302104fd5e (diff) | |
| download | emacs-6cac9cb117a63296885ffce71f5cd2d944930e89.tar.gz emacs-6cac9cb117a63296885ffce71f5cd2d944930e89.zip | |
* configure.in (C_WARNINGS_SWITCH): Do not prepend -Wno-pointer-sign.
| -rw-r--r-- | ChangeLog | 10 | ||||
| -rwxr-xr-x | configure | 31 | ||||
| -rw-r--r-- | configure.in | 13 |
3 files changed, 10 insertions, 44 deletions
| @@ -1,3 +1,13 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-02-20 Christoph Scholtes <cschol2112@gmail.com> | 11 | 2011-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 |
| @@ -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" |
| 6178 | fi | 6178 | fi |
| 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; } | ||
| 6183 | SAVE_CFLAGS="$CFLAGS" | ||
| 6184 | CFLAGS="$CFLAGS -Wno-pointer-sign" | ||
| 6185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 6186 | /* end confdefs.h. */ | ||
| 6187 | |||
| 6188 | int | ||
| 6189 | main () | ||
| 6190 | { | ||
| 6191 | |||
| 6192 | ; | ||
| 6193 | return 0; | ||
| 6194 | } | ||
| 6195 | _ACEOF | ||
| 6196 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 6197 | has_option=yes | ||
| 6198 | else | ||
| 6199 | has_option=no | ||
| 6200 | fi | ||
| 6201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 6202 | if test $has_option = yes; then | ||
| 6203 | C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" | ||
| 6204 | fi | ||
| 6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 | ||
| 6206 | $as_echo "$has_option" >&6; } | ||
| 6207 | CFLAGS="$SAVE_CFLAGS" | ||
| 6208 | unset has_option | ||
| 6209 | unset 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" |
| 700 | fi | 700 | fi |
| 701 | 701 | ||
| 702 | ### Use -Wno-pointer-sign if the compiler supports it | ||
| 703 | AC_MSG_CHECKING([whether gcc understands -Wno-pointer-sign]) | ||
| 704 | SAVE_CFLAGS="$CFLAGS" | ||
| 705 | CFLAGS="$CFLAGS -Wno-pointer-sign" | ||
| 706 | AC_TRY_COMPILE([], [], has_option=yes, has_option=no,) | ||
| 707 | if test $has_option = yes; then | ||
| 708 | C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" | ||
| 709 | fi | ||
| 710 | AC_MSG_RESULT($has_option) | ||
| 711 | CFLAGS="$SAVE_CFLAGS" | ||
| 712 | unset has_option | ||
| 713 | unset SAVE_CFLAGS | ||
| 714 | |||
| 715 | ### Use -Wdeclaration-after-statement if the compiler supports it | 702 | ### Use -Wdeclaration-after-statement if the compiler supports it |
| 716 | AC_MSG_CHECKING([whether gcc understands -Wdeclaration-after-statement]) | 703 | AC_MSG_CHECKING([whether gcc understands -Wdeclaration-after-statement]) |
| 717 | SAVE_CFLAGS="$CFLAGS" | 704 | SAVE_CFLAGS="$CFLAGS" |