Commit: Fix compile time warnings in conftest.c files
Checks
Commit Message
Hi Guys,
I am applying the patch below to fix a potential compile time warning
message when gas's configure script runs.
In addition I have also imported Florian Weimer's patch to the
libiberty sources (885b6660c17f) which does the same thing there.
Together these two patches mean that the configure scripts run without
generating compile time warning messages from modern versions of gcc.
Cheers
Nick
@@ -23,6 +23,7 @@ AC_DEFUN([GAS_WORKING_ASSERT],
[AC_MSG_CHECKING([for working assert macro])
AC_CACHE_VAL(gas_cv_assert_ok,
AC_TRY_LINK([#include <assert.h>
+#include <string.h>
#include <stdio.h>], [
/* check for requoting problems */
static int a, b, c, d;
@@ -13791,6 +13791,7 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <assert.h>
+#include <string.h>
#include <stdio.h>
int
main ()