Просмотр исходного кода

cmCTest: Add missing switch case fallthrough markup

Without this, GCC 7 warns.

Reported-by: Rolf Eike Beer <[email protected]>
Brad King 8 лет назад
Родитель
Сommit
6c80e958ca
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Source/cmCTest.cxx

+ 2 - 1
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;