mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-08 14:00:07 -04:00
Quiet Clang Static Analyzer warnings.
Most of the warnings were caused by uninitialized values. Some were in plug-ins that didn't have a break in a switch, causing the memory to be deleted twice.
This commit is contained in:
@@ -1091,7 +1091,7 @@ float lnxgameController::get_button_value(sbyte controller, ct_format format, ub
|
||||
float lnxgameController::get_axis_value(sbyte controller, ubyte axis, ct_format format, bool invert) {
|
||||
struct lnxgameController::t_controller *ctldev;
|
||||
float val = (float)0.0;
|
||||
float normalizer, axisval, nullzone; //, senszone;
|
||||
float normalizer, axisval = 0, nullzone; //, senszone;
|
||||
|
||||
if (controller <= NULL_LNXCONTROLLER || controller >= CT_MAX_CONTROLLERS) {
|
||||
return 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user