1
0
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:
Felipe Pena
2013-11-23 21:58:32 -02:00
parent 46f5da1dc1
commit f4f6c8f517
+5 -1
View File
@@ -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__)