public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: binutils@sourceware.org
Subject: Commit: Fix compile time warnings in conftest.c files
Date: Thu, 24 Nov 2022 12:30:11 +0000	[thread overview]
Message-ID: <874juopmb0.fsf@redhat.com> (raw)

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

diff --git a/gas/acinclude.m4 b/gas/acinclude.m4
index 9864abe23eb..bf6dba6825f 100644
--- a/gas/acinclude.m4
+++ b/gas/acinclude.m4
@@ -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;
diff --git a/gas/configure b/gas/configure
index d9800f8a53d..57c1fa3557e 100755
--- a/gas/configure
+++ b/gas/configure
@@ -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 ()


                 reply	other threads:[~2022-11-24 12:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874juopmb0.fsf@redhat.com \
    --to=nickc@redhat.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).