mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 10:47:59 +08:00

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