Browse Source

[core] fix fallthrough annotation for gcc

Change-Id: I3130f87b0709055d1f496961f7bd8167329e2c46
master
Stefan Bühler 1 year ago
parent
commit
52566836a0
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/main/http_headers.c

+ 4
- 2
src/main/http_headers.c View File

@@ -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