Is there signed unsigned warning (C4365) for CC-RX compiler?

For the test code below, the Microsoft compiler would produce C4365 warning

Is it possible for CC-RX compiler (2.x) produce the similar warning? If not, is there a way for me to catch there error?

Thank you.


// cl test.cpp /Wall

// test.cpp(15): warning C4365: 'argument': conversion from 'int' to 'unsigned int', signed/unsigned mismatch

// output: "Hello World! 1"

 #include <iostream>

int signed_unsigned_mixed_up(int x, unsigned int y)
    return (y - x) > 10;

int main()
    int x = 1;
    int y = 12;
    std::cout << "Hello World! " << signed_unsigned_mixed_up(x, y) << "\n";

Parents Reply Children
No Data