mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +03:00
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:
parent
6fc91f6d3a
commit
cbff751e95
4 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue