From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id BD4373858436; Wed, 21 Dec 2022 08:06:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD4373858436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671609994; bh=r1S3jddn2xEUhhPYYUzaoAQ3zrAL5j86b8DyiG3KbmY=; h=From:To:Subject:Date:From; b=J+ku5Tuif/PUV5UU4IQO5IpgASeCEyUA0RK7d/4jK+zAHKJwAbqlFqSLRs3B6guuH 3MeoZJg+hSXw635HrGEjJ1MaIngzXYhLDURtyp6t0WcheZ096ePQ3zbMp8Iu+3Ka5h OxBkWL43HiIs9dfWCYYckYcgBu40LG0tbuzNcsAU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4820] libgccjit: silent 2 Clang warnings X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: 3102b57f3105a301e54d7dc0586eb8e2b1724891 X-Git-Newrev: 3e030227eabad2a0107c1d87b5648e6c3584e273 Message-Id: <20221221080634.BD4373858436@sourceware.org> Date: Wed, 21 Dec 2022 08:06:34 +0000 (GMT) List-Id: https://gcc.gnu.org/g:3e030227eabad2a0107c1d87b5648e6c3584e273 commit r13-4820-g3e030227eabad2a0107c1d87b5648e6c3584e273 Author: Martin Liska Date: Wed Dec 21 08:52:35 2022 +0100 libgccjit: silent 2 Clang warnings The make silent the following 2 warnings: jit/jit-playback.h:785:16: warning: private field 'm_source_file' is not used [-Wunused-private-field] jit/jit-playback.h:804:16: warning: private field 'm_line' is not used [-Wunused-private-field] gcc/jit/ChangeLog: * jit-playback.h: Use unused attribute. Diff: --- gcc/jit/jit-playback.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/jit/jit-playback.h b/gcc/jit/jit-playback.h index 214f399f45c..43e92d67d74 100644 --- a/gcc/jit/jit-playback.h +++ b/gcc/jit/jit-playback.h @@ -782,7 +782,7 @@ public: vec m_locations; private: - source_file *m_source_file; + source_file *m_source_file ATTRIBUTE_UNUSED; int m_line_num; }; @@ -801,7 +801,7 @@ public: private: recording::location *m_recording_loc; - source_line *m_line; + source_line *m_line ATTRIBUTE_UNUSED; int m_column_num; };