2 comments

[ 4.2 ms ] story [ 17.5 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).