diff options
| author | Nikita Popov <nikic@php.net> | 2014-09-03 15:22:08 +0200 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2014-09-03 15:22:08 +0200 |
| commit | fdd1e96f3e90895134c4082bde8cad475378deac (patch) | |
| tree | 385a39da785e7265e265597b0c4ed2380147b70c /main/spprintf.h | |
| parent | 9e753531842f524a1a147ca0244c041e59ecd117 (diff) | |
| download | php-git-fdd1e96f3e90895134c4082bde8cad475378deac.tar.gz | |
Revert "remove a few gcc format attributes from some printf-like functions"
This reverts commit 25f5ba94aca1e89ee5f0c66513e58826afa3b853.
Diffstat (limited to 'main/spprintf.h')
| -rw-r--r-- | main/spprintf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/spprintf.h b/main/spprintf.h index 70e4b0df7a..1e4782843f 100644 --- a/main/spprintf.h +++ b/main/spprintf.h @@ -37,9 +37,9 @@ There is also snprintf: See difference explained in snprintf.h #include "snprintf.h" BEGIN_EXTERN_C() -PHPAPI size_t spprintf( char **pbuf, size_t max_len, const char *format, ...); +PHPAPI size_t spprintf( char **pbuf, size_t max_len, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4); -PHPAPI size_t vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap); +PHPAPI size_t vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) PHP_ATTRIBUTE_FORMAT(printf, 3, 0); PHPAPI zend_string *vstrpprintf(size_t max_len, const char *format, va_list ap); |
