lto-streamer-in.c (lto_input_data_block): Adjust T const cast to avoid warning.

* lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
	avoid warning.

From-SVN: r248445
This commit is contained in:
Nathan Sidwell 2017-05-25 01:21:01 +00:00 committed by Nathan Sidwell
parent d65adabb0d
commit d112b94ac4
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2017-05-24 Nathan Sidwell <nathan@acm.org>
* lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
avoid warning.
* auto-profile.c (afdo_propagate): Adjust T const cast to avoid
warning.

View File

@ -86,7 +86,7 @@ void
lto_input_data_block (struct lto_input_block *ib, void *addr, size_t length)
{
size_t i;
unsigned char *const buffer = (unsigned char *const) addr;
unsigned char *const buffer = (unsigned char *) addr;
for (i = 0; i < length; i++)
buffer[i] = streamer_read_uchar (ib);