From: Vadim Zhestikov Date: Wed, 23 Aug 2023 17:09:22 +0000 (-0700) Subject: Fixed building by GCC with -O3. X-Git-Tag: 0.8.1~15 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=e694d61a94c711b7c48b0ae23909a4cef7c65700;p=njs.git Fixed building by GCC with -O3. --- 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)) {