Wireshark-dev: [Wireshark-dev] can't compile master 62874e37789272afdcf97d25339428b60b2c84b0
Hi,
with gcc 7.3 I get:
=====
/home/teto/wireshark/epan/dissectors/file-rfc7468.c: In function
'dissect_rfc7468':
/home/teto/wireshark/epan/dissectors/file-rfc7468.c:138:9: error:
'labellen' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
int labellen;
^~~~~~~~
/home/teto/wireshark/epan/dissectors/file-rfc7468.c:201:11: error:
'labelp' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
label = wmem_strndup(wmem_packet_scope(), labelp, labellen);
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [epan/dissectors/CMakeFiles/dissectors.dir/build.make:1615:
epan/dissectors/CMakeFiles/dissectors.dir/file-rfc7468.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2120:
epan/dissectors/CMakeFiles/dissectors.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
=====
Seems like it was introduced in Change-Id:
I98db9f0beb86e5694fb8e886005a2df4fc96ba71
cheers