Welcome! Log In Create A New Profile

Advanced

[njs] Fixed building by modern GCC versions.

July 11, 2016 08:26AM
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
Subject Author Views Posted

[njs] Fixed building by modern GCC versions.

Igor Sysoev 823 July 11, 2016 08:26AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready