From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 3D7B53858C56; Tue, 4 Oct 2022 13:02:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D7B53858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664888579; bh=o01V3Ccw8dvxqebadN4RXc12DoKAsw3NkIbJje6GP0k=; h=From:To:Subject:Date:From; b=e0anonqvNVYNMv5tzq0xSdo556zDyv9BrpFwDbOR0k/70/xRZCgHIHZlyluOecuHp neifDGAtxOR5x6XJB2aYPDYw06Vkq6Xkvip1Y53YgPHJbbjY5S+/AYRJPg1kjd5LqL hQZj+Vizf8tRDfcF10IHWCDECEx5A57ue5/tSzFU= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] elf: Suppress clang warning on tst-unique3 X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 8a43f21a9a3c548a6c30a9e249ec1e61c4174010 X-Git-Newrev: 2fa90e15b27683045520fff144d6d28aaa854796 Message-Id: <20221004130259.3D7B53858C56@sourceware.org> Date: Tue, 4 Oct 2022 13:02:59 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2fa90e15b27683045520fff144d6d28aaa854796 commit 2fa90e15b27683045520fff144d6d28aaa854796 Author: Adhemerval Zanella Date: Fri Mar 25 11:17:39 2022 -0300 elf: Suppress clang warning on tst-unique3 clang warns that the instatiation of the variable is required, but no definition is available. They are implemented on tst-unique3lib.so. Checked on x86_64-linux-gnu. Diff: --- elf/tst-unique3.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/elf/tst-unique3.cc b/elf/tst-unique3.cc index efdd6d78c2..d07601fe6d 100644 --- a/elf/tst-unique3.cc +++ b/elf/tst-unique3.cc @@ -1,9 +1,14 @@ -#include "tst-unique3.h" - #include -#include "../dlfcn/dlfcn.h" +#include +#include +#include "tst-unique3.h" +/* clang warns that the instatiation of the variable is required, but no + definition is available. They are implemented on tst-unique3lib.so. */ +DIAG_PUSH_NEEDS_COMMENT_CLANG; +DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wundefined-var-template"); int t = S::i; +DIAG_POP_NEEDS_COMMENT_CLANG; int main (void)