(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/capture_dlg.c) |
| |
| 504 | | | static guint32 ( |
| 505 | | | GtkWidget *unit_om, |
| 506 | | | guint32 value) |
| 507 | | | { |
| 508 | | | GtkWidget *, *; |
| 509 | | | int unit; |
| 510 | | | |
| 511 | | | = ((unit_om));
x /usr/include/gtk-2.0/gtk/gtkoptionmenu.h |
| |
38 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
|
| 512 | | | = (());
x /usr/include/gtk-2.0/gtk/gtkmenu.h |
| |
42 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
|
| 513 | | | unit = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(), "time_unit"));
x /usr/include/glib-2.0/gobject/gobject.h |
| |
52 | #define G_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_OBJECT, GObject)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
181 | #define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
222 | #define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT)) |
| |
|
| 514 | | | |
| 515 | | | |
| 516 | | | switch(unit) { |
| 517 | | | case(TIME_UNIT_SECOND): |
| 518 | | | return value; |
| 519 | | | case(TIME_UNIT_MINUTE): |
| 520 | | | return value * 60; |
| 521 | | | case(TIME_UNIT_HOUR): |
| 522 | | | return value * 60 * 60; |
| 523 | | | case(TIME_UNIT_DAY): |
| 524 | | | return value * 60 * 60 * 24; |
| 525 | | | default: |
| 526 | | | g_assert_not_reached();
x /usr/include/glib-2.0/glib/gtestutils.h |
| |
73 | #define g_assert_not_reached() do { g_assertion_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, NULL); } while (0) |
| |
x /usr/include/glib-2.0/glib/gmacros.h |
| |
160 | # define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__)) |
| |
|
| 527 | | | return 0; |
Unreachable Data Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 528 | | | } |
| 529 | | | } |
| |