Fix compile error with --enable-werror
This commit is contained in:
parent
660f90e13f
commit
9e82687cbe
|
@ -433,8 +433,8 @@ static void check_dep_prev(nghttp2_stream *stream) {
|
||||||
|
|
||||||
#endif /* STREAM_DEP_DEBUG */
|
#endif /* STREAM_DEP_DEBUG */
|
||||||
|
|
||||||
static void validate_tree(nghttp2_stream *stream) {
|
|
||||||
#ifdef STREAM_DEP_DEBUG
|
#ifdef STREAM_DEP_DEBUG
|
||||||
|
static void validate_tree(nghttp2_stream *stream) {
|
||||||
if (!stream) {
|
if (!stream) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -447,8 +447,10 @@ static void validate_tree(nghttp2_stream *stream) {
|
||||||
check_sum_dep(stream);
|
check_sum_dep(stream);
|
||||||
check_sum_norest(stream);
|
check_sum_norest(stream);
|
||||||
check_dep_prev(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,
|
static int stream_update_dep_on_attach_item(nghttp2_stream *stream,
|
||||||
nghttp2_session *session) {
|
nghttp2_session *session) {
|
||||||
|
|
Loading…
Reference in New Issue