- add PHP_ATTRIBUTE_FORMAT
[m6w6/ext-http] / php_http_api.h
index 1924f96fe290b8197242a587db34b5c3e295d062..bd229e3f4d11c0798fe0fe7f388581b8af25be25 100644 (file)
@@ -33,7 +33,7 @@ extern STATUS _http_parse_key_list(const char *list, HashTable *items, char sepa
 
 #define http_error(type, code, string) _http_error_ex(type, code, "%s", string)
 #define http_error_ex _http_error_ex
 
 #define http_error(type, code, string) _http_error_ex(type, code, "%s", string)
 #define http_error_ex _http_error_ex
-extern void _http_error_ex(long type, long code, const char *format, ...);
+extern void _http_error_ex(long type, long code, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
 
 #define http_exit(s, h) http_exit_ex((s), (h), 1)
 #define http_exit_ex(s, h, f) _http_exit_ex((s), (h), (f) TSRMLS_CC)
 
 #define http_exit(s, h) http_exit_ex((s), (h), 1)
 #define http_exit_ex(s, h, f) _http_exit_ex((s), (h), (f) TSRMLS_CC)