1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove unused buffer variables (#15550)

These emit warning: unused variable 'buffer'.
This commit is contained in:
Peter Kokot
2024-08-23 16:40:19 +02:00
committed by GitHub
parent d9695401e4
commit 062e9f9134

View File

@@ -622,7 +622,6 @@ static bool zend_call_stack_get_netbsd_vm(zend_call_stack *stack, void **ptr)
char *start, *end;
struct kinfo_vmentry *entry;
size_t len, max_size;
char buffer[4096];
uintptr_t addr_on_stack = (uintptr_t) zend_call_stack_position();
int mib[5] = { CTL_VM, VM_PROC, VM_PROC_MAP, getpid(), sizeof(struct kinfo_vmentry) };
bool found = false;
@@ -704,7 +703,6 @@ static bool zend_call_stack_get_solaris_pthread(zend_call_stack *stack)
#ifdef HAVE_LIBPROC_H
static bool zend_call_stack_get_solaris_proc_maps(zend_call_stack *stack)
{
char buffer[4096];
uintptr_t addr_on_stack = (uintptr_t) zend_call_stack_position();
bool found = false, r = false;
struct ps_prochandle *proc;