Add attribute format in nghttp2_debug_vprintf_callback

Change-Id: I991b84ce731adbd25f5cdf565333db1a19e75ec6
This commit is contained in:
Wei Shi S 2018-04-11 09:44:08 +08:00
parent fc55891d31
commit 66ddd22a5c
1 changed files with 5 additions and 1 deletions

View File

@ -5337,7 +5337,11 @@ nghttp2_stream_get_sum_dependency_weight(nghttp2_stream *stream);
* ``DEBUGBUILD`` macro defined. * ``DEBUGBUILD`` macro defined.
*/ */
typedef void (*nghttp2_debug_vprintf_callback)(const char *format, typedef void (*nghttp2_debug_vprintf_callback)(const char *format,
va_list args) __attribute__ ((format(printf, 1, 0))); va_list args)
#ifdef __GNUC__
__attribute__ ((format(printf, 1, 0)))
#endif
;
/** /**
* @function * @function