From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 5E8D1385841C; Wed, 30 Aug 2023 12:40:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E8D1385841C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693399206; bh=VAICKvuBZ933g+6rZa+p6kmqVzHGPDasSeqDvP3RnFM=; h=From:To:Subject:Date:From; b=y2SDnCe4KsXdxMV7zDdrl4ArRs2mWuD7fytiEp6JT2en3wHRMvejlXmIdl9Pkz9Az EmaXVP5u5czRAgPFUb2oU3HBMlYl2jMJZJdSRR1G/H1Jzr2Xf0u+nX/ytk0xGLLgbD yLB4cBI3xL7qMCUIRs39R7dRAxRmVW+j5ct/zPZM= 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: 9b486d234d0ea37d6613f68e99a433551cc06f72 X-Git-Newrev: ce1a526b01fc2d6c559849c6c6b828c826248a2d Message-Id: <20230830124006.5E8D1385841C@sourceware.org> Date: Wed, 30 Aug 2023 12:40:06 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ce1a526b01fc2d6c559849c6c6b828c826248a2d commit ce1a526b01fc2d6c559849c6c6b828c826248a2d 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)