curl-compilers: enable -Wimplicit-fallthrough=4 for GCC

This enables level 4 instead of the default level 3, which of the
currently used comments only allows /* FALLTHROUGH */ to silence the
warning.

Closes https://github.com/curl/curl/pull/2747
This commit is contained in:
Marcel Raad 2018-07-09 18:52:05 +02:00
parent 60776a0515
commit 15ed9f87e3
No known key found for this signature in database
GPG key ID: 33C416EFAE4D6F02
8 changed files with 12 additions and 10 deletions

View file

@ -1834,7 +1834,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
config->default_node_flags = toggle?GETOUT_USEREMOTE:0;
break;
}
/* fall-through! */
/* FALLTHROUGH */
case 'o': /* --output */
/* output file */
{