Browse Source

[core] fix fallthrough annotation for gcc

Change-Id: I3130f87b0709055d1f496961f7bd8167329e2c46
personal/stbuehler/wip
Stefan Bühler 2 years ago
parent
commit
52566836a0
  1. 6
      src/main/http_headers.c

6
src/main/http_headers.c

@ -266,7 +266,8 @@ gboolean li_http_header_tokenizer_next(liHttpHeaderTokenizer *tokenizer, GString
case '\\':
++pos;
if (pos >= len) return FALSE; /* no character after backslash */
/* fall through, append whatever comes */
/* append whatever comes */
/* fallthrough */
default:
g_string_append_c(token, str[pos]);
break;
@ -283,7 +284,8 @@ quoted:
case '\\':
++pos;
if (pos >= len) return FALSE; /* no character after backslash */
/* fall through, append whatever comes */
/* append whatever comes */
/* fallthrough */
default:
g_string_append_c(token, str[pos]);
break;

Loading…
Cancel
Save