Skip to content

Commit 973e9b2

Browse files
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 | ^~~~~~~~
1 parent 165a4e5 commit 973e9b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Zend/zend_gc.c

-4
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@
7070
#include "zend_API.h"
7171
#include "zend_fibers.h"
7272

73-
#ifndef GC_BENCH
74-
# define GC_BENCH 0
75-
#endif
76-
7773
#ifndef ZEND_GC_DEBUG
7874
# define ZEND_GC_DEBUG 0
7975
#endif

Zend/zend_gc.h

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#ifndef ZEND_GC_H
2121
#define ZEND_GC_H
2222

23+
#ifndef GC_BENCH
24+
# define GC_BENCH 0
25+
#endif
26+
2327
BEGIN_EXTERN_C()
2428

2529
typedef struct _zend_gc_status {

0 commit comments

Comments
 (0)