Skip to content

Commit

Permalink
maybe fix clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Oct 2, 2024
1 parent e7d4ef5 commit b7ce2bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion thirdparty/flatcc/src/runtime/emitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ int flatcc_emitter_recycle_page(flatcc_emitter_t *E, flatcc_emitter_page_t *p)

void flatcc_emitter_reset(flatcc_emitter_t *E)
{
flatcc_emitter_page_t *p = E->front;
flatcc_emitter_page_t *p = E->front; // NOLINT(clang-analyzer-deadcode.DeadStores)

if (!E->front) {
return;
Expand Down
4 changes: 2 additions & 2 deletions thirdparty/flatcc/src/runtime/verifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@ int flatcc_verify_union_vector_field(flatcc_table_verifier_descriptor_t *td,
const utype_t *types;
uoffset_t count, base;

if (0 == (vte_type = read_vt_entry(td, id - 1))) {
if (0 == (vte_table = read_vt_entry(td, id))) {
if (0 == (vte_type = read_vt_entry(td, id - 1))) { // NOLINT(clang-analyzer-deadcode.DeadStores)
if (0 == (vte_table = read_vt_entry(td, id))) { // NOLINT(clang-analyzer-deadcode.DeadStores)
verify(!required, flatcc_verify_error_type_field_absent_from_required_union_vector_field);
}
}
Expand Down

0 comments on commit b7ce2bf

Please sign in to comment.