keil5出现的警告解决方法:equality comparison with extraneous parentheses

转载:https://blog.csdn.net/weixin_39674445/article/details/97371694

if ((r == STM32_ACK)) {}

警告:equality comparison with extraneous parentheses
原因:在MDK中出现equality comparison with extraneous parentheses这样的黄色三角警告,代表括号有重复多余的情况。
解决方法:

if (r == STM32_ACK) {}

posted on 2021-06-02 17:40  夏天师妹  阅读(5740)  评论(0编辑  收藏  举报

导航