From patchwork Tue Nov 9 08:47:05 2021 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: 47241 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 688BC3858022 for ; Tue, 9 Nov 2021 08:47:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 5A59F3858D39 for ; Tue, 9 Nov 2021 08:47:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5A59F3858D39 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-out1.suse.de (Postfix) with ESMTPS id 5FA0D21AFF for ; Tue, 9 Nov 2021 08:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1636447626; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZSw9iTPUYdh7XlIvJg/px1OVVZPalzBS73dMFzxmM4A=; b=VUdCEHjX0OKjBhIgiS8QhxLSROy67n7K0RwAhf1/62YEeBFLTFcXMGmEUmERmzJZzdvJcJ rbwYOk2sqnJkOqlEMqcAXdAjIBds3k3xzSiTQMb/dDJn5wAM9zaukmbkuP768ZDT4cPcfc eXGSYPoo5FpvpGtKvIoZBQzaYEYzDLg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1636447626; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZSw9iTPUYdh7XlIvJg/px1OVVZPalzBS73dMFzxmM4A=; b=m6Ph78kjED9bbdYHTNNS0WTb8DRqt10PUr7efmpAV6SyI9UK+9pOqFTJPtl+NKIufqSVx0 HkS0nIkrguRJpSBQ== 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 5050F13ADA for ; Tue, 9 Nov 2021 08:47:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Bf6GEoo1imHsPQAAMHmgww (envelope-from ) for ; Tue, 09 Nov 2021 08:47:06 +0000 Message-ID: <3971b77b-e0d1-9114-21cc-68589b90a049@suse.cz> Date: Tue, 9 Nov 2021 09:47:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] Fix clang -Wcast-qual warning. To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.5 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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" Pushed as obvious. Martin gcc/ChangeLog: * genconditions.c (write_one_condition): Add const qualifier to pointer casting. --- gcc/genconditions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/genconditions.c b/gcc/genconditions.c index a237df50127..b7f2a5afca5 100644 --- a/gcc/genconditions.c +++ b/gcc/genconditions.c @@ -123,7 +123,7 @@ extern rtx operands[];\n\ static int write_one_condition (void **slot, void * ARG_UNUSED (dummy)) { - const struct c_test *test = * (const struct c_test **) slot; + const struct c_test *test = *(const struct c_test *const *) slot; const char *p; rtx_reader_ptr->print_md_ptr_loc (test->expr);