Index: results/cppcheckError.csv =================================================================== diff -u -re60e5c1a161b4555e510e1ccb83ade20a05bd891 -r9a0cfb1c769885983915af774db1b3183e99f487 --- results/cppcheckError.csv (.../cppcheckError.csv) (revision e60e5c1a161b4555e510e1ccb83ade20a05bd891) +++ results/cppcheckError.csv (.../cppcheckError.csv) (revision 9a0cfb1c769885983915af774db1b3183e99f487) @@ -1,11 +1,11 @@ File, Line No., Severity, Issue, Description -dgfirmware/firmware/App/Controllers/DrainPump.c,173,style,unreadVariable,Variable 'drnPumpSpd' is assigned a value that is never used. -dgfirmware/firmware/App/Controllers/ROPump.c,347,style,unreadVariable,Variable 'tgtPres' is assigned a value that is never used. -dgfirmware/firmware/App/Controllers/ROPump.c,348,style,unreadVariable,Variable 'actPres' is assigned a value that is never used. -dgfirmware/firmware/App/Controllers/ROPump.c,349,style,unusedVariable,Unused variable: newPWM -dgfirmware/firmware/App/Controllers/TemperatureSensors.c,543,style,redundantAssignment,Variable 'isADCValid' is reassigned a value before the old one has been used. -dgfirmware/firmware/App/Services/Interrupts.c,171,style,variableScope,The scope of the variable 'debugStr' can be reduced. -dgfirmware/firmware/App/Services/PIControllers.c,77,style,variableScope,The scope of the variable 'controller' can be reduced. +dgfirmware/firmware/App/Controllers/DrainPump.c,170,style,unreadVariable,Variable 'drnPumpSpd' is assigned a value that is never used. +dgfirmware/firmware/App/Controllers/ROPump.c,346,style,unreadVariable,Variable 'tgtPres' is assigned a value that is never used. +dgfirmware/firmware/App/Controllers/ROPump.c,347,style,unreadVariable,Variable 'actPres' is assigned a value that is never used. +dgfirmware/firmware/App/Controllers/ROPump.c,348,style,unusedVariable,Unused variable: newPWM +dgfirmware/firmware/App/Controllers/TemperatureSensors.c,534,style,redundantAssignment,Variable 'isADCValid' is reassigned a value before the old one has been used. +dgfirmware/firmware/App/Services/Interrupts.c,177,style,variableScope,The scope of the variable 'debugStr' can be reduced. +dgfirmware/firmware/App/Services/PIControllers.c,76,style,variableScope,The scope of the variable 'controller' can be reduced. dgfirmware/firmware/App/Services/Reservoirs.c,258,style,redundantAssignment,Variable 'result' is reassigned a value before the old one has been used. dgfirmware/firmware/FWCommon/FlashDrvr/Fapi_UserDefinedFunctions.c,0,information,toomanyconfigs,Too many #ifdef configurations - cppcheck only checks 12 of 21 configurations. Use --force to check all configurations. dgfirmware/firmware/FWCommon/NVDataMgmt.c,1531,style,variableScope,The scope of the variable 'quotient' can be reduced. @@ -18,53 +18,52 @@ dgfirmware/firmware/FWCommon/Utilities.c,214,style,variableScope,The scope of the variable 'timeInMS' can be reduced. dgfirmware/firmware/FWCommon/irqDispatch_c.c,76,style,unusedFunction,The function 'C_irqDispatch' is never used. dgfirmware/firmware/FWCommon/FlashDrvr/Fapi_UserDefinedFunctions.c,68,style,unusedFunction,The function 'Fapi_serviceWatchdogTimer' is never used. -dgfirmware/firmware/App/Drivers/InternalADC.c,118,style,unusedFunction,The function 'adcNotification' is never used. +dgfirmware/firmware/App/Drivers/InternalADC.c,114,style,unusedFunction,The function 'adcNotification' is never used. dgfirmware/firmware/FWCommon/Timers.c,147,style,unusedFunction,The function 'calcTimeBetween' is never used. -dgfirmware/firmware/App/Services/Interrupts.c,168,style,unusedFunction,The function 'canErrorNotification' is never used. -dgfirmware/firmware/App/Services/Interrupts.c,147,style,unusedFunction,The function 'canMessageNotification' is never used. -dgfirmware/firmware/App/Services/Interrupts.c,313,style,unusedFunction,The function 'dmaGroupANotification' is never used. -dgfirmware/firmware/App/Services/AlarmMgmt.c,75,style,unusedFunction,The function 'execAlarmMgmt' is never used. -dgfirmware/firmware/App/Controllers/DrainPump.c,398,style,unusedFunction,The function 'execDrainPumpTest' is never used. +dgfirmware/firmware/App/Services/Interrupts.c,174,style,unusedFunction,The function 'canErrorNotification' is never used. +dgfirmware/firmware/App/Services/Interrupts.c,152,style,unusedFunction,The function 'canMessageNotification' is never used. +dgfirmware/firmware/App/Services/Interrupts.c,319,style,unusedFunction,The function 'dmaGroupANotification' is never used. +dgfirmware/firmware/App/Services/AlarmMgmt.c,72,style,unusedFunction,The function 'execAlarmMgmt' is never used. +dgfirmware/firmware/App/Controllers/DrainPump.c,393,style,unusedFunction,The function 'execDrainPumpTest' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,736,style,unusedFunction,The function 'execNVDataMgmt' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,613,style,unusedFunction,The function 'execNVDataMgmtSelfTest' is never used. -dgfirmware/firmware/App/Controllers/ROPump.c,502,style,unusedFunction,The function 'execROPumpTest' is never used. +dgfirmware/firmware/App/Controllers/ROPump.c,497,style,unusedFunction,The function 'execROPumpTest' is never used. dgfirmware/firmware/FWCommon/RTC.c,355,style,unusedFunction,The function 'execRTC' is never used. -dgfirmware/firmware/FWCommon/RTC.c,298,style,unusedFunction,The function 'execRTCSelfTest' is never used. dgfirmware/firmware/FWCommon/Accel.c,670,style,unusedFunction,The function 'getAccelCalibration' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,723,style,unusedFunction,The function 'getBootloaderFlag' is never used. dgfirmware/firmware/FWCommon/Utilities.c,254,style,unusedFunction,The function 'getCriticalData' is never used. dgfirmware/firmware/App/Modes/ModeChemicalDisinfect.c,95,style,unusedFunction,The function 'getCurrentChemicalDisinfectState' is never used. -dgfirmware/firmware/App/Modes/ModeDrain.c,152,style,unusedFunction,The function 'getCurrentDrainState' is never used. -dgfirmware/firmware/App/Modes/ModeFault.c,93,style,unusedFunction,The function 'getCurrentFaultState' is never used. -dgfirmware/firmware/App/Modes/ModeFill.c,189,style,unusedFunction,The function 'getCurrentFillState' is never used. -dgfirmware/firmware/App/Modes/ModeFlush.c,95,style,unusedFunction,The function 'getCurrentFlushState' is never used. +dgfirmware/firmware/App/Modes/ModeDrain.c,149,style,unusedFunction,The function 'getCurrentDrainState' is never used. +dgfirmware/firmware/App/Modes/ModeFault.c,92,style,unusedFunction,The function 'getCurrentFaultState' is never used. +dgfirmware/firmware/App/Modes/ModeFill.c,184,style,unusedFunction,The function 'getCurrentFillState' is never used. +dgfirmware/firmware/App/Modes/ModeFlush.c,93,style,unusedFunction,The function 'getCurrentFlushState' is never used. dgfirmware/firmware/App/Modes/ModeHeatDisinfect.c,94,style,unusedFunction,The function 'getCurrentHeatDisinfectState' is never used. -dgfirmware/firmware/App/Modes/ModeInitPOST.c,227,style,unusedFunction,The function 'getCurrentInitAndPOSTState' is never used. -dgfirmware/firmware/App/Modes/ModeService.c,93,style,unusedFunction,The function 'getCurrentServiceState' is never used. -dgfirmware/firmware/App/Modes/ModeSolo.c,125,style,unusedFunction,The function 'getCurrentSoloState' is never used. -dgfirmware/firmware/App/Modes/ModeStandby.c,237,style,unusedFunction,The function 'getCurrentStandbyState' is never used. +dgfirmware/firmware/App/Modes/ModeInitPOST.c,232,style,unusedFunction,The function 'getCurrentInitAndPOSTState' is never used. +dgfirmware/firmware/App/Modes/ModeService.c,92,style,unusedFunction,The function 'getCurrentServiceState' is never used. +dgfirmware/firmware/App/Modes/ModeSolo.c,123,style,unusedFunction,The function 'getCurrentSoloState' is never used. +dgfirmware/firmware/App/Modes/ModeStandby.c,236,style,unusedFunction,The function 'getCurrentStandbyState' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,592,style,unusedFunction,The function 'getDisinfectionDate' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,328,style,unusedFunction,The function 'getMfgData' is never used. -dgfirmware/firmware/App/Services/PIControllers.c,189,style,unusedFunction,The function 'getPIControllerSignals' is never used. +dgfirmware/firmware/App/Services/PIControllers.c,188,style,unusedFunction,The function 'getPIControllerSignals' is never used. dgfirmware/firmware/FWCommon/RTC.c,414,style,unusedFunction,The function 'getRTCTimestamp' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,421,style,unusedFunction,The function 'getServiceDate' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,514,style,unusedFunction,The function 'getTreatmentTime' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,552,style,unusedFunction,The function 'getWaterConsumption' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,273,style,unusedFunction,The function 'initNVDataMgmt' is never used. -dgfirmware/firmware/App/Services/AlarmMgmt.c,259,style,unusedFunction,The function 'isAlarmActive' is never used. -dgfirmware/firmware/App/Modes/ModeInitPOST.c,173,style,unusedFunction,The function 'isPOSTCompleted' is never used. -dgfirmware/firmware/App/Modes/ModeInitPOST.c,187,style,unusedFunction,The function 'isPOSTPassed' is never used. -dgfirmware/firmware/App/Drivers/Comm.c,276,style,unusedFunction,The function 'isSCI2DMATransmitInProgress' is never used. -dgfirmware/firmware/App/Drivers/SafetyShutdown.c,75,style,unusedFunction,The function 'isSafetyShutdownActivated' is never used. -dgfirmware/firmware/App/Services/Interrupts.c,88,style,unusedFunction,The function 'phantomInterrupt' is never used. +dgfirmware/firmware/App/Services/AlarmMgmt.c,253,style,unusedFunction,The function 'isAlarmActive' is never used. +dgfirmware/firmware/App/Modes/ModeInitPOST.c,179,style,unusedFunction,The function 'isPOSTCompleted' is never used. +dgfirmware/firmware/App/Modes/ModeInitPOST.c,193,style,unusedFunction,The function 'isPOSTPassed' is never used. +dgfirmware/firmware/App/Drivers/Comm.c,274,style,unusedFunction,The function 'isSCI2DMATransmitInProgress' is never used. +dgfirmware/firmware/App/Drivers/SafetyShutdown.c,74,style,unusedFunction,The function 'isSafetyShutdownActivated' is never used. +dgfirmware/firmware/App/Services/Interrupts.c,93,style,unusedFunction,The function 'phantomInterrupt' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,466,style,unusedFunction,The function 'readLogData' is never used. dgfirmware/firmware/FWCommon/Utilities.c,320,style,unusedFunction,The function 'resetCriticalData' is never used. -dgfirmware/firmware/App/Services/Interrupts.c,111,style,unusedFunction,The function 'rtiNotification' is never used. -dgfirmware/firmware/App/Services/Interrupts.c,242,style,unusedFunction,The function 'sciNotification' is never used. +dgfirmware/firmware/App/Services/Interrupts.c,116,style,unusedFunction,The function 'rtiNotification' is never used. +dgfirmware/firmware/App/Services/Interrupts.c,248,style,unusedFunction,The function 'sciNotification' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,701,style,unusedFunction,The function 'setBootloaderFlag' is never used. -dgfirmware/firmware/App/Drivers/CPLD.c,129,style,unusedFunction,The function 'setCPLDLampBlue' is never used. -dgfirmware/firmware/App/Drivers/CPLD.c,107,style,unusedFunction,The function 'setCPLDLampGreen' is never used. -dgfirmware/firmware/App/Drivers/CPLD.c,151,style,unusedFunction,The function 'setCPLDLampRed' is never used. +dgfirmware/firmware/App/Drivers/CPLD.c,127,style,unusedFunction,The function 'setCPLDLampBlue' is never used. +dgfirmware/firmware/App/Drivers/CPLD.c,106,style,unusedFunction,The function 'setCPLDLampGreen' is never used. +dgfirmware/firmware/App/Drivers/CPLD.c,148,style,unusedFunction,The function 'setCPLDLampRed' is never used. dgfirmware/firmware/FWCommon/Utilities.c,291,style,unusedFunction,The function 'setCriticalData' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,567,style,unusedFunction,The function 'setDisinfectionDate' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,311,style,unusedFunction,The function 'setMfgData' is never used. @@ -73,11 +72,11 @@ dgfirmware/firmware/FWCommon/NVDataMgmt.c,528,style,unusedFunction,The function 'setWaterConsumption' is never used. dgfirmware/firmware/App/Services/Reservoirs.c,230,style,unusedFunction,The function 'stopDrainCmd' is never used. dgfirmware/firmware/App/Services/Reservoirs.c,179,style,unusedFunction,The function 'stopFillCmd' is never used. -dgfirmware/firmware/App/Services/Reservoirs.c,386,style,unusedFunction,The function 'testResetDGActiveReservoirOverride' is never used. -dgfirmware/firmware/App/Services/Reservoirs.c,480,style,unusedFunction,The function 'testResetReservoirDrainVolumeMlOverride' is never used. -dgfirmware/firmware/App/Services/Reservoirs.c,433,style,unusedFunction,The function 'testResetReservoirFillVolumeMlOverride' is never used. -dgfirmware/firmware/App/Services/Reservoirs.c,363,style,unusedFunction,The function 'testSetDGActiveReservoirOverride' is never used. -dgfirmware/firmware/App/Services/Reservoirs.c,457,style,unusedFunction,The function 'testSetReservoirDrainVolumeMlOverride' is never used. -dgfirmware/firmware/App/Services/Reservoirs.c,410,style,unusedFunction,The function 'testSetReservoirFillVolumeMlOverride' is never used. +dgfirmware/firmware/App/Services/Reservoirs.c,378,style,unusedFunction,The function 'testResetDGActiveReservoirOverride' is never used. +dgfirmware/firmware/App/Services/Reservoirs.c,472,style,unusedFunction,The function 'testResetReservoirDrainVolumeMlOverride' is never used. +dgfirmware/firmware/App/Services/Reservoirs.c,425,style,unusedFunction,The function 'testResetReservoirFillVolumeMlOverride' is never used. +dgfirmware/firmware/App/Services/Reservoirs.c,356,style,unusedFunction,The function 'testSetDGActiveReservoirOverride' is never used. +dgfirmware/firmware/App/Services/Reservoirs.c,449,style,unusedFunction,The function 'testSetReservoirDrainVolumeMlOverride' is never used. +dgfirmware/firmware/App/Services/Reservoirs.c,402,style,unusedFunction,The function 'testSetReservoirFillVolumeMlOverride' is never used. dgfirmware/firmware/FWCommon/NVDataMgmt.c,443,style,unusedFunction,The function 'writeLogData' is never used. ,,information,missingInclude,Cppcheck cannot find all the include files (use --check-config for details)