public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-5012] Fix clang -Wcast-qual warning. Date: Tue, 9 Nov 2021 08:47:26 +0000 (GMT) [thread overview] Message-ID: <20211109084726.E39F5385800F@sourceware.org> (raw) https://gcc.gnu.org/g:69b6cce92e2138494f9bba546347143f7bf4bfd1 commit r12-5012-g69b6cce92e2138494f9bba546347143f7bf4bfd1 Author: Martin Liska <mliska@suse.cz> Date: Tue Nov 9 09:46:09 2021 +0100 Fix clang -Wcast-qual warning. gcc/ChangeLog: * genconditions.c (write_one_condition): Add const qualifier to pointer casting. Diff: --- 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);
reply other threads:[~2021-11-09 8:47 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211109084726.E39F5385800F@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).