Skip to content

Suppress CID 1523641 - dead code in XPACK#11664

Merged
JosiahWI merged 1 commit intoapache:masterfrom
JosiahWI:fix/cid1497231
Aug 13, 2024
Merged

Suppress CID 1523641 - dead code in XPACK#11664
JosiahWI merged 1 commit intoapache:masterfrom
JosiahWI:fix/cid1497231

Conversation

@JosiahWI
Copy link
Copy Markdown
Contributor

The variable use_huffman is used to decide which branch to take, but is hardcoded to true. This has already been suppressed for cppcheck, and Coverity says we can suppress it by declaring the variable with const. I think constexpr should also work, but I couldn't confirm this.

The variable `use_huffman` is used to decide which branch to take, but is
hardcoded to `true`. This has already been suppressed for cppcheck, and
Coverity says we can suppress it by declaring the variable with `const`. I
think `constexpr` should also work, but I couldn't confirm this.
@JosiahWI JosiahWI added this to the 10.1.0 milestone Aug 10, 2024
@JosiahWI JosiahWI self-assigned this Aug 10, 2024
@JosiahWI JosiahWI changed the title Suppress CID 1523641 Suppress CID 1523641 - dead code in XPACK Aug 12, 2024
Copy link
Copy Markdown
Member

@maskit maskit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's give it a a shot.

@JosiahWI JosiahWI merged commit 2adc60f into apache:master Aug 13, 2024
@JosiahWI JosiahWI deleted the fix/cid1497231 branch August 13, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants