summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx_attribute_fallthrough.cxx
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/cm_cxx_attribute_fallthrough.cxx
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/cm_cxx_attribute_fallthrough.cxx')
-rw-r--r--Source/Checks/cm_cxx_attribute_fallthrough.cxx2
1 files changed, 1 insertions, 1 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) {