Fix clang -Wcast-qual warning.

gcc/ChangeLog:

	* genconditions.c (write_one_condition): Add const qualifier
	to pointer casting.
This commit is contained in:
Martin Liska 2021-11-09 09:46:09 +01:00
parent 2abd924f91
commit 69b6cce92e
1 changed files with 1 additions and 1 deletions

View File

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