mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
- Added gcc attribute to check formatting parameters
This commit is contained in:
+5
-1
@@ -42,7 +42,11 @@ enum {
|
||||
P_LOG
|
||||
};
|
||||
|
||||
int phpdbg_print(int TSRMLS_DC, FILE*, const char*, ...);
|
||||
#ifdef ZTS
|
||||
int phpdbg_print(int TSRMLS_DC, FILE*, const char*, ...) PHP_ATTRIBUTE_FORMAT(printf, 4, 5);
|
||||
#else
|
||||
int phpdbg_print(int TSRMLS_DC, FILE*, const char*, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
|
||||
#endif
|
||||
|
||||
#define phpdbg_error(fmt, ...) phpdbg_print(P_ERROR TSRMLS_CC, PHPDBG_G(io)[PHPDBG_STDOUT], fmt, ##__VA_ARGS__)
|
||||
#define phpdbg_notice(fmt, ...) phpdbg_print(P_NOTICE TSRMLS_CC, PHPDBG_G(io)[PHPDBG_STDOUT], fmt, ##__VA_ARGS__)
|
||||
|
||||
Reference in New Issue
Block a user