Unreachable Data Flow at semcheck.c:132 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
compatible_ftypes (/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dfilter/semcheck.c)![]() | ||||||
![]() | ||||||
64 | compatible_ftypes(ftenum_t a, ftenum_t b) | |||||
65 | { | |||||
66 | switch (a) { | |||||
67 | case FT_NONE: | |||||
68 | case FT_PROTOCOL: | |||||
69 | case FT_FLOAT: /* XXX - should be able to compare with INT */ | |||||
70 | case FT_DOUBLE: /* XXX - should be able to compare with INT */ | |||||
71 | case FT_ABSOLUTE_TIME: | |||||
72 | case FT_RELATIVE_TIME: | |||||
73 | case FT_IPv4: | |||||
74 | case FT_IPv6: | |||||
75 | case FT_IPXNET: | |||||
76 | case FT_INT64: /* XXX - should be able to compare with INT */ | |||||
77 | case FT_UINT64: /* XXX - should be able to compare with INT */ | |||||
78 | return a == b; | |||||
79 | ||||||
80 | case FT_ETHER: | |||||
81 | case FT_BYTES: | |||||
82 | case FT_UINT_BYTES: | |||||
83 | case FT_GUID: | |||||
84 | case FT_OID: | |||||
85 | return (b == FT_ETHER || b == FT_BYTES || b == FT_UINT_BYTES || b == FT_GUID || b == FT_OID); | |||||
86 | ||||||
87 | case FT_BOOLEAN: | |||||
88 | case FT_FRAMENUM: | |||||
89 | case FT_UINT8: | |||||
90 | case FT_UINT16: | |||||
91 | case FT_UINT24: | |||||
92 | case FT_UINT32: | |||||
93 | case FT_INT8: | |||||
94 | case FT_INT16: | |||||
95 | case FT_INT24: | |||||
96 | case FT_INT32: | |||||
97 | switch (b) { | |||||
98 | case FT_BOOLEAN: | |||||
99 | case FT_FRAMENUM: | |||||
100 | case FT_UINT8: | |||||
101 | case FT_UINT16: | |||||
102 | case FT_UINT24: | |||||
103 | case FT_UINT32: | |||||
104 | case FT_INT8: | |||||
105 | case FT_INT16: | |||||
106 | case FT_INT24: | |||||
107 | case FT_INT32: | |||||
108 | return TRUE; | |||||
109 | default: | |||||
110 | return FALSE; | |||||
111 | } | |||||
112 | ||||||
113 | case FT_STRING: | |||||
114 | case FT_STRINGZ: | |||||
115 | case FT_EBCDIC: | |||||
116 | case FT_UINT_STRING: | |||||
117 | switch (b) { | |||||
118 | case FT_STRING: | |||||
119 | case FT_STRINGZ: | |||||
120 | case FT_UINT_STRING: | |||||
121 | return TRUE; | |||||
122 | default: | |||||
123 | return FALSE; | |||||
124 | } | |||||
125 | ||||||
126 | case FT_PCRE: | |||||
127 | case FT_NUM_TYPES: | |||||
128 | g_assert_not_reached(); | |||||
129 | } | |||||
130 | ||||||
131 | g_assert_not_reached(); | |||||
132 | return FALSE;
| |||||
133 | } | |||||
![]() |