From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 948BD384F6FB for ; Thu, 24 Nov 2022 12:30:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 948BD384F6FB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669293016; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=G9HOwaarpHgk9cqbQQJSjgewBch7cxNEJhGEsiezV7o=; b=czBlrRNMyNqNuduU5xIdwKCer8X/9XxhBTZliMBOHQtkMycTToo/3Th4G3bjmBircLtyCH BF9PpSFmPBQIk65g6jX2XksHj2b6VgzMdb73rI1Kve4bxAhlv1O5fpj1jPIrQm9IAFvRJ3 SevcC74t6F8+H/BWHazd9QgXnoUTmrA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-645-H3aibmMuOFG6jupv7bb-XA-1; Thu, 24 Nov 2022 07:30:15 -0500 X-MC-Unique: H3aibmMuOFG6jupv7bb-XA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B5A34381458B for ; Thu, 24 Nov 2022 12:30:14 +0000 (UTC) Received: from prancer.redhat.com (unknown [10.33.36.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6B2351731B for ; Thu, 24 Nov 2022 12:30:14 +0000 (UTC) From: Nick Clifton To: binutils@sourceware.org Subject: Commit: Fix compile time warnings in conftest.c files Date: Thu, 24 Nov 2022 12:30:11 +0000 Message-ID: <874juopmb0.fsf@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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 +#include #include ], [ /* 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 +#include #include int main ()