details: http://hg.nginx.org/njs/rev/5e7e498eb90d
branches:
changeset: 119:5e7e498eb90d
user: Igor Sysoev <igor@sysoev.ru>
date: Mon Jul 11 15:24:29 2016 +0300
description:
Fixed building by modern GCC versions.
diffstat:
njs/njs_string.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r e4a0f80610b2 -r 5e7e498eb90d njs/njs_string.c
--- a/njs/njs_string.c Fri Jul 08 18:13:00 2016 +0300
+++ b/njs/njs_string.c Mon Jul 11 15:24:29 2016 +0300
@@ -1657,7 +1657,7 @@ njs_string_prototype_split(njs_vm_t *vm,
{
int ret, *captures;
u_char *p, *start, *next;
- size_t size, length;
+ size_t size;
uint32_t limit;
nxt_uint_t n, utf8;
njs_array_t *array;
@@ -1683,7 +1683,7 @@ njs_string_prototype_split(njs_vm_t *vm,
limit = (uint32_t) -1;
}
- length = njs_string_prop(&string, &args[0]);
+ (void) njs_string_prop(&string, &args[0]);
if (string.size == 0) {
goto single;
@@ -1818,7 +1818,7 @@ static njs_ret_t
njs_string_split_part_add(njs_vm_t *vm, njs_array_t *array, u_char *start,
size_t size, nxt_uint_t utf8)
{
- uint32_t length;
+ ssize_t length;
switch (utf8) {
case 0:
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel