diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2009-10-20 17:39:22 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2009-10-20 17:39:22 +0000 |
commit | 8ec5a160ecbe147ef92b86d0595703dd4ebe36da (patch) | |
tree | 79e1a756a2c2d56e4d616b2bb93d604a2eae008b /epan/proto.h | |
parent | 38cb8e82c350821b197709e6ebb0b9ff6124ea41 (diff) |
Make sure no one calls PROTO_ITEM_SET_*(proto_tree_add_*) by forcing a compile error if they do.
svn path=/trunk/; revision=30645
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/proto.h b/epan/proto.h index 5c1e8e7ab0..020ac6a1df 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -323,13 +323,13 @@ typedef proto_node proto_item; /** mark this protocol field to be hidden from the protocol tree display (used for filtering only) */ /* HIDING PROTOCOL FIELDS IS DEPRECATED, IT'S CONSIDERED TO BE BAD GUI DESIGN! */ #define PROTO_ITEM_SET_HIDDEN(proto_item) \ - ((proto_item) ? FI_SET_FLAG(PITEM_FINFO(proto_item), FI_HIDDEN) : 0) + ((proto_item = proto_item) ? FI_SET_FLAG(PITEM_FINFO(proto_item), FI_HIDDEN) : 0) /** is this protocol field generated by Wireshark (and not read from the packet data)? */ #define PROTO_ITEM_IS_GENERATED(proto_item) \ ((proto_item) ? FI_GET_FLAG(PITEM_FINFO(proto_item), FI_GENERATED) : 0) /** mark this protocol field as generated by Wireshark (and not read from the packet data) */ #define PROTO_ITEM_SET_GENERATED(proto_item) \ - ((proto_item) ? FI_SET_FLAG(PITEM_FINFO(proto_item), FI_GENERATED) : 0) + ((proto_item = proto_item) ? FI_SET_FLAG(PITEM_FINFO(proto_item), FI_GENERATED) : 0) /** is this protocol field actually a URL? */ #define PROTO_ITEM_IS_URL(proto_item) \ ((proto_item) ? FI_GET_FLAG(PITEM_FINFO(proto_item), FI_URL) : 0) |