summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-07-05 15:36:56 (GMT)
committerBrad King <brad.king@kitware.com>2017-07-05 15:48:47 (GMT)
commit6c80e958cad73105c44e6b725a8ed7394e04290d (patch)
tree1767965317bc3a753a057f39c93ddcc432ea2c6f
parent295d9bf2bd795da551d5ac266c53eeac2de45a71 (diff)
downloadCMake-6c80e958cad73105c44e6b725a8ed7394e04290d.zip
CMake-6c80e958cad73105c44e6b725a8ed7394e04290d.tar.gz
CMake-6c80e958cad73105c44e6b725a8ed7394e04290d.tar.bz2
cmCTest: Add missing switch case fallthrough markup
Without this, GCC 7 warns. Reported-by: Rolf Eike Beer <eike@sf-mail.de>
-rw-r--r--Source/cmCTest.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index e260556..6078256 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -190,7 +190,8 @@ int cmCTest::HTTPRequest(std::string url, HTTPMethod method,
::curl_easy_setopt(curl, CURLOPT_PUT, 1);
file = cmsys::SystemTools::Fopen(putFile, "rb");
::curl_easy_setopt(curl, CURLOPT_INFILE, file);
- // fall through to append GET fields
+ // fall through to append GET fields
+ CM_FALLTHROUGH;
case cmCTest::HTTP_GET:
if (!fields.empty()) {
url += "?" + fields;