details: https://hg.nginx.org/njs/rev/c0f581b26e84 branches: changeset: 2185:c0f581b26e84 user: Vadim Zhestikov <v.zhesti...@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