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

Fixes "GC_BENCH" is not defined in extensions including zend_gc.h

Compilation warning encountered:

include/php/Zend/zend_gc.h:49:5: warning: "GC_BENCH" is not defined, evaluates to 0 [-Wundef]
   49 | #if GC_BENCH
      |     ^~~~~~~~
This commit is contained in:
Patrick Allaert
2023-06-22 17:40:15 +02:00
parent 165a4e53da
commit 973e9b2eec
2 changed files with 4 additions and 4 deletions

View File

@@ -70,10 +70,6 @@
#include "zend_API.h"
#include "zend_fibers.h"
#ifndef GC_BENCH
# define GC_BENCH 0
#endif
#ifndef ZEND_GC_DEBUG
# define ZEND_GC_DEBUG 0
#endif

View File

@@ -20,6 +20,10 @@
#ifndef ZEND_GC_H
#define ZEND_GC_H
#ifndef GC_BENCH
# define GC_BENCH 0
#endif
BEGIN_EXTERN_C()
typedef struct _zend_gc_status {