mirror of
https://github.com/Kitware/CMake.git
synced 2025-06-24 13:13:18 +08:00

Fix the test code that we `try_compile` to avoid unused parameter warnings that cause the check to fail.
12 lines
145 B
C++
12 lines
145 B
C++
int main(int argc, char* [])
|
|
{
|
|
int i = 3;
|
|
switch (argc) {
|
|
case 1:
|
|
i = 0;
|
|
[[fallthrough]];
|
|
default:
|
|
return i;
|
|
}
|
|
}
|