diff options
author | Brad King <brad.king@kitware.com> | 2016-08-17 14:46:35 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-08-17 14:46:35 (GMT) |
commit | 67a7dcef45fef6172514d6df1bea3ca94a04735a (patch) | |
tree | 7a70d0cd96338acd3664b7bef1dcf59f6c7462bc /Tests | |
parent | 29593b79a236f9bd6653ed0ab874444ae4f38f00 (diff) | |
parent | e7b842e18955d13f6d9c021bab4a8935bf282744 (diff) | |
download | CMake-67a7dcef45fef6172514d6df1bea3ca94a04735a.zip CMake-67a7dcef45fef6172514d6df1bea3ca94a04735a.tar.gz CMake-67a7dcef45fef6172514d6df1bea3ca94a04735a.tar.bz2 |
Merge topic 'readability-named-parameter'
e7b842e1 Make sure unnused parameters are /*named*/
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLib/testGeneratedFileStream.cxx | 2 | ||||
-rw-r--r-- | Tests/CMakeLib/testSystemTools.cxx | 2 | ||||
-rw-r--r-- | Tests/CMakeLib/testUTF8.cxx | 2 | ||||
-rw-r--r-- | Tests/CMakeLib/testXMLParser.cxx | 2 | ||||
-rw-r--r-- | Tests/CMakeLib/testXMLSafe.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/Tests/CMakeLib/testGeneratedFileStream.cxx b/Tests/CMakeLib/testGeneratedFileStream.cxx index 67dd69a..e5a2f4d 100644 --- a/Tests/CMakeLib/testGeneratedFileStream.cxx +++ b/Tests/CMakeLib/testGeneratedFileStream.cxx @@ -16,7 +16,7 @@ std::cout << "FAILED: " << m1 << m2 << "\n"; \ failed = 1 -int testGeneratedFileStream(int, char* []) +int testGeneratedFileStream(int /*unused*/, char* /*unused*/ []) { int failed = 0; cmGeneratedFileStream gm; diff --git a/Tests/CMakeLib/testSystemTools.cxx b/Tests/CMakeLib/testSystemTools.cxx index e654d1e..8e8d4c4 100644 --- a/Tests/CMakeLib/testSystemTools.cxx +++ b/Tests/CMakeLib/testSystemTools.cxx @@ -19,7 +19,7 @@ std::cout << "FAILED: " << m << "\n"; \ failed = 1 -int testSystemTools(int, char* []) +int testSystemTools(int /*unused*/, char* /*unused*/ []) { int failed = 0; // ---------------------------------------------------------------------- diff --git a/Tests/CMakeLib/testUTF8.cxx b/Tests/CMakeLib/testUTF8.cxx index 1da23fe..019a2dd 100644 --- a/Tests/CMakeLib/testUTF8.cxx +++ b/Tests/CMakeLib/testUTF8.cxx @@ -97,7 +97,7 @@ static bool decode_bad(test_utf8_char const s) return true; } -int testUTF8(int, char* []) +int testUTF8(int /*unused*/, char* /*unused*/ []) { int result = 0; for (test_utf8_entry const* e = good_entry; e->n; ++e) { diff --git a/Tests/CMakeLib/testXMLParser.cxx b/Tests/CMakeLib/testXMLParser.cxx index 1fd5113..d5e9764 100644 --- a/Tests/CMakeLib/testXMLParser.cxx +++ b/Tests/CMakeLib/testXMLParser.cxx @@ -4,7 +4,7 @@ #include <iostream> -int testXMLParser(int, char* []) +int testXMLParser(int /*unused*/, char* /*unused*/ []) { // TODO: Derive from parser and check attributes. cmXMLParser parser; diff --git a/Tests/CMakeLib/testXMLSafe.cxx b/Tests/CMakeLib/testXMLSafe.cxx index 34c38fb..4970ccc 100644 --- a/Tests/CMakeLib/testXMLSafe.cxx +++ b/Tests/CMakeLib/testXMLSafe.cxx @@ -28,7 +28,7 @@ static test_pair const pairs[] = { { 0, 0 } }; -int testXMLSafe(int, char* []) +int testXMLSafe(int /*unused*/, char* /*unused*/ []) { int result = 0; for (test_pair const* p = pairs; p->in; ++p) { |