francois-berder commented on a change in pull request #501: Fix warning for 
clicker and wifire boards
URL: https://github.com/apache/mynewt-core/pull/501#discussion_r135871929
 
 

 ##########
 File path: hw/bsp/pic32mz2048_wi-fire/src/hal_bsp.c
 ##########
 @@ -212,7 +212,7 @@ hal_bsp_init(void)
 
     #if MYNEWT_VAL(UART_3)
         rc = os_dev_create((struct os_dev *) &os_bsp_uart3, "uart3",
-            OS_DEV_INIT_PRIMARY, 0, uart_hal_init, &uart4_cfg);
+            OS_DEV_INIT_PRIMARY, 0, uart_hal_init, (void *)&uart4_cfg);
 
 Review comment:
   Actually you have to. Otherwise you get warnings such as:
   ```
   repos/apache-mynewt-core/hw/bsp/pic32mz2048_wi-fire/src/hal_bsp.c:223:13: 
warning: passing argument 6 of 'os_dev_create' discards 'const' qualifier from 
pointer target type [enabled by default]
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to