mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUILD: sample: use __fallthrough in smp_is_rw() and smp_dup()
This avoids three build warnings when preprocessing happens before compiling with gcc >= 7.
This commit is contained in:
parent
1f344c0f30
commit
7ed0597ce8
2 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ int smp_is_safe(struct sample *smp)
|
|||
case SMP_T_METH:
|
||||
if (smp->data.u.meth.meth != HTTP_METH_OTHER)
|
||||
return 1;
|
||||
/* Fall through */
|
||||
__fallthrough;
|
||||
|
||||
case SMP_T_STR:
|
||||
if (!smp->data.u.str.size || smp->data.u.str.data >= smp->data.u.str.size)
|
||||
|
|
@ -149,7 +149,7 @@ int smp_is_rw(struct sample *smp)
|
|||
case SMP_T_METH:
|
||||
if (smp->data.u.meth.meth != HTTP_METH_OTHER)
|
||||
return 1;
|
||||
/* Fall through */
|
||||
__fallthrough;
|
||||
|
||||
case SMP_T_STR:
|
||||
if (!smp->data.u.str.size ||
|
||||
|
|
|
|||
|
|
@ -823,7 +823,7 @@ int smp_dup(struct sample *smp)
|
|||
case SMP_T_METH:
|
||||
if (smp->data.u.meth.meth != HTTP_METH_OTHER)
|
||||
break;
|
||||
/* Fall through */
|
||||
__fallthrough;
|
||||
|
||||
case SMP_T_STR:
|
||||
trash = get_trash_chunk();
|
||||
|
|
|
|||
Loading…
Reference in a new issue