From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 5404D3870867 for ; Tue, 16 Feb 2021 11:20:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5404D3870867 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tdevries@suse.de X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6F077B0B8; Tue, 16 Feb 2021 11:20:55 +0000 (UTC) Date: Tue, 16 Feb 2021 12:20:53 +0100 From: Tom de Vries To: dwz@sourceware.org, jakub@redhat.com, mark@klomp.org Subject: [committed][testsuite] Fix compile warnings for def-decl with clang Message-ID: <20210216112052.GA26516@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Feb 2021 11:20:57 -0000 Hi, When running the test-suite with clang, we run into these warnings: ... clang++ decl.c def.c def2.c -Itestsuite/dwz.tests -o def-decl -g clang-10.0: warning: treating 'c' input as 'c++' when in C++ mode, \ this behavior is deprecated [-Wdeprecated] clang-10.0: warning: treating 'c' input as 'c++' when in C++ mode, \ this behavior is deprecated [-Wdeprecated] clang-10.0: warning: treating 'c' input as 'c++' when in C++ mode, \ this behavior is deprecated [-Wdeprecated] ... Fix these by renaming the source files from .c to .cc. Committed to trunk. Thanks, - Tom [testsuite] Fix compile warnings for def-decl with clang 2021-02-16 Tom de Vries * testsuite/dwz.tests/decl.c: Rename to .cc. * testsuite/dwz.tests/def.c: Same. * testsuite/dwz.tests/def2.c: Same. * Makefile (def-decl): Update source file names. --- Makefile | 4 ++-- testsuite/dwz.tests/{decl.c => decl.cc} | 0 testsuite/dwz.tests/{def.c => def.cc} | 0 testsuite/dwz.tests/{def2.c => def2.cc} | 0 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3fa3a27..d320266 100644 --- a/Makefile +++ b/Makefile @@ -128,8 +128,8 @@ odr-loc: def-decl: - $(CXX) $(TEST_SRC)/decl.c $(TEST_SRC)/def.c $(TEST_SRC)/def2.c -I$(TEST_SRC) \ - -o $@ -g + $(CXX) $(TEST_SRC)/decl.cc $(TEST_SRC)/def.cc $(TEST_SRC)/def2.cc \ + -I$(TEST_SRC) -o $@ -g # On some systems we need to set and export DEJAGNU to suppress # WARNING: Couldn't find the global config file. diff --git a/testsuite/dwz.tests/decl.c b/testsuite/dwz.tests/decl.cc similarity index 100% rename from testsuite/dwz.tests/decl.c rename to testsuite/dwz.tests/decl.cc diff --git a/testsuite/dwz.tests/def.c b/testsuite/dwz.tests/def.cc similarity index 100% rename from testsuite/dwz.tests/def.c rename to testsuite/dwz.tests/def.cc diff --git a/testsuite/dwz.tests/def2.c b/testsuite/dwz.tests/def2.cc similarity index 100% rename from testsuite/dwz.tests/def2.c rename to testsuite/dwz.tests/def2.cc