Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead code at line 256 of acl_program.cpp #237

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

intel-liudean
Copy link
Contributor

@intel-liudean intel-liudean commented Jan 6, 2023

This is to fix the Coverity issue:

src/acl_program.cpp:256:7:
Type: Dead default in switch (DEADCODE)

src/acl_program.cpp:225:3:
cond_const: Condition "pass < 2", taking true branch. Now the value of "pass" is equal to 0.
src/acl_program.cpp:227:5:
cond_const: Condition "pass == 1", taking true branch. Now the value of "pass" is equal to 1.
src/acl_program.cpp:246:12:
equality_cond: Jumping to case "0".
src/acl_program.cpp:249:12:
equality_cond: Jumping to case "1".
src/acl_program.cpp:245:15:
between: When switching on "pass", the value of "pass" must be between 0 and 1.
src/acl_program.cpp:245:7:
dead_error_condition: The "switch" governing value "pass" cannot reach the "default" case.
src/acl_program.cpp:256:7:
dead_error_begin: Execution cannot reach this statement: "default:".

@zibaiwan zibaiwan added this to the 2023.2 milestone Jan 6, 2023
Copy link
Contributor

@zibaiwan zibaiwan left a comment

Choose a reason for hiding this comment

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

Thanks @intel-liudean !

@pcolberg pcolberg merged commit 4ae4e73 into intel:main Jan 6, 2023
@intel-liudean intel-liudean deleted the my-feature branch January 12, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants