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: 35289 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3397186wrn; Wed, 21 Dec 2022 00:06:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXu9waaBTK6XpGsD5p47Pnkx52ALL0sxkT8HJBZlWKQuehWElYcFJqUUzbHYvgRha9dqIcVt X-Received: by 2002:a17:906:2457:b0:7c0:ff72:e828 with SMTP id a23-20020a170906245700b007c0ff72e828mr583598ejb.54.1671609969240; Wed, 21 Dec 2022 00:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671609969; cv=none; d=google.com; s=arc-20160816; b=gTwujbk7qbMEvot/Rtua0tqqt+NUTPPoc8PgJ8kbEd5UnpsOQQwelRmgPcBhJPOP5u qHSir9qWYfTyf9bzpQ8kDTUm7FR/hdLwXaJtIQZlPYLer8IJdq1ZtgtlA8t/94CxomPi deSJqrNwXjC818PqWg0W+4r+070GOhQiZ5j8/itIJHTSnqXYaz8wPddu4ziP2FxHI6ph v0YRKg1DbDABok7LNwtuiEWkuLocm3+Pi9y9+2GTYIR4ljs05BtM9OBefpRHAJvv/T/6 OCvrFppDSaHqFH2OyTTgQ2UT20YgFERMoLVY68ZbGXuRO/C+3YaFQjmXOVAemnlupDoo Xemg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding:cc :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=1vAPt4CAeG2Ve/0imQ/bhuGbI9OE5jYGab1J/OHdZp8=; b=XUcGKs1QUwfAB/yzBSvOmuuhO+1vCHuo/S/bKaC7xi1lY2Ur77WBfsIeyRWMqaiZV4 eyZXigOv5BVFIFFy0hQeqUNqF87AnqinDCkopom9ohsA5Gh/SSzAhdm2ESP4XANfAjXL hjgVNRJI7xoOsx6QsDzSIqfB7V8SZIcT1Vfl3e4Vs2bt2yoBR1jHXkdrhzN6lXU9hOMM kE6R5Vs89Hj0shMm77c2QHGW+0v498ARCfVO6POZlNGlKBBI3hHwy70v8z5MutojloH3 jXbJSFUT3FThu7tq/vlow70SQJ0qm6osdy457ey7/j1yU/Y6Ay4lVa7OxM2Sc5OGeD55 nWWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="PTe2/MMz"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="nGd1A/vK"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ho35-20020a1709070ea300b007c118b2d91dsi11831938ejc.248.2022.12.21.00.06.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 00:06:09 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="PTe2/MMz"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="nGd1A/vK"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8B78538493CD for ; Wed, 21 Dec 2022 08:05:51 +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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752810095230911337?= X-GMAIL-MSGID: =?utf-8?q?1752810095230911337?= 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; };