Skip to content

Commit 062e9f9

Browse files
authored
Remove unused buffer variables (#15550)
These emit warning: unused variable 'buffer'.
1 parent d969540 commit 062e9f9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Zend/zend_call_stack.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,6 @@ static bool zend_call_stack_get_netbsd_vm(zend_call_stack *stack, void **ptr)
622622
char *start, *end;
623623
struct kinfo_vmentry *entry;
624624
size_t len, max_size;
625-
char buffer[4096];
626625
uintptr_t addr_on_stack = (uintptr_t) zend_call_stack_position();
627626
int mib[5] = { CTL_VM, VM_PROC, VM_PROC_MAP, getpid(), sizeof(struct kinfo_vmentry) };
628627
bool found = false;
@@ -704,7 +703,6 @@ static bool zend_call_stack_get_solaris_pthread(zend_call_stack *stack)
704703
#ifdef HAVE_LIBPROC_H
705704
static bool zend_call_stack_get_solaris_proc_maps(zend_call_stack *stack)
706705
{
707-
char buffer[4096];
708706
uintptr_t addr_on_stack = (uintptr_t) zend_call_stack_position();
709707
bool found = false, r = false;
710708
struct ps_prochandle *proc;

0 commit comments

Comments
 (0)