Menu

alwaysTrueFalse is not reported for a comma expression in a condition statement

wy163
2025-05-13
2025-05-13
  • wy163

    wy163 - 2025-05-13

    Hi,

    int main() {
        int x = 200;
        int y = 100;
        if(x,x,y) {}
        return 0;
    }
    

    There is no warning reported for the alwaysTrueFalse. Shall we need to raise a ticket for that?
    Thanks!

     
  • CHR

    CHR - 2025-05-13
     

Log in to post a comment.