2 ms·
Both GCC and Clang have -Wparentheses, enabled with -Wall, which will warn on constructs like `if(x=0)`. MSVC also has a warning for this.
by account42 5y ago
Both GCC and Clang have -Wparentheses, enabled with -Wall, which will warn on constructs like `if(x=0)`. MSVC also has a warning for this.