We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4091d24 commit adee760Copy full SHA for adee760
Zend/zend_portability.h
@@ -89,6 +89,9 @@
89
90
#if defined(ZEND_WIN32) && !defined(__clang__)
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 prefix with ;. */
94
+# define ZEND_ASSUME(c) ;__attribute__((assume(c)))
95
#elif defined(__clang__) && __has_builtin(__builtin_assume)
96
# pragma clang diagnostic ignored "-Wassume"
97
# define ZEND_ASSUME(c) __builtin_assume(c)
0 commit comments