2 comments

[ 3.1 ms ] story [ 17.4 ms ] thread
"The -Wsign-compare warning is old and it’s not enabled by default or even by the “warn about everything” -Wall option."

The "warn about everything" option is -Weverything, which /does/ enable -Wsign-compare.

Only with Clang. With GCC, -Wextra implicitly enables -Wsign-compare (with G++ -Wall implicitly enables it instead).