From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GCFVF0r94GL4TxsAWB0awg (envelope-from ) for ; Wed, 27 Jul 2022 04:54:34 -0400 Received: by simark.ca (Postfix, from userid 112) id 5C2E11E9ED; Wed, 27 Jul 2022 04:54:34 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=AMOtdWRr; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C18311E87E for ; Wed, 27 Jul 2022 04:54:33 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3375C385702D for ; Wed, 27 Jul 2022 08:54:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3375C385702D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1658912072; bh=j6+lkwqhR6ZNVlGbZ36U7myNr+TZwI44MpQI0LAzF3A=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=AMOtdWRru7gREnqYbpaxsEK/XUsjaEDjVo+Mbnz3D72knjaki7gHrm7nA0cqKrvZj OulPbVKqMhkdqPqpukamXfp7Nl82nSLnvyn3SCso1fxwD0YQsWZLZoEoWMprCmtzn3 83CcQeoE1wzxxq83V9IjU6/a5ip+FkYjXEN2Z+aM= Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by sourceware.org (Postfix) with ESMTPS id DA78F3857038 for ; Wed, 27 Jul 2022 08:53:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DA78F3857038 X-IronPort-AV: E=McAfee;i="6400,9594,10420"; a="313960758" X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="313960758" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 01:53:55 -0700 X-IronPort-AV: E=Sophos;i="5.93,195,1654585200"; d="scan'208";a="659106031" Received: from mulvlfelix.iul.intel.com (HELO localhost) ([172.28.48.92]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 01:53:54 -0700 To: gdb-patches@sourceware.org Subject: [PATCH v3 2/2] gdb, testsuite: Adapt gdb.base/callfuncs.exp for new clang warning. Date: Wed, 27 Jul 2022 10:51:28 +0200 Message-Id: <20220727085128.2404513-3-felix.willgerodt@intel.com> X-Mailer: git-send-email 2.34.3 In-Reply-To: <20220727085128.2404513-1-felix.willgerodt@intel.com> References: <20220727085128.2404513-1-felix.willgerodt@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Felix Willgerodt via Gdb-patches Reply-To: Felix Willgerodt Cc: aburgess@redhat.com Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Clang 15.0.0 enabled the warning for deprecated non-prototype functions by default: https://reviews.llvm.org/D122895 Callfuncs.exp is impacted and won't run due to new warnings: callfuncs.c:339:5: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int t_float_values (float_arg1, float_arg2) This patch disables those warnings with -Wno-deprecated-non-prototype. Removing the test for deprecated syntax would also be an option. But I will leave that up for others to decide/implement. --- gdb/testsuite/gdb.base/callfuncs.exp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp index 4448cc127ba..fd63f109101 100644 --- a/gdb/testsuite/gdb.base/callfuncs.exp +++ b/gdb/testsuite/gdb.base/callfuncs.exp @@ -18,7 +18,9 @@ standard_testfile -set compile_flags {debug} +# We still want to test non-prototype functions for now, which is why +# we disable compilers warning about them. +set compile_flags {debug additional_flags=-Wno-deprecated-non-prototype} if [support_complex_tests] { lappend compile_flags "additional_flags=-DTEST_COMPLEX" } -- 2.34.3 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928