From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 22C703858036; Mon, 4 Apr 2022 12:57:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 22C703858036 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: 483d712b2fcbea47e6ca05a85c3283fe84afb17c X-Git-Newrev: 61e8b64d5a2dc783cb1bf94b3f9346e34fd47e5f Message-Id: <20220404125741.22C703858036@sourceware.org> Date: Mon, 4 Apr 2022 12:57:41 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2022 12:57:41 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=61e8b64d5a2dc783cb1bf94b3f9346e34fd47e5f commit 61e8b64d5a2dc783cb1bf94b3f9346e34fd47e5f 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)