public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5012] Fix clang -Wcast-qual warning.
@ 2021-11-09  8:47 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-11-09  8:47 UTC (permalink / raw)
  To: gcc-cvs

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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-09  8:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09  8:47 [gcc r12-5012] Fix clang -Wcast-qual warning Martin Liska

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).