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/snprintf.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/snprintf.h')
-rw-r--r-- | main/snprintf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/snprintf.h b/main/snprintf.h index 98742e00b0..6cef41f3f4 100644 --- a/main/snprintf.h +++ b/main/snprintf.h @@ -84,7 +84,7 @@ PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...); PHPAPI int ap_php_vsnprintf(char *, size_t, const char *, va_list ap); PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap); PHPAPI int ap_php_asprintf(char **buf, const char *format, ...); -PHPAPI int php_sprintf (char* s, const char* format, ...); +PHPAPI int php_sprintf (char* s, const char* format, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3); PHPAPI char * php_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf); PHPAPI char * php_conv_fp(register char format, register double num, boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, size_t *len); |