Commit d112b94a by Nathan Sidwell Committed by Nathan Sidwell

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
parent d65adabb
2017-05-24 Nathan Sidwell <nathan@acm.org> 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 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
warning. warning.
......
...@@ -86,7 +86,7 @@ void ...@@ -86,7 +86,7 @@ void
lto_input_data_block (struct lto_input_block *ib, void *addr, size_t length) lto_input_data_block (struct lto_input_block *ib, void *addr, size_t length)
{ {
size_t i; size_t i;
unsigned char *const buffer = (unsigned char *const) addr; unsigned char *const buffer = (unsigned char *) addr;
for (i = 0; i < length; i++) for (i = 0; i < length; i++)
buffer[i] = streamer_read_uchar (ib); buffer[i] = streamer_read_uchar (ib);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment