From 9e82687cbe988390a5695cd3fd5ef50f5243251b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 26 Jun 2015 23:21:01 +0900 Subject: [PATCH] Fix compile error with --enable-werror --- lib/nghttp2_stream.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/nghttp2_stream.c b/lib/nghttp2_stream.c index 8e89b994..0fd70405 100644 --- a/lib/nghttp2_stream.c +++ b/lib/nghttp2_stream.c @@ -433,8 +433,8 @@ static void check_dep_prev(nghttp2_stream *stream) { #endif /* STREAM_DEP_DEBUG */ -static void validate_tree(nghttp2_stream *stream) { #ifdef STREAM_DEP_DEBUG +static void validate_tree(nghttp2_stream *stream) { if (!stream) { return; } @@ -447,8 +447,10 @@ static void validate_tree(nghttp2_stream *stream) { check_sum_dep(stream); check_sum_norest(stream); check_dep_prev(stream); -#endif /* STREAM_DEP_DEBUG*/ } +#else /* !STREAM_DEP_DEBUG */ +static void validate_tree(nghttp2_stream *stream _U_) {} +#endif /* !STREAM_DEP_DEBUG*/ static int stream_update_dep_on_attach_item(nghttp2_stream *stream, nghttp2_session *session) {