Fix clang -Wcast-qual warning.
gcc/ChangeLog: * genconditions.c (write_one_condition): Add const qualifier to pointer casting.
This commit is contained in:
parent
2abd924f91
commit
69b6cce92e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue