Vadim Zhestikov via nginx-devel
August 23, 2023 01:14PM
details: https://hg.nginx.org/njs/rev/c0f581b26e84
branches:
changeset: 2185:c0f581b26e84
user: Vadim Zhestikov <v.zhestikov@f5.com>
date: Wed Aug 23 10:09:22 2023 -0700
description:
Fixed building by GCC with -O3.

diffstat:

src/njs_array.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r f1bd0b1db065 -r c0f581b26e84 src/njs_array.c
--- a/src/njs_array.c Tue Aug 22 11:13:09 2023 -0700
+++ b/src/njs_array.c Wed Aug 23 10:09:22 2023 -0700
@@ -2952,6 +2952,9 @@ njs_array_prototype_sort(njs_vm_t *vm, n
return ret;
}

+ /* Satisfy gcc -O3 */
+ nslots = 0;
+
slots = njs_sort_indexed_properties(vm, this, length, compare, 1, &nslots,
&nunds);
if (njs_slow_path(slots == NULL)) {
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Fixed building by GCC with -O3.

Vadim Zhestikov via nginx-devel 261 August 23, 2023 01:14PM



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

Online Users

Guests: 327
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready