Wireshark mailing list archives

Master build broken for me (packet-http2.c)


From: Martin Mathieson via Wireshark-dev <wireshark-dev () wireshark org>
Date: Fri, 28 Sep 2018 16:48:01 +0100

I am getting this build error:

home/martin/wireshark/epan/dissectors/packet-http2.c: In function
‘http2_get_stream_id’:
/home/martin/wireshark/epan/dissectors/packet-http2.c:1124:21: error:
‘http2_session_t’ has no member named ‘current_stream_id’
     return h2session->current_stream_id;
                     ^
/home/martin/wireshark/epan/dissectors/packet-http2.c:1125:1: error:
control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors

Should http_get_stream_id just return 0 if HAVE_NGHTTP2 is not defined, or
is it best not to even call it?
Regards,
Martin
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: