lto-streamer-in.c (lto_input_data_block): Adjust T const cast to avoid warning.
authorNathan Sidwell <nathan@acm.org>
Thu, 25 May 2017 01:21:01 +0000 (01:21 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 25 May 2017 01:21:01 +0000 (01:21 +0000)
* lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
avoid warning.

From-SVN: r248445

gcc/ChangeLog
gcc/lto-streamer-in.c

index 48155c41b59b500d5ad4fa74217969acd32b820e..014b1366ecd7ea102b82f4102a4590716869f39b 100644 (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.
 
index 6da217d558986d20381fa9a10678b2bf1ac08670..afed0372a080db9aa82e10d01ae0754c638a0b27 100644 (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);