Skip to content

Commit a520413

Browse files
committed
Fixed compilation with old gcc.
This fixed compilation issues with gcc-4.1.
1 parent 11d1cef commit a520413

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/njs_value.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
#include <njs_main.h>
99

1010

11-
static njs_int_t njs_object_property_query(njs_vm_t *vm,
12-
njs_property_query_t *pq, njs_object_t *object, uint32_t atom_id);
11+
njs_inline njs_int_t
12+
njs_object_property_query(njs_vm_t *vm, njs_property_query_t *pq,
13+
njs_object_t *object, uint32_t atom_id);
1314
static njs_int_t njs_array_property_query(njs_vm_t *vm,
1415
njs_property_query_t *pq, njs_array_t *array, uint32_t index,
1516
uint32_t atom_id);

src/njs_vmcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,7 @@ njs_function_frame_create(njs_vm_t *vm, njs_value_t *value,
25912591
}
25922592

25932593

2594-
inline njs_object_t *
2594+
njs_object_t *
25952595
njs_function_new_object(njs_vm_t *vm, njs_value_t *constructor)
25962596
{
25972597
njs_value_t proto, bound;

0 commit comments

Comments
 (0)