Skip to content

Commit

Permalink
Fix build warning in ext/mbstring
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Jan 24, 2024
1 parent e2c3c48 commit 8128d17
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ext/mbstring/mbstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,6 @@ static const mbfl_encoding *php_mb_get_encoding_or_pass(const char *encoding_nam
return mbfl_name2encoding(encoding_name);
}

static const mbfl_encoding *php_mb_get_encoding_or_pass_ex(const char *encoding_name, size_t encoding_name_len) {
if (strncmp(encoding_name, "pass", encoding_name_len) == 0) {
return &mbfl_encoding_pass;
}

return mbfl_name2encoding_ex(encoding_name, encoding_name_len);
}

static size_t count_commas(const char *p, const char *end) {
size_t count = 0;
while ((p = memchr(p, ',', end - p))) {
Expand Down

0 comments on commit 8128d17

Please sign in to comment.