build: fix gcc7 implicit fallthrough warnings

Mark intended fallthroughs with /* FALLTHROUGH */ so that gcc will know
it's expected and won't warn on [-Wimplicit-fallthrough=].

Closes https://github.com/curl/curl/pull/1297
This commit is contained in:
Alexis La Goutte 2017-02-28 22:45:28 +01:00 committed by Jay Satiro
parent 6fc91f6d3a
commit cbff751e95
4 changed files with 4 additions and 0 deletions

View file

@ -342,6 +342,7 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost,
#else
current_form->flags |= HTTPPOST_PTRNAME; /* fall through */
#endif
/* FALLTHROUGH */
case CURLFORM_COPYNAME:
if(current_form->name)
return_value = CURL_FORMADD_OPTION_TWICE;