File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 89
89
90
90
#if defined(ZEND_WIN32) && !defined(__clang__)
91
91
# define ZEND_ASSUME (c ) __assume(c)
92
+ #elif defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 13
93
+ /* GCC emits a warning when __attribute__ appears directly after a label, so we need a do-while loop. */
94
+ # define ZEND_ASSUME (c ) do { __attribute__ ((assume (c))); } while (0 )
92
95
#elif defined(__clang__) && __has_builtin(__builtin_assume)
93
96
# pragma clang diagnostic ignored "-Wassume"
94
97
# define ZEND_ASSUME (c ) __builtin_assume(c)
Original file line number Diff line number Diff line change @@ -333,8 +333,10 @@ void *phpdbg_watchpoint_userfaultfd_thread(void *phpdbg_globals) {
333
333
334
334
/* ### REGISTER WATCHPOINT ### To be used only by watch element and collision managers ### */
335
335
static inline void phpdbg_store_watchpoint_btree (phpdbg_watchpoint_t * watch ) {
336
- phpdbg_btree_result * res ;
337
- ZEND_ASSERT ((res = phpdbg_btree_find (& PHPDBG_G (watchpoint_tree ), (zend_ulong ) watch -> addr .ptr )) == NULL || res -> ptr == watch );
336
+ #if ZEND_DEBUG
337
+ phpdbg_btree_result * res = phpdbg_btree_find (& PHPDBG_G (watchpoint_tree ), (zend_ulong ) watch -> addr .ptr );
338
+ ZEND_ASSERT (res == NULL || res -> ptr == watch );
339
+ #endif
338
340
phpdbg_btree_insert (& PHPDBG_G (watchpoint_tree ), (zend_ulong ) watch -> addr .ptr , watch );
339
341
}
340
342
You can’t perform that action at this time.
0 commit comments