Dependence placed on C/C++ operator precedence; operators '&&' and '==' [MISRA 2012 Rule 12.1, advisory] | pclint 9050

前端 未结 0 1799
生来不讨喜
生来不讨喜 2020-12-15 14:37
uint8 config;    
#define ELEM1 1U

void test1(void)
{
    /*Check Bit 0 of Configuration*/
    if((config) == 2 && (config) == 4)
    {
        arr[ELEM1].s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题