-
Notifications
You must be signed in to change notification settings - Fork 168
Coverity Unused values Issues #5763
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
base: master
Are you sure you want to change the base?
Conversation
Since we are explicitly setting the exact flag values. For coverity 1320526
Since it would be overwritten next line anyway. For coverity 1320527
For coverity 1523417
This was originally `glBlendFunc(GL_ONE, GL_ZERO);` `blendfunc_Value[0] = GL_ONE;` `blendfunc_Value[1] = GL_ZERO;` Marked by coverity 1523247
So that linters and coverity don't complain about the initial value being overwritten. Coverity 1320531
For coverity 1522980
In hud_lock_acquire_current_target, because we didn't need a pointer here, we needed a pointer of a pointer. For coverity 1522999
This is just another cleanup pointed out by coverity 1523154
This cleans up the code and keeps us from thinking that target_ship_obj is needed. This is a retail issue. Marked by coverity 1320528
1da3be5
to
2fca4e4
Compare
Game seems unaffected (as expected) from tests. |
@@ -719,7 +719,7 @@ void hud_do_lock_indicator(float frametime) | |||
} | |||
} | |||
|
|||
void hud_lock_acquire_current_target(object *target_objp, ship_subsys *target_subsys) | |||
void hud_lock_acquire_current_target(object *target_objp, ship_subsys **target_subsys) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will now modify the source target subsys, which is obviously the intent of the function but didn't happen before now. Have the repercussions been checked?
Putting this on hold until we have a more complete understanding of the hud_lock_acquire_current_target
consequences
Some coverity issues in the "Unused Values" category. In draft because I need to see this patch's effect on targeting large ship subsystems.