[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] fix spurious warnings from AC_CHECK_SIZEOF
From: |
Ben Pfaff |
Subject: |
[PATCH] fix spurious warnings from AC_CHECK_SIZEOF |
Date: |
Mon, 19 Jan 2004 17:13:49 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
With -Wall, AC_CHECK_SIZEOF would give a spurious warning about a
problem with cross-compilation. The cause was a failure of
_AC_COMPUTE_INT_RUN to provide a cross-compilation fallback.
Because the cross-compilation fallback was handled properly by a
higher level, the warning was spurious. Here is a patch that
adds a never-used fallback to AC_RUN_IFELSE, suppressing the
warning:
--- pristine/autoconf-2.59/lib/autoconf/general.m4 2003-10-27
03:10:56.000000000 -0800
+++ autoconf-2.59/lib/autoconf/general.m4 2004-01-19 17:05:15.000000000
-0800
@@ -2508,7 +2508,8 @@
# Store the evaluation of the integer EXPRESSION in VARIABLE.
m4_define([_AC_COMPUTE_INT_RUN],
[AC_RUN_IFELSE([AC_LANG_INT_SAVE([$3], [$1])],
- [$2=`cat conftest.val`], [$4])])
+ [$2=`cat conftest.val`], [$4],
+ [AC_MSG_ERROR([internal error: not reached in cross-compile])])])
# _AC_COMPUTE_INT(EXPRESSION, VARIABLE, INCLUDES, IF-FAILS)
This is Debian bug #228298.
--
"To the engineer, the world is a toy box full of sub-optimized and
feature-poor toys."
--Scott Adams
- [PATCH] fix spurious warnings from AC_CHECK_SIZEOF,
Ben Pfaff <=