From 66ddd22a5c9a0a7c868da56fcd4c5cb309ec2c3b Mon Sep 17 00:00:00 2001 From: Wei Shi S Date: Wed, 11 Apr 2018 09:44:08 +0800 Subject: [PATCH] Add attribute format in nghttp2_debug_vprintf_callback Change-Id: I991b84ce731adbd25f5cdf565333db1a19e75ec6 --- lib/includes/nghttp2/nghttp2.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index e5217fec..e960a8dc 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -5337,7 +5337,11 @@ nghttp2_stream_get_sum_dependency_weight(nghttp2_stream *stream); * ``DEBUGBUILD`` macro defined. */ 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