ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 10065] New: unreachable code in ui/gtk/main.c

Date Prev · Date Next · Thread Prev · Thread Next
Date: Wed, 30 Apr 2014 20:44:07 +0000
Bug ID 10065
Summary unreachable code in ui/gtk/main.c
Classification Unclassified
Product Wireshark
Version Git
Hardware x86
OS FreeBSD
Status UNCONFIRMED
Severity Major
Priority Low
Component Wireshark
Assignee [email protected]
Reporter [email protected]

Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
>From ui/gtk/main.c:

Unreachable code due to conflicting defines: checking for GTKOSXAPPLICATION
inside _WIN32:

#ifdef _WIN32
    /* hide the (unresponsive) main window, while asking the user to close the
c
onsole window */
    gtk_widget_hide(top_level);

#ifdef HAVE_GTKOSXAPPLICATION
    g_object_unref(theApp);
#endif

    software_update_cleanup();

    /* Shutdown windows sockets */
    WSACleanup();

    /* For some unknown reason, the "atexit()" call in "create_console()"
       doesn't arrange that "destroy_console()" be called when we exit,
       so we call it here if a console was created. */
    destroy_console();
#endif

If this is a false positive it should be commented as such.

Thanks heaps,
Edwin


You are receiving this mail because:
  • You are watching all bug changes.