Wireshark-commits: [Wireshark-commits] master 036c3d6: tshark: fix compilation with gcc-8 without p

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 21 Dec 2018 05:26:46 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=036c3d6bc7ef8fda1eb0506b923ac34f333e904e
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

036c3d6 by Dario Lombardo (lomato@xxxxxxxxx):

    tshark: fix compilation with gcc-8 without pcap.
    
    Error:
    CMakeFiles/tshark.dir/tshark.c.o   -c ../tshark.c
    ../tshark.c: In function 'real_main':
    ../tshark.c:706:24: error: variable 'max_packet_count' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
       int                  max_packet_count = 0;
                            ^~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    ninja: build stopped: subcommand failed.
    
    Change-Id: I92c0e2a57f5d0d2e39188cc18f0b25e1d5136a43
    Reviewed-on: https://code.wireshark.org/review/31149
    Petri-Dish: Dario Lombardo <lomato@xxxxxxxxx>
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  8b652fe   HDCP: Add support for HDCP 2.2 commands
     add  036c3d6   tshark: fix compilation with gcc-8 without pcap.


Summary of changes:
 tshark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)