diff options
author | Gerald Combs <gerald@wireshark.org> | 2024-03-28 12:24:15 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2024-03-28 13:40:07 -0700 |
commit | 16186deb94bf5843ef6ec5f567a7df421ec32628 (patch) | |
tree | 41c8d9fb203aafae333887b97be0250413519d56 /epan/proto.c | |
parent | 318e8d3161ac23a7f486a74500d4d2b05403a58a (diff) |
epan: Add some Clang-tidy suppressions
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/proto.c b/epan/proto.c index f9c05202b5..46d94c877b 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -751,6 +751,7 @@ proto_cleanup(void) } static gboolean +// NOLINTNEXTLINE(misc-no-recursion) proto_tree_traverse_pre_order(proto_tree *tree, proto_tree_traverse_func func, gpointer data) { @@ -770,6 +771,7 @@ proto_tree_traverse_pre_order(proto_tree *tree, proto_tree_traverse_func func, */ current = child; child = current->next; + // We recurse here, but we're limited by prefs.gui_max_tree_depth if (proto_tree_traverse_pre_order((proto_tree *)current, func, data)) return TRUE; } @@ -8509,6 +8511,7 @@ proto_is_pino(const protocol_t *protocol) } gboolean +// NOLINTNEXTLINE(misc-no-recursion) proto_is_protocol_enabled(const protocol_t *protocol) { if (protocol == NULL) @@ -8522,6 +8525,7 @@ proto_is_protocol_enabled(const protocol_t *protocol) } gboolean +// NOLINTNEXTLINE(misc-no-recursion) proto_is_protocol_enabled_by_default(const protocol_t *protocol) { //parent protocol determines enable/disable for helper dissectors @@ -8532,6 +8536,7 @@ proto_is_protocol_enabled_by_default(const protocol_t *protocol) } gboolean +// NOLINTNEXTLINE(misc-no-recursion) proto_can_toggle_protocol(const int proto_id) { protocol_t *protocol; |