changeset 2567:4e621b3f013e

Fixed compilation with old gcc. This fixed compilation issues with gcc-4.1.
author Dmitry Volyntsev <xeioex@nginx.com>
date Wed, 04 Jun 2025 23:07:11 -0700
parents c57fd8226c8c
children 84478627a37c
files src/njs_value.c src/njs_vmcode.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/njs_value.c	Wed Jun 04 22:54:54 2025 -0700
+++ b/src/njs_value.c	Wed Jun 04 23:07:11 2025 -0700
@@ -8,8 +8,9 @@
 #include <njs_main.h>
 
 
-static njs_int_t njs_object_property_query(njs_vm_t *vm,
-    njs_property_query_t *pq, njs_object_t *object, uint32_t atom_id);
+njs_inline njs_int_t
+njs_object_property_query(njs_vm_t *vm, njs_property_query_t *pq,
+    njs_object_t *object, uint32_t atom_id);
 static njs_int_t njs_array_property_query(njs_vm_t *vm,
     njs_property_query_t *pq, njs_array_t *array, uint32_t index,
     uint32_t atom_id);
--- a/src/njs_vmcode.c	Wed Jun 04 22:54:54 2025 -0700
+++ b/src/njs_vmcode.c	Wed Jun 04 23:07:11 2025 -0700
@@ -2591,7 +2591,7 @@
 }
 
 
-inline njs_object_t *
+njs_object_t *
 njs_function_new_object(njs_vm_t *vm, njs_value_t *constructor)
 {
     njs_value_t     proto, bound;