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 bugzilla-admin@wireshark.org
Reporter wireshark@mavetju.org

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.