-Wsign-Compare Is Garbage

(staticthinking.wordpress.com)

8 points | by welfareleech a day ago ago

2 comments

  • addaon 14 hours ago ago

    "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.

    • welfareleech an hour ago ago

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