Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
CMake: fix test for warning suppressions #5714
GCC doesn't warn for unknown
GCC doesn't warn for unknown `-Wno-` options, except if there are other warnings or errors . This was problematic with `CURL_WERROR` as that warning-as-error cannot be suppressed. Notably, this always happened with `-Wno-pedantic-ms-format` when not targeting Windows. So test for the positive form of the warning instead, which should always result in a diagnostic if unknown.  https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html Closes