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:
C.W. Betts
2024-04-19 17:42:17 -06:00
parent 0d6fcb1e7e
commit 7d7f5bf896
82 changed files with 99 additions and 55 deletions

View File

@@ -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;