From fc55891d3168c079ed5ff95929f42fc56c8b6e06 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index 14f8950b..e5217fec 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -5337,7 +5337,7 @@ nghttp2_stream_get_sum_dependency_weight(nghttp2_stream *stream); * ``DEBUGBUILD`` macro defined. */ typedef void (*nghttp2_debug_vprintf_callback)(const char *format, - va_list args); + va_list args) __attribute__ ((format(printf, 1, 0))); /** * @function