8 points | by welfareleech a day ago ago
2 comments
"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).
"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).