From e4aafbf59639e8ea71e6882db1f113ef57e46e0f Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 22 Aug 2017 08:13:30 -0400 Subject: Fix CM_FALLTHROUGH with -Wunused-parameter Fix the test code that we `try_compile` to avoid unused parameter warnings that cause the check to fail. --- Source/Checks/cm_cxx_attribute_fallthrough.cxx | 2 +- Source/Checks/cm_cxx_fallthrough.cxx | 2 +- Source/Checks/cm_cxx_gnu_fallthrough.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Checks/cm_cxx_attribute_fallthrough.cxx b/Source/Checks/cm_cxx_attribute_fallthrough.cxx index df43625..50605b7 100644 --- a/Source/Checks/cm_cxx_attribute_fallthrough.cxx +++ b/Source/Checks/cm_cxx_attribute_fallthrough.cxx @@ -1,4 +1,4 @@ -int main(int argc, char* argv[]) +int main(int argc, char* []) { int i = 3; switch (argc) { diff --git a/Source/Checks/cm_cxx_fallthrough.cxx b/Source/Checks/cm_cxx_fallthrough.cxx index 7b35a5f..2825bed 100644 --- a/Source/Checks/cm_cxx_fallthrough.cxx +++ b/Source/Checks/cm_cxx_fallthrough.cxx @@ -1,4 +1,4 @@ -int main(int argc, char* argv[]) +int main(int argc, char* []) { int i = 3; switch (argc) { diff --git a/Source/Checks/cm_cxx_gnu_fallthrough.cxx b/Source/Checks/cm_cxx_gnu_fallthrough.cxx index 6021094..ebc15f4 100644 --- a/Source/Checks/cm_cxx_gnu_fallthrough.cxx +++ b/Source/Checks/cm_cxx_gnu_fallthrough.cxx @@ -1,4 +1,4 @@ -int main(int argc, char* argv[]) +int main(int argc, char* []) { int i = 3; switch (argc) { -- cgit v0.12