From e694d61a94c711b7c48b0ae23909a4cef7c65700 Mon Sep 17 00:00:00 2001 From: Vadim Zhestikov Date: Wed, 23 Aug 2023 10:09:22 -0700 Subject: [PATCH] Fixed building by GCC with -O3. --- src/njs_array.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/njs_array.c b/src/njs_array.c index 09a45339..7a57c886 100644 --- a/src/njs_array.c +++ b/src/njs_array.c @@ -2952,6 +2952,9 @@ njs_array_prototype_sort(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, 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)) { -- 2.47.3