summaryrefslogtreecommitdiffstats
path: root/Source/Checks
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-22 12:13:30 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-22 12:13:30 (GMT)
commite4aafbf59639e8ea71e6882db1f113ef57e46e0f (patch)
tree7a2b11b837b50c98a1e071dfffaf157c2ffe87ea /Source/Checks
parent2d41ec5036e94f2cffda4875b616020372a406a2 (diff)
downloadCMake-e4aafbf59639e8ea71e6882db1f113ef57e46e0f.zip
CMake-e4aafbf59639e8ea71e6882db1f113ef57e46e0f.tar.gz
CMake-e4aafbf59639e8ea71e6882db1f113ef57e46e0f.tar.bz2
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.
Diffstat (limited to 'Source/Checks')
-rw-r--r--Source/Checks/cm_cxx_attribute_fallthrough.cxx2
-rw-r--r--Source/Checks/cm_cxx_fallthrough.cxx2
-rw-r--r--Source/Checks/cm_cxx_gnu_fallthrough.cxx2
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) {