Fix a spurious "implicit fallthrough" warning
This commit is contained in:
parent
8c4e867760
commit
279d010e0f
7
termo.c
7
termo.c
|
@ -906,21 +906,20 @@ peekkey (termo_t *tk, termo_key_t *key, int flags, size_t *nbytep)
|
||||||
|
|
||||||
switch (ret)
|
switch (ret)
|
||||||
{
|
{
|
||||||
|
size_t halfsize;
|
||||||
case TERMO_RES_KEY:
|
case TERMO_RES_KEY:
|
||||||
{
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
print_key (tk, key); fprintf (stderr, "\n");
|
print_key (tk, key); fprintf (stderr, "\n");
|
||||||
#endif
|
#endif
|
||||||
// Slide the data down to stop it running away
|
// Slide the data down to stop it running away
|
||||||
size_t halfsize = tk->buffsize / 2;
|
halfsize = tk->buffsize / 2;
|
||||||
if (tk->buffstart > halfsize)
|
if (tk->buffstart > halfsize)
|
||||||
{
|
{
|
||||||
memcpy (tk->buffer, tk->buffer + halfsize, halfsize);
|
memcpy (tk->buffer, tk->buffer + halfsize, halfsize);
|
||||||
tk->buffstart -= halfsize;
|
tk->buffstart -= halfsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallthrough
|
// Fall-through
|
||||||
}
|
|
||||||
case TERMO_RES_EOF:
|
case TERMO_RES_EOF:
|
||||||
case TERMO_RES_ERROR:
|
case TERMO_RES_ERROR:
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue