[riot-notifications] [RIOT-OS/RIOT] cpu/lpc1768: fix uninitialized variable (#9908)

José Alamos notifications at github.com
Wed Jan 2 10:25:33 CET 2019


jia200x commented on this pull request.



> @@ -154,6 +154,8 @@ void uart_write(uart_t uart, const uint8_t *data, size_t len)
             break;
 #endif
         default:
+            /* prevent cppcheck uninitialized variable error */
+            dev = (LPC_UART_TypeDef *) 0;

makes sense to me

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/9908#discussion_r244688459
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190102/c71ac9d5/attachment.html>


More information about the notifications mailing list