From patchwork Wed Dec 21 08:05:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 62214 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 39A7D3850F2E for ; Wed, 21 Dec 2022 08:05:43 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 426E73858D1E for ; Wed, 21 Dec 2022 08:05:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 426E73858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 04E4D4FD0; Wed, 21 Dec 2022 08:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1671609924; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1vAPt4CAeG2Ve/0imQ/bhuGbI9OE5jYGab1J/OHdZp8=; b=PTe2/MMzF/x/xiQvjwAW0+cfHosaDxMJanDiBGMSGdvyIdEXlUME8yI19d3c25Mp8KOFWR 9g0vIyDaMrDpddWA69IxMRIHFWq7viM2rAdrtSuiW4W4toxPf8X0DVq8+LPnVoHuJV8MDr AQHv5niygpA6R7JeIau/WTBM189+W4E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1671609924; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1vAPt4CAeG2Ve/0imQ/bhuGbI9OE5jYGab1J/OHdZp8=; b=nGd1A/vKh2vTNzLqJaBdrCyDE3TFpiMl1GW2QPYKvshSs0HxnnPgGhtbv3NnqGERpDhhWx h+tYoVGGXUkefVAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E6BF213913; Wed, 21 Dec 2022 08:05:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 3Jg/N0O+omPaYgAAMHmgww (envelope-from ); Wed, 21 Dec 2022 08:05:23 +0000 Message-ID: <84798cab-dc97-a9c7-0629-82e3d03be246@suse.cz> Date: Wed, 21 Dec 2022 09:05:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH (pushed)] libgccjit: silent 2 Clang warnings To: gcc-patches@gcc.gnu.org Content-Language: en-US Cc: David Malcolm X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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. --- 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; };