2025-08-29 19:46 ftp://ftp.de.debian.org/debian/pool/main/a/apcupsd/apcupsd_3.14.14.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --library=gtk --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 478055e (2025-08-29 18:53:24 +0200) count: 579 740 elapsed-time: 1.3 3.5 head-timing-info: old-timing-info: head results: apcupsd-3.14.14/examples/client.c:112:26: style: Parameter 'argv' can be declared as const array [constParameter] apcupsd-3.14.14/examples/hid-set.c:47:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIDIOCAPPLICATION [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/hid-set.c:64:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/megaclient.c:142:26: style: Parameter 'argv' can be declared as const array [constParameter] apcupsd-3.14.14/examples/nagios_plugin_check_apcupsd.c:338:26: style: Parameter 'argv' can be declared as const array [constParameter] apcupsd-3.14.14/examples/hid-set.c:63:17: error: Buffer is accessed out of bounds: evdev [bufferAccessOutOfBounds] apcupsd-3.14.14/examples/hid-set.c:49:10: style: Checking if unsigned expression 'ret' is less than zero. [unsignedLessThanZero] apcupsd-3.14.14/examples/hid-set.c:57:28: style: Variable 'is_ups' is assigned a value that is never used. [unreadVariable] apcupsd-3.14.14/examples/hid-set.c:67:10: style: Variable 'is_ups' is assigned a value that is never used. [unreadVariable] apcupsd-3.14.14/examples/newslave.c:246:26: style: Parameter 'argv' can be declared as const array [constParameter] apcupsd-3.14.14/examples/upsapm.c:242:26: style: Parameter 'argv' can be declared as const array [constParameter] apcupsd-3.14.14/examples/hid-ups.c:298:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIDIOCAPPLICATION [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/hid-ups.c:314:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIDIOCGSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/hid-ups.c:424:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:194:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:268:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:288:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:304:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:310:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:326:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:349:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:361:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:383:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/smartsim.c:433:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/snoopdecode.c:466:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/examples/snoopdecode.c:507:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/action.c:88:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable level [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/action.c:152:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable terminate_on_powerfail [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/action.c:184:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/action.c:198:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ALERT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/action.c:233:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMDREMOTEDOWN [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/action.c:371:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPS_battpresent [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/action.c:177:32: style: Parameter 'ups' can be declared as pointer to const [constParameterPointer] apcupsd-3.14.14/examples/smartsim.c:417:26: style: Parameter 'argv' can be declared as const array [constParameter] apcupsd-3.14.14/src/apcnis.c:292:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/apcaccess.c:49:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/apcaccess.c:120:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/apcaccess.c:141:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NISPORT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/apctest.c:292:20: error: There is an unknown macro here somewhere. Configuration is required. If APCUPSD_RELEASE is a macro then please configure it. [unknownMacro] apcupsd-3.14.14/examples/hid-ups.c:457:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] apcupsd-3.14.14/examples/hid-ups.c:457:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] apcupsd-3.14.14/examples/hid-ups.c:457:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] apcupsd-3.14.14/examples/hid-ups.c:523:21: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] apcupsd-3.14.14/examples/hid-ups.c:556:25: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] apcupsd-3.14.14/examples/hid-ups.c:252:30: style: Local variable 'info' shadows outer function [shadowFunction] apcupsd-3.14.14/examples/hid-ups.c:236:20: note: Shadowed declaration apcupsd-3.14.14/examples/hid-ups.c:252:30: note: Shadow variable apcupsd-3.14.14/examples/hid-ups.c:503:33: style: Local variable 'uref' shadows outer variable [shadowVariable] apcupsd-3.14.14/examples/hid-ups.c:416:29: note: Shadowed declaration apcupsd-3.14.14/examples/hid-ups.c:503:33: note: Shadow variable apcupsd-3.14.14/examples/hid-ups.c:505:22: style: Local variable 'i' shadows outer variable [shadowVariable] apcupsd-3.14.14/examples/hid-ups.c:409:18: note: Shadowed declaration apcupsd-3.14.14/examples/hid-ups.c:505:22: note: Shadow variable apcupsd-3.14.14/examples/hid-ups.c:505:25: style: Local variable 'j' shadows outer variable [shadowVariable] apcupsd-3.14.14/examples/hid-ups.c:408:22: note: Shadowed declaration apcupsd-3.14.14/examples/hid-ups.c:505:25: note: Shadow variable apcupsd-3.14.14/examples/hid-ups.c:516:40: style: Variable 'p' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/apcupsd.c:159:25: error: There is an unknown macro here somewhere. Configuration is required. If APCUPSD_RELEASE is a macro then please configure it. [unknownMacro] apcupsd-3.14.14/src/cgi/cgilib.c:81:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSCONFDIR [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/cgilib.c:116:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/cgilib.c:176:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/cgilib.c:89:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] apcupsd-3.14.14/src/cgi/cgilib.c:156:12: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] apcupsd-3.14.14/src/cgi/cgilib.c:158:7: note: Found duplicate branches for 'if' and 'else'. apcupsd-3.14.14/src/cgi/cgilib.c:156:12: note: Found duplicate branches for 'if' and 'else'. apcupsd-3.14.14/src/cgi/cgilib.c:107:28: style:inconclusive: Function 'html_puts' argument 1 names different: declaration 's' definition 'str'. [funcArgNamesDifferent] apcupsd-3.14.14/src/cgi/cgilib.h:33:28: note: Function 'html_puts' argument 1 names different: declaration 's' definition 'str'. apcupsd-3.14.14/src/cgi/cgilib.c:107:28: note: Function 'html_puts' argument 1 names different: declaration 's' definition 'str'. apcupsd-3.14.14/src/cgi/cgilib.c:37:47: style: Variable 'value' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/cgi/cgilib.c:147:11: style: Variable 'server_protocol' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/cgi/multimon.c:133:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/multimon.c:166:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPS_calibration [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/multimon.c:501:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSCONFDIR [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/multimon.c:573:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSCONFDIR [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/apcaccess.c:65:16: style: Variable 'var' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/cgi/upsfetch.c:99:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NISPORT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/upsfetch.c:139:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NISPORT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/upsfstats.c:52:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/upsfetch.c:232:18: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] apcupsd-3.14.14/src/cgi/upsimage.c:31:0: error: #error "A graphic file format must be defined to compile this program." [preprocessorErrorDirective] apcupsd-3.14.14/src/cgi/upsimage.c:31:3: error: #error "A graphic file format must be defined to compile this program." [preprocessorErrorDirective] apcupsd-3.14.14/src/device.c:66:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUMB_UPS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/device.c:138:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/device.c:192:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMDCOMMFAILURE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/device.c:289:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIMER_FAST [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/upsstats.c:97:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/upsstats.c:140:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/cgi/upsstats.c:190:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/apcsmart/apcsmart.h:26:1: error: Code 'classApcSmartUpsDriver:' is invalid C code. [syntaxError] apcupsd-3.14.14/src/cgi/multimon.c:191:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] apcupsd-3.14.14/src/cgi/multimon.c:203:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] apcupsd-3.14.14/src/cgi/multimon.c:443:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] apcupsd-3.14.14/src/cgi/multimon.c:561:62: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] apcupsd-3.14.14/src/cgi/multimon.c:580:17: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] apcupsd-3.14.14/src/cgi/multimon.c:419:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] apcupsd-3.14.14/src/cgi/multimon.c:418:29: note: Assuming allocation function fails apcupsd-3.14.14/src/cgi/multimon.c:418:11: note: Assignment 'tmp=(ftype_t*)malloc(sizeof(ftype_t))', assigned value is 0 apcupsd-3.14.14/src/cgi/multimon.c:419:5: note: Null pointer dereference apcupsd-3.14.14/src/cgi/multimon.c:420:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] apcupsd-3.14.14/src/cgi/multimon.c:418:29: note: Assuming allocation function fails apcupsd-3.14.14/src/cgi/multimon.c:418:11: note: Assignment 'tmp=(ftype_t*)malloc(sizeof(ftype_t))', assigned value is 0 apcupsd-3.14.14/src/cgi/multimon.c:420:5: note: Null pointer dereference apcupsd-3.14.14/src/cgi/multimon.c:421:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] apcupsd-3.14.14/src/cgi/multimon.c:418:29: note: Assuming allocation function fails apcupsd-3.14.14/src/cgi/multimon.c:418:11: note: Assignment 'tmp=(ftype_t*)malloc(sizeof(ftype_t))', assigned value is 0 apcupsd-3.14.14/src/cgi/multimon.c:421:5: note: Null pointer dereference apcupsd-3.14.14/src/cgi/multimon.c:422:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] apcupsd-3.14.14/src/cgi/multimon.c:418:29: note: Assuming allocation function fails apcupsd-3.14.14/src/cgi/multimon.c:418:11: note: Assignment 'tmp=(ftype_t*)malloc(sizeof(ftype_t))', assigned value is 0 apcupsd-3.14.14/src/cgi/multimon.c:422:5: note: Null pointer dereference apcupsd-3.14.14/src/cgi/multimon.c:450:24: warning: If memory allocation fails, then there is a possible null pointer dereference: var [nullPointerOutOfMemory] apcupsd-3.14.14/src/cgi/multimon.c:448:17: note: Assuming allocation function fails apcupsd-3.14.14/src/cgi/multimon.c:448:17: note: Assignment 'var=strdup(ptr)', assigned value is 0 apcupsd-3.14.14/src/cgi/multimon.c:450:24: note: Null pointer dereference apcupsd-3.14.14/src/cgi/multimon.c:151:26: style: Variable 'stat' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/cgi/multimon.c:435:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/cgi/multimon.c:435:17: style: Variable 'var' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/cgi/multimon.c:435:23: style: Variable 'name' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/cgi/multimon.c:435:37: style: Variable 'suffix' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/drivers/drivers.c:114:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable driver_name [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/dumb/dumb.h:26:1: error: Code 'classDumbUpsDriver:' is invalid C code. [syntaxError] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.cpp:48:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.cpp:85:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.cpp:163:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.cpp:68:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.cpp:126:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.cpp:198:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.cpp:311:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.cpp:61:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HID_KIND_INPUT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.cpp:105:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.cpp:139:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_ENDPOINT_IN [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.cpp:247:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_ENDPOINT_IN [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.h:33:4: style: Class 'ModbusRs232Comm' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.h:34:13: style: The destructor '~ModbusRs232Comm' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.h:35:13: note: Virtual destructor in base class apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.h:34:13: note: Destructor in derived class apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.h:36:17: style: The function 'Open' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.h:37:17: note: Virtual function in base class apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.h:36:17: note: Function in derived class apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.h:37:17: style: The function 'Close' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.h:38:17: note: Virtual function in base class apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.h:37:17: note: Function in derived class apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.cpp:53:40: style:inconclusive: Function 'Open' argument 1 names different: declaration 'dev' definition 'path'. [funcArgNamesDifferent] apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.h:36:34: note: Function 'Open' argument 1 names different: declaration 'dev' definition 'path'. apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.cpp:53:40: note: Function 'Open' argument 1 names different: declaration 'dev' definition 'path'. apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.cpp:227:11: style: Local variable 'rc' shadows outer variable [shadowVariable] apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.cpp:183:8: note: Shadowed declaration apcupsd-3.14.14/src/drivers/modbus/ModbusRs232Comm.cpp:227:11: note: Shadow variable apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.cpp:45:16: warning: Member variable 'ModbusUsbComm::_rxrpt' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.cpp:45:16: warning: Member variable 'ModbusUsbComm::_txrpt' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.h:34:4: style: Class 'ModbusUsbComm' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.h:35:13: style: The destructor '~ModbusUsbComm' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.h:35:13: note: Virtual destructor in base class apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.h:35:13: note: Destructor in derived class apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.h:37:17: style: The function 'Open' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.h:37:17: note: Virtual function in base class apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.h:37:17: note: Function in derived class apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.h:38:17: style: The function 'Close' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.h:38:17: note: Virtual function in base class apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.h:38:17: note: Function in derived class apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.cpp:132:8: style: The scope of the variable 'ret' can be reduced. [variableScope] apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.cpp:50:38: style:inconclusive: Function 'Open' argument 1 names different: declaration 'dev' definition 'path'. [funcArgNamesDifferent] apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.h:37:34: note: Function 'Open' argument 1 names different: declaration 'dev' definition 'path'. apcupsd-3.14.14/src/drivers/modbus/ModbusUsbComm.cpp:50:38: note: Function 'Open' argument 1 names different: declaration 'dev' definition 'path'. apcupsd-3.14.14/examples/snoopdecode.c:404:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rpt [nullPointerOutOfMemory] apcupsd-3.14.14/examples/snoopdecode.c:403:27: note: Assuming allocation function fails apcupsd-3.14.14/examples/snoopdecode.c:403:8: note: Assignment 'rpt=(struct rpt*)malloc(sizeof(*rpt))', assigned value is 0 apcupsd-3.14.14/examples/snoopdecode.c:404:9: note: Null pointer dereference apcupsd-3.14.14/examples/snoopdecode.c:406:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rpt [nullPointerOutOfMemory] apcupsd-3.14.14/examples/snoopdecode.c:403:27: note: Assuming allocation function fails apcupsd-3.14.14/examples/snoopdecode.c:403:8: note: Assignment 'rpt=(struct rpt*)malloc(sizeof(*rpt))', assigned value is 0 apcupsd-3.14.14/examples/snoopdecode.c:406:2: note: Null pointer dereference apcupsd-3.14.14/examples/snoopdecode.c:407:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rpt [nullPointerOutOfMemory] apcupsd-3.14.14/examples/snoopdecode.c:403:27: note: Assuming allocation function fails apcupsd-3.14.14/examples/snoopdecode.c:403:8: note: Assignment 'rpt=(struct rpt*)malloc(sizeof(*rpt))', assigned value is 0 apcupsd-3.14.14/examples/snoopdecode.c:407:2: note: Null pointer dereference apcupsd-3.14.14/examples/snoopdecode.c:408:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rpt [nullPointerOutOfMemory] apcupsd-3.14.14/examples/snoopdecode.c:403:27: note: Assuming allocation function fails apcupsd-3.14.14/examples/snoopdecode.c:403:8: note: Assignment 'rpt=(struct rpt*)malloc(sizeof(*rpt))', assigned value is 0 apcupsd-3.14.14/examples/snoopdecode.c:408:2: note: Null pointer dereference apcupsd-3.14.14/examples/snoopdecode.c:410:2: warning: If memory allocation fails, then there is a possible null pointer dereference: rpt [nullPointerOutOfMemory] apcupsd-3.14.14/examples/snoopdecode.c:403:27: note: Assuming allocation function fails apcupsd-3.14.14/examples/snoopdecode.c:403:8: note: Assignment 'rpt=(struct rpt*)malloc(sizeof(*rpt))', assigned value is 0 apcupsd-3.14.14/examples/snoopdecode.c:410:2: note: Null pointer dereference apcupsd-3.14.14/examples/snoopdecode.c:186:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/examples/snoopdecode.c:311:28: style: Parameter 'urb' can be declared as pointer to const [constParameterPointer] apcupsd-3.14.14/examples/snoopdecode.c:414:41: style: Parameter 'urb' can be declared as pointer to const [constParameterPointer] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.cpp:216:22: performance:inconclusive: Technically the member function 'ModbusComm::ModbusCrc' can be static (but you may consider moving to unnamed namespace). [functionStatic] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.h:45:13: note: Technically the member function 'ModbusComm::ModbusCrc' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/drivers/modbus/ModbusComm.cpp:216:22: note: Technically the member function 'ModbusComm::ModbusCrc' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/drivers/modbus/ModbusComm.cpp:42:44: style:inconclusive: Function 'ReadRegister' argument 1 names different: declaration 'addr' definition 'reg'. [funcArgNamesDifferent] apcupsd-3.14.14/src/drivers/modbus/ModbusComm.h:40:43: note: Function 'ReadRegister' argument 1 names different: declaration 'addr' definition 'reg'. apcupsd-3.14.14/src/drivers/modbus/ModbusComm.cpp:42:44: note: Function 'ReadRegister' argument 1 names different: declaration 'addr' definition 'reg'. apcupsd-3.14.14/src/drivers/net/net.h:30:1: error: Code 'classNetUpsDriver:' is invalid C code. [syntaxError] apcupsd-3.14.14/src/drivers/pcnet/pcnet.h:12:1: error: Code 'classPcnetUpsDriver:' is invalid C code. [syntaxError] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:123:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wait_time [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:206:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:220:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:234:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPS_Cap [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:261:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:552:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPS_Cap [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:570:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _ups [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:584:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _ups [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:611:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPS_Cap [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:42:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Identifier [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/modbus/modbus.h:51:4: style: Class 'ModbusUpsDriver' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:653:53: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:318:14: warning: Member variable 'OctetString::_len' is not initialized in the copy constructor. [uninitMemberVar] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:325:27: warning: Member variable 'OctetString::_data' is not assigned a value in 'OctetString::operator='. [operatorEqVarError] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:325:27: warning: Member variable 'OctetString::_len' is not assigned a value in 'OctetString::operator='. [operatorEqVarError] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:399:11: warning: Member variable 'ObjectId::_count' is not initialized in the copy constructor. [uninitMemberVar] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:406:21: warning: Member variable 'ObjectId::_value' is not assigned a value in 'ObjectId::operator='. [operatorEqVarError] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:406:21: warning: Member variable 'ObjectId::_count' is not assigned a value in 'ObjectId::operator='. [operatorEqVarError] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:169:14: performance:inconclusive: Technically the member function 'Asn::Object::demarshalLength' can be static (but you may consider moving to unnamed namespace). [functionStatic] apcupsd-3.14.14/src/drivers/snmplite/asn.h:111:12: note: Technically the member function 'Asn::Object::demarshalLength' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:169:14: note: Technically the member function 'Asn::Object::demarshalLength' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:89:13: performance:inconclusive: Technically the member function 'Asn::Object::numbits' can be static (but you may consider moving to unnamed namespace). [functionStatic] apcupsd-3.14.14/src/drivers/snmplite/asn.h:116:11: note: Technically the member function 'Asn::Object::numbits' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:89:13: note: Technically the member function 'Asn::Object::numbits' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:467:16: style:inconclusive: Technically the member function 'Asn::ObjectId::IsChildOf' can be const. [functionConst] apcupsd-3.14.14/src/drivers/snmplite/asn.h:210:12: note: Technically the member function 'Asn::ObjectId::IsChildOf' can be const. apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:467:16: note: Technically the member function 'Asn::ObjectId::IsChildOf' can be const. apcupsd-3.14.14/src/drivers/snmplite/asn.h:257:20: style:inconclusive: Technically the member function 'Asn::Sequence::Size' can be const. [functionConst] apcupsd-3.14.14/src/drivers/snmplite/asn.h:128:7: style: Class 'Integer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/snmplite/asn.h:131:7: style: Class 'Integer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/snmplite/asn.h:164:7: style: Class 'OctetString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/snmplite/asn.h:198:7: style: Class 'ObjectId' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/snmplite/asn.h:251:7: style: Class 'Sequence' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/snmplite/asn.h:134:16: style: The destructor '~Integer' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:79:16: note: Virtual destructor in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:134:16: note: Destructor in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:144:23: style: The function 'copy' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:99:23: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:144:23: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:145:20: style: The function 'Marshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:95:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:145:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:146:20: style: The function 'IsInteger' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:90:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:146:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:150:20: style: The function 'demarshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:103:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:150:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:166:16: style: The destructor '~OctetString' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:79:16: note: Virtual destructor in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:166:16: note: Destructor in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:176:23: style: The function 'copy' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:99:23: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:176:23: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:177:20: style: The function 'Marshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:95:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:177:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:178:20: style: The function 'IsOctetString' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:92:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:178:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:182:20: style: The function 'demarshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:103:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:182:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:199:16: style: The destructor '~ObjectId' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:79:16: note: Virtual destructor in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:199:16: note: Destructor in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:212:23: style: The function 'copy' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:99:23: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:212:23: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:213:20: style: The function 'Marshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:95:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:213:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:214:20: style: The function 'IsObjectId' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:91:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:214:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:218:20: style: The function 'demarshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:103:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:218:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:234:16: style: The destructor '~Null' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:79:16: note: Virtual destructor in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:234:16: note: Destructor in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:236:23: style: The function 'copy' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:99:23: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:236:23: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:237:20: style: The function 'Marshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:95:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:237:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:241:20: style: The function 'demarshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:103:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:241:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:252:16: style: The destructor '~Sequence' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:79:16: note: Virtual destructor in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:252:16: note: Destructor in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:261:23: style: The function 'copy' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:99:23: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:261:23: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:262:20: style: The function 'Marshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:95:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:262:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:263:20: style: The function 'IsSequence' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:93:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:263:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:267:20: style: The function 'demarshal' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/asn.h:103:20: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/asn.h:267:20: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/asn.h:45:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:45:72: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:46:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:46:72: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:47:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:47:72: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:48:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:48:72: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:49:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:49:72: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:50:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:53:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:53:72: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:54:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:55:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:56:58: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.h:57:72: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:308:11: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/drivers/snmplite/asn.h:85:45: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/asn.h:86:45: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/asn.h:87:45: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/asn.h:88:45: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:118:9: style: The scope of the variable 'ret' can be reduced. [variableScope] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:166:17: style: Local variable 'now' shadows outer variable [shadowVariable] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:121:29: note: Shadowed declaration apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:166:17: note: Shadow variable apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:170:20: style: Parameter 'buffer' can be declared as pointer to const [constParameterReference] apcupsd-3.14.14/src/drivers/snmplite/asn.cpp:695:19: style: Variable 'start' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:666:53: warning: Uninitialized variable: data [uninitvar] apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:663:31: note: Assuming condition is false apcupsd-3.14.14/src/drivers/modbus/modbus.cpp:666:53: note: Uninitialized variable: data apcupsd-3.14.14/src/drivers/snmplite/mge-mib.cpp:102:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XFER_NONE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:41:7: warning: Member variable 'Variable::type' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:41:7: warning: Member variable 'Variable::i32' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:41:7: warning: Member variable 'Variable::u32' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:115:7: warning:inconclusive: Member variable 'Message::_type' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:132:41: warning: Class 'VbListMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:132:41: warning: Class 'VbListMessage' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:165:39: warning: Class 'TrapMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:165:39: warning: Class 'TrapMessage' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:59:7: style: Class 'VarBind' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:60:7: style: Class 'VarBind' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:83:7: style: Class 'VarBindList' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:132:16: style: The destructor '~VbListMessage' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:106:16: note: Virtual destructor in base class apcupsd-3.14.14/src/drivers/snmplite/snmp.h:132:16: note: Destructor in derived class apcupsd-3.14.14/src/drivers/snmplite/snmp.h:151:30: style: The function 'GetAsn' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:119:30: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/snmp.h:151:30: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/snmp.h:165:16: style: The destructor '~TrapMessage' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:106:16: note: Virtual destructor in base class apcupsd-3.14.14/src/drivers/snmplite/snmp.h:165:16: note: Destructor in derived class apcupsd-3.14.14/src/drivers/snmplite/snmp.h:176:30: style: The function 'GetAsn' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:119:30: note: Virtual function in base class apcupsd-3.14.14/src/drivers/snmplite/snmp.h:176:30: note: Function in derived class apcupsd-3.14.14/src/drivers/snmplite/rfc1628-mib.cpp:157:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_PASSED [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/apc-mib.cpp:187:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_PASSED [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:62:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:112:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_SOCKET [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:137:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_SOCKET [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:185:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:316:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_SOCKET [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:388:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/test/testdriver.h:28:1: error: Code 'classTestUpsDriver:' is invalid C code. [syntaxError] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:79:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CI_STATUS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:100:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:238:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _ups [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:276:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _ups [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:320:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable wait_time [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:344:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPS_Cap [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:377:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _ups [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:433:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _ups [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:445:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPS_Cap [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/usb/usb.h:31:1: error: Code 'classUsbUpsDriver:' is invalid C code. [syntaxError] apcupsd-3.14.14/src/drivers/usb/bsd/hidutils.c:66:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_CURRENT_CONFIG_INDEX [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/usb/bsd/hidutils.c:218:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hid_input [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/usb/bsd/hidutils.c:280:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USBD_SHORT_XFER_OK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/usb/bsd/hidutils.c:322:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UT_WRITE_CLASS_INTERFACE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/usb/bsd/hidutils.c:354:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_GET_STRING_DESC [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/drivers/snmplite/snmplite.h:42:4: style: Class 'SnmpLiteUpsDriver' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:154:26: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/drivers/snmplite/snmplite.cpp:245:52: style: Parameter 'data' can be declared as reference to const [constParameterReference] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:587:4: warning: Class 'VbListMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:587:4: warning: Class 'VbListMessage' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:713:4: warning: Class 'TrapMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:713:4: warning: Class 'TrapMessage' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:333:29: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:399:27: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:97:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:123:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:159:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:304:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:319:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:334:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:400:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:425:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:633:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:322:33: style:inconclusive: Function 'issue' argument 1 names different: declaration 'pdu' definition 'msg'. [funcArgNamesDifferent] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:218:27: note: Function 'issue' argument 1 names different: declaration 'pdu' definition 'msg'. apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:322:33: note: Function 'issue' argument 1 names different: declaration 'pdu' definition 'msg'. apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:497:33: style:inconclusive: Function 'Extract' argument 1 names different: declaration 'data' definition 'out'. [funcArgNamesDifferent] apcupsd-3.14.14/src/drivers/snmplite/snmp.h:63:30: note: Function 'Extract' argument 1 names different: declaration 'data' definition 'out'. apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:497:33: note: Function 'Extract' argument 1 names different: declaration 'data' definition 'out'. apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:70:23: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:89:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_PLUG [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:100:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_PROPERTY_CHANGE_MASK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:124:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_ORIENTATION [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:161:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:210:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DestroyNotify [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:222:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:246:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ClientMessage [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:276:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:342:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:426:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/amutex.cpp:36:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_MUTEX_NORMAL [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/amutex.cpp:43:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _mutex [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/gapcmon.c:960:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] apcupsd-3.14.14/src/gapcmon/gapcmon.c:960:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] apcupsd-3.14.14/src/lib/apcerror.c:55:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:133:48: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'egg_tray_icon_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:112:34: note: You might need to cast the function pointer here apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:133:48: note: Parameter 'pspec' can be declared as pointer to const apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:199:12: style: Variable 'xev' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/gapcmon/eggtrayicon.c:478:60: style: Parameter 'icon' can be declared as pointer to const [constParameterPointer] apcupsd-3.14.14/src/lib/apcevents.c:63:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcfile.c:43:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcfile.c:63:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:208:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:223:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:230:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:280:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:320:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:347:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DAEMON [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:427:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:503:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcexec.c:43:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:606:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcexec.c:158:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcfile.c:50:4: error: Returning/dereferencing 'makefd' after it is deallocated / released [deallocret] apcupsd-3.14.14/src/lib/apcfile.c:44:7: note: Returning/dereferencing 'makefd' after it is deallocated / released apcupsd-3.14.14/src/lib/apcfile.c:50:4: note: Returning/dereferencing 'makefd' after it is deallocated / released apcupsd-3.14.14/src/lib/apclock.c:52:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APC_NET [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apclock.c:166:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LCKSUCCESS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apclock.c:239:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LCKEXIST [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apclog.c:51:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apclog.c:101:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:239:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] apcupsd-3.14.14/src/lib/apcconfig.c:288:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] apcupsd-3.14.14/src/lib/apcconfig.c:367:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] apcupsd-3.14.14/src/lib/apcconfig.c:619:34: warning: Either the condition '(apcconf=fdopen(fd,"r"))==NULL' is redundant or there is possible null pointer dereference: apcconf. [nullPointerRedundantCheck] apcupsd-3.14.14/src/lib/apcconfig.c:612:36: note: Assuming that condition '(apcconf=fdopen(fd,"r"))==NULL' is not redundant apcupsd-3.14.14/src/lib/apcconfig.c:619:34: note: Null pointer dereference apcupsd-3.14.14/src/lib/apcsignal.c:44:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcsignal.c:63:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/apcconfig.c:206:10: style: Variable 'msg' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/lib/apcstatus.c:61:31: error: There is an unknown macro here somewhere. Configuration is required. If APCUPSD_RELEASE is a macro then please configure it. [unknownMacro] apcupsd-3.14.14/src/lib/astring.cpp:40:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _len [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:56:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _data [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:75:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _data [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:89:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _len [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:100:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _len [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:111:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _data [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:130:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _len [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:138:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _len [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:145:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _data [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:154:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _data [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:166:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _data [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:177:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _len [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/astring.cpp:200:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _data [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/asys.c:62:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] apcupsd-3.14.14/src/lib/asys.c:53:24: note: Assuming allocation function fails apcupsd-3.14.14/src/lib/asys.c:53:10: note: Assignment 'buf=(char*)malloc(5000)', assigned value is 0 apcupsd-3.14.14/src/lib/asys.c:62:16: note: Null pointer dereference apcupsd-3.14.14/src/lib/athread.cpp:31:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _running [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/asys.c:92:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] apcupsd-3.14.14/src/lib/asys.c:86:24: note: Assuming allocation function fails apcupsd-3.14.14/src/lib/asys.c:86:10: note: Assignment 'buf=(char*)malloc(5000)', assigned value is 0 apcupsd-3.14.14/src/lib/asys.c:92:16: note: Null pointer dereference apcupsd-3.14.14/src/lib/athread.cpp:57:21: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/lib/astring.cpp:200:10: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/lib/atimer.cpp:39:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _condvar [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/atimer.cpp:45:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _mutex [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/atimer.cpp:59:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _mutex [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/atimer.cpp:75:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _mutex [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/atimer.cpp:73:8: style: The scope of the variable 'rc' can be reduced. [variableScope] apcupsd-3.14.14/src/lib/inet_pton.c:64:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/inet_pton.c:85:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NS_INADDRSZ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/localtime_r.c:32:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_MUTEX_INITIALIZER [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/localtime_r.c:37:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] apcupsd-3.14.14/src/lib/localtime_r.c:33:15: style: Variable 'ltm' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/lib/getopt.c:434:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/nanosleep.c:33:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_MUTEX_INITIALIZER [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/newups.c:38:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPSINFO [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/newups.c:42:11: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: ups [nullPointerOutOfMemory] apcupsd-3.14.14/src/lib/newups.c:38:28: note: Assuming allocation function fails apcupsd-3.14.14/src/lib/newups.c:38:10: note: Assignment 'ups=(UPSINFO*)malloc(sizeof(UPSINFO))', assigned value is 0 apcupsd-3.14.14/src/lib/newups.c:42:11: note: Null pointer dereference apcupsd-3.14.14/src/lib/newups.c:50:4: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: ups [nullPointerOutOfMemory] apcupsd-3.14.14/src/lib/newups.c:38:28: note: Assuming allocation function fails apcupsd-3.14.14/src/lib/newups.c:38:10: note: Assignment 'ups=(UPSINFO*)malloc(sizeof(UPSINFO))', assigned value is 0 apcupsd-3.14.14/src/lib/newups.c:43:55: note: Assuming condition is false apcupsd-3.14.14/src/lib/newups.c:50:4: note: Null pointer dereference apcupsd-3.14.14/src/lib/newups.c:52:4: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: ups [nullPointerOutOfMemory] apcupsd-3.14.14/src/lib/newups.c:38:28: note: Assuming allocation function fails apcupsd-3.14.14/src/lib/newups.c:38:10: note: Assignment 'ups=(UPSINFO*)malloc(sizeof(UPSINFO))', assigned value is 0 apcupsd-3.14.14/src/lib/newups.c:43:55: note: Assuming condition is false apcupsd-3.14.14/src/lib/newups.c:52:4: note: Null pointer dereference apcupsd-3.14.14/src/lib/inet_pton.c:114:14: error: Uninitialized variable: tmp [uninitvar] apcupsd-3.14.14/src/lib/inet_pton.c:112:13: note: Assuming condition is false apcupsd-3.14.14/src/lib/inet_pton.c:114:14: note: Uninitialized variable: tmp apcupsd-3.14.14/src/lib/strcasecmp.c:72:1: portability: Omitted return type of function 'strcasecmp' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] apcupsd-3.14.14/src/lib/strcasecmp.c:85:1: portability: Omitted return type of function 'strncasecmp' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] apcupsd-3.14.14/src/lib/statmgr.cpp:28:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_stats [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/statmgr.cpp:44:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_socket [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/statmgr.cpp:102:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_STATS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/statmgr.cpp:120:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_STATS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/statmgr.cpp:134:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_socket [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/statmgr.cpp:198:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_socket [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/statmgr.cpp:209:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_socket [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/statmgr.cpp:237:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPS_onbatt [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/lib/strcasecmp.c:75:19: style: Variable 'cm' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/lib/strcasecmp.c:76:5: style: Variable 'us1' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/lib/strcasecmp.c:77:5: style: Variable 'us2' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/lib/strcasecmp.c:89:19: style: Variable 'cm' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/lib/strcasecmp.c:90:5: style: Variable 'us1' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/lib/strcasecmp.c:91:5: style: Variable 'us2' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:47:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_level [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:87:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _rdesc [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:117:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _fd [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:226:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _fd [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:259:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_DT_REPORT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:345:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hid_collection [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:403:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_CLASS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:431:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_TYPE_CLASS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/descr.c:49:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/descr.c:43:36: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:244:50: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:258:10: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:405:10: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/libusbhid/HidUps.cpp:433:10: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/libusbhid/usage.c:96:12: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] apcupsd-3.14.14/src/libusbhid/usage.c:94:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] apcupsd-3.14.14/src/libusbhid/usage.c:96:12: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] apcupsd-3.14.14/src/libusbhid/usage.c:97:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] apcupsd-3.14.14/src/libusbhid/usage.c:130:6: error: Common realloc mistake: 'pages' nulled but not freed upon failure [memleakOnRealloc] apcupsd-3.14.14/src/libusbhid/usage.c:71:22: style:inconclusive: Function 'hid_init' argument 1 names different: declaration 'file' definition 'hidname'. [funcArgNamesDifferent] apcupsd-3.14.14/src/libusbhid/usbhid.h:97:27: note: Function 'hid_init' argument 1 names different: declaration 'file' definition 'hidname'. apcupsd-3.14.14/src/libusbhid/usage.c:71:22: note: Function 'hid_init' argument 1 names different: declaration 'file' definition 'hidname'. apcupsd-3.14.14/src/lib/getopt.c:601:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/options.c:125:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/reports.c:57:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/reports.c:104:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXSTRING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/reports.c:141:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/reports.c:189:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/libusbhid/parse.c:92:9: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] apcupsd-3.14.14/src/libusbhid/parse.c:91:31: note: Assuming allocation function fails apcupsd-3.14.14/src/libusbhid/parse.c:91:6: note: Assignment 's=(struct hid_data*)malloc(sizeof(*s))', assigned value is 0 apcupsd-3.14.14/src/libusbhid/parse.c:92:9: note: Null pointer dereference apcupsd-3.14.14/src/libusbhid/parse.c:93:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] apcupsd-3.14.14/src/libusbhid/parse.c:91:31: note: Assuming allocation function fails apcupsd-3.14.14/src/libusbhid/parse.c:91:6: note: Assignment 's=(struct hid_data*)malloc(sizeof(*s))', assigned value is 0 apcupsd-3.14.14/src/libusbhid/parse.c:93:2: note: Null pointer dereference apcupsd-3.14.14/src/libusbhid/parse.c:93:13: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] apcupsd-3.14.14/src/libusbhid/parse.c:91:31: note: Assuming allocation function fails apcupsd-3.14.14/src/libusbhid/parse.c:91:6: note: Assignment 's=(struct hid_data*)malloc(sizeof(*s))', assigned value is 0 apcupsd-3.14.14/src/libusbhid/parse.c:93:13: note: Null pointer dereference apcupsd-3.14.14/src/libusbhid/parse.c:94:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] apcupsd-3.14.14/src/libusbhid/parse.c:91:31: note: Assuming allocation function fails apcupsd-3.14.14/src/libusbhid/parse.c:91:6: note: Assignment 's=(struct hid_data*)malloc(sizeof(*s))', assigned value is 0 apcupsd-3.14.14/src/libusbhid/parse.c:94:2: note: Null pointer dereference apcupsd-3.14.14/src/libusbhid/parse.c:95:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] apcupsd-3.14.14/src/libusbhid/parse.c:91:31: note: Assuming allocation function fails apcupsd-3.14.14/src/libusbhid/parse.c:91:6: note: Assignment 's=(struct hid_data*)malloc(sizeof(*s))', assigned value is 0 apcupsd-3.14.14/src/libusbhid/parse.c:95:2: note: Null pointer dereference apcupsd-3.14.14/src/libusbhid/parse.c:96:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] apcupsd-3.14.14/src/libusbhid/parse.c:91:31: note: Assuming allocation function fails apcupsd-3.14.14/src/libusbhid/parse.c:91:6: note: Assignment 's=(struct hid_data*)malloc(sizeof(*s))', assigned value is 0 apcupsd-3.14.14/src/libusbhid/parse.c:96:2: note: Null pointer dereference apcupsd-3.14.14/src/libusbhid/parse.c:97:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] apcupsd-3.14.14/src/libusbhid/parse.c:91:31: note: Assuming allocation function fails apcupsd-3.14.14/src/libusbhid/parse.c:91:6: note: Assignment 's=(struct hid_data*)malloc(sizeof(*s))', assigned value is 0 apcupsd-3.14.14/src/libusbhid/parse.c:97:2: note: Null pointer dereference apcupsd-3.14.14/src/libusbhid/parse.c:344:6: warning: If memory allocation fails, then there is a possible null pointer dereference: hi [nullPointerOutOfMemory] apcupsd-3.14.14/src/libusbhid/parse.c:343:30: note: Assuming allocation function fails apcupsd-3.14.14/src/libusbhid/parse.c:343:10: note: Assignment 'hi=(struct hid_item_t*)malloc(sizeof(*hi))', assigned value is 0 apcupsd-3.14.14/src/libusbhid/parse.c:344:6: note: Null pointer dereference apcupsd-3.14.14/src/libusbhid/parse.c:403:31: style:inconclusive: Function 'hid_report_size' argument 1 names different: declaration 'd' definition 'r'. [funcArgNamesDifferent] apcupsd-3.14.14/src/libusbhid/usbhid.h:91:35: note: Function 'hid_report_size' argument 1 names different: declaration 'd' definition 'r'. apcupsd-3.14.14/src/libusbhid/parse.c:403:31: note: Function 'hid_report_size' argument 1 names different: declaration 'd' definition 'r'. apcupsd-3.14.14/src/libusbhid/parse.c:421:26: style:inconclusive: Function 'hid_locate' argument 1 names different: declaration 'd' definition 'desc'. [funcArgNamesDifferent] apcupsd-3.14.14/src/libusbhid/usbhid.h:92:30: note: Function 'hid_locate' argument 1 names different: declaration 'd' definition 'desc'. apcupsd-3.14.14/src/libusbhid/parse.c:421:26: note: Function 'hid_locate' argument 1 names different: declaration 'd' definition 'desc'. apcupsd-3.14.14/src/libusbhid/parse.c:421:45: style:inconclusive: Function 'hid_locate' argument 2 names different: declaration 'usage' definition 'u'. [funcArgNamesDifferent] apcupsd-3.14.14/src/libusbhid/usbhid.h:92:46: note: Function 'hid_locate' argument 2 names different: declaration 'usage' definition 'u'. apcupsd-3.14.14/src/libusbhid/parse.c:421:45: note: Function 'hid_locate' argument 2 names different: declaration 'usage' definition 'u'. apcupsd-3.14.14/src/libusbhid/parse.c:142:17: style: Variable 'data' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/options.c:68:31: style: Parameter 'argv' can be declared as const array [constParameter] apcupsd-3.14.14/src/libusbhid/parse.c:141:20: style: Variable 'bTag' is assigned a value that is never used. [unreadVariable] apcupsd-3.14.14/src/smtp.c:139:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug_level [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/smtp.c:154:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/smtp.c:185:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/reports.c:45:38: style: Parameter 'ups' can be declared as pointer to const. However it seems that 'log_status_open' is a callback function, if 'ups' is declared with const you might also need to cast function pointer(s). [constParameterCallback] apcupsd-3.14.14/src/reports.c:208:29: note: You might need to cast the function pointer here apcupsd-3.14.14/src/reports.c:45:38: note: Parameter 'ups' can be declared as pointer to const apcupsd-3.14.14/src/win32/background.c:12:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_ICONSTOP [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/apctray.cpp:56:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_OK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/apctray.cpp:69:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_OK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/apctray.cpp:93:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HKEY_LOCAL_MACHINE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/apctray.cpp:121:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HKEY_LOCAL_MACHINE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/apctray.cpp:134:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WM_CLOSE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/apctray.cpp:151:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_OK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/apctray.cpp:169:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/apctray.cpp:204:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_os_version [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/smtp.c:257:14: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] apcupsd-3.14.14/src/smtp.c:268:18: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] apcupsd-3.14.14/src/smtp.c:280:14: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] apcupsd-3.14.14/src/smtp.c:341:15: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] apcupsd-3.14.14/src/win32/balloonmgr.cpp:48:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAIT_TIMEOUT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/balloonmgr.cpp:71:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/balloonmgr.cpp:95:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NIF_INFO [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/balloonmgr.cpp:125:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NIF_INFO [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/balloonmgr.cpp:156:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAIT_OBJECT_0 [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/compat.cpp:135:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winabout.h:21:4: style: Class 'upsAbout' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/win32/instmgr.h:42:4: style: Class 'InstanceManager' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] apcupsd-3.14.14/src/win32/balloonmgr.cpp:32:4: performance: Variable '_mutex' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] apcupsd-3.14.14/src/win32/apctray.cpp:103:10: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/apctray.cpp:239:37: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/apctray.cpp:61:12: style: The scope of the variable 'args' can be reduced. [variableScope] apcupsd-3.14.14/src/win32/balloonmgr.cpp:138:24: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/apctray.cpp:62:9: style: The scope of the variable 'buf' can be reduced. [variableScope] apcupsd-3.14.14/src/win32/apctray.cpp:186:10: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] apcupsd-3.14.14/src/win32/balloonmgr.cpp:90:13: style: Variable 'balloon' can be declared as reference to const [constVariableReference] apcupsd-3.14.14/src/win32/balloonmgr.cpp:120:13: style: Variable 'balloon' can be declared as reference to const [constVariableReference] apcupsd-3.14.14/src/win32/compat/kill.c:35:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/ioctl.c:30:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCB [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/ioctl.c:59:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCB [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/ioctl.c:91:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/ioctl.c:135:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/pathconf.c:36:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/syslog.c:46:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENTLOG_ERROR_TYPE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:96:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WinUsb_Initialize [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:130:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USB_DEVICE_DESCRIPTOR_TYPE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:149:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIGCF_DEVICEINTERFACE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:219:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_WRITE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:291:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXIMUM_USB_STRING_LENGTH [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:319:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:344:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/tcflush.c:28:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/tcgetattr.c:29:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable B110 [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/tcgetattr.c:63:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CS5 [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/tcgetattr.c:77:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCB [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/tcsetattr.c:29:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CBR_110 [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/tcsetattr.c:77:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCB [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/waitpid.c:28:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/tcsetattr.c:90:40: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] apcupsd-3.14.14/src/win32/compat/tcsetattr.c:94:41: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] apcupsd-3.14.14/src/win32/compat/winapi.c:51:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable p_CreateFileA [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/winapi.c:169:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_SUCCESS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:239:4: warning: If memory allocation fails, then there is a possible null pointer dereference: usb [nullPointerOutOfMemory] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:238:38: note: Assuming allocation function fails apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:238:7: note: Assignment 'usb=(struct usb_dev_handle*)malloc(sizeof(struct usb_dev_handle))', assigned value is 0 apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:239:4: note: Null pointer dereference apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:240:4: warning: If memory allocation fails, then there is a possible null pointer dereference: usb [nullPointerOutOfMemory] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:238:38: note: Assuming allocation function fails apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:238:7: note: Assignment 'usb=(struct usb_dev_handle*)malloc(sizeof(struct usb_dev_handle))', assigned value is 0 apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:240:4: note: Null pointer dereference apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:252:43: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:257:41: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:262:43: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] apcupsd-3.14.14/src/win32/compat/libusb-winusb-bridge.c:367:31: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] apcupsd-3.14.14/src/win32/listview.cpp:30:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LVCF_SUBITEM [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/listview.cpp:41:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LVIF_TEXT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/listview.cpp:54:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LVIF_TEXT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/listview.cpp:70:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LVM_GETITEMCOUNT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/listview.cpp:76:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LVM_SETCOLUMNWIDTH [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/listview.cpp:81:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LVM_DELETEITEM [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/email.c:31:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAPI_TO [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/listview.cpp:27:4: performance: Variable '_hwnd' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] apcupsd-3.14.14/src/win32/listview.cpp:44:18: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/listview.cpp:63:21: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/listview.cpp:123:11: style: Local variable 'count' shadows outer variable [shadowVariable] apcupsd-3.14.14/src/win32/listview.cpp:95:8: note: Shadowed declaration apcupsd-3.14.14/src/win32/listview.cpp:123:11: note: Shadow variable apcupsd-3.14.14/src/win32/listview.cpp:124:38: style: Local variable 'iter' shadows outer variable [shadowVariable] apcupsd-3.14.14/src/win32/listview.cpp:98:35: note: Shadowed declaration apcupsd-3.14.14/src/win32/listview.cpp:124:38: note: Shadow variable apcupsd-3.14.14/src/win32/meter.cpp:36:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PBM_SETPOS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:59:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HKEY_LOCAL_MACHINE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:117:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_READ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:134:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HKEY_LOCAL_MACHINE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:238:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:268:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HKEY_LOCAL_MACHINE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:294:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HKEY_LOCAL_MACHINE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:327:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_DWORD [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:344:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_SZ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:355:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_DWORD [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:360:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REG_SZ [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/meter.cpp:28:4: performance: Variable '_hwnd' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] apcupsd-3.14.14/src/win32/popup.c:47:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_OK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/popup.c:34:23: style: Redundant condition: The condition '*wordPtr' is redundant since '*wordPtr == ' '' is sufficient. [redundantCondition] apcupsd-3.14.14/src/win32/instmgr.cpp:248:26: performance:inconclusive: Technically the member function 'InstanceManager::CreateId' can be static (but you may consider moving to unnamed namespace). [functionStatic] apcupsd-3.14.14/src/win32/instmgr.h:69:12: note: Technically the member function 'InstanceManager::CreateId' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/instmgr.cpp:248:26: note: Technically the member function 'InstanceManager::CreateId' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/instmgr.cpp:319:23: performance:inconclusive: Technically the member function 'InstanceManager::RegQueryDWORD' can be static (but you may consider moving to unnamed namespace). [functionStatic] apcupsd-3.14.14/src/win32/instmgr.h:71:9: note: Technically the member function 'InstanceManager::RegQueryDWORD' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/instmgr.cpp:319:23: note: Technically the member function 'InstanceManager::RegQueryDWORD' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/instmgr.cpp:336:23: performance:inconclusive: Technically the member function 'InstanceManager::RegQueryString' can be static (but you may consider moving to unnamed namespace). [functionStatic] apcupsd-3.14.14/src/win32/instmgr.h:72:9: note: Technically the member function 'InstanceManager::RegQueryString' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/instmgr.cpp:336:23: note: Technically the member function 'InstanceManager::RegQueryString' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/instmgr.cpp:353:23: performance:inconclusive: Technically the member function 'InstanceManager::RegSetDWORD' can be static (but you may consider moving to unnamed namespace). [functionStatic] apcupsd-3.14.14/src/win32/instmgr.h:73:9: note: Technically the member function 'InstanceManager::RegSetDWORD' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/instmgr.cpp:353:23: note: Technically the member function 'InstanceManager::RegSetDWORD' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/instmgr.cpp:358:23: performance:inconclusive: Technically the member function 'InstanceManager::RegSetString' can be static (but you may consider moving to unnamed namespace). [functionStatic] apcupsd-3.14.14/src/win32/instmgr.h:74:9: note: Technically the member function 'InstanceManager::RegSetString' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/instmgr.cpp:358:23: note: Technically the member function 'InstanceManager::RegSetString' can be static (but you may consider moving to unnamed namespace). apcupsd-3.14.14/src/win32/shutdown.c:47:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/instmgr.cpp:259:20: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/instmgr.cpp:326:49: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/instmgr.cpp:355:44: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/instmgr.cpp:343:49: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/win32/instmgr.cpp:360:41: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] apcupsd-3.14.14/src/win32/instmgr.cpp:336:43: style:inconclusive: Function 'RegQueryString' argument 1 names different: declaration 'key' definition 'hkey'. [funcArgNamesDifferent] apcupsd-3.14.14/src/win32/instmgr.h:72:29: note: Function 'RegQueryString' argument 1 names different: declaration 'key' definition 'hkey'. apcupsd-3.14.14/src/win32/instmgr.cpp:336:43: note: Function 'RegQueryString' argument 1 names different: declaration 'key' definition 'hkey'. apcupsd-3.14.14/src/win32/instmgr.cpp:353:40: style:inconclusive: Function 'RegSetDWORD' argument 1 names different: declaration 'key' definition 'hkey'. [funcArgNamesDifferent] apcupsd-3.14.14/src/win32/instmgr.h:73:26: note: Function 'RegSetDWORD' argument 1 names different: declaration 'key' definition 'hkey'. apcupsd-3.14.14/src/win32/instmgr.cpp:353:40: note: Function 'RegSetDWORD' argument 1 names different: declaration 'key' definition 'hkey'. apcupsd-3.14.14/src/win32/instmgr.cpp:358:41: style:inconclusive: Function 'RegSetString' argument 1 names different: declaration 'key' definition 'hkey'. [funcArgNamesDifferent] apcupsd-3.14.14/src/win32/instmgr.h:74:27: note: Function 'RegSetString' argument 1 names different: declaration 'key' definition 'hkey'. apcupsd-3.14.14/src/win32/instmgr.cpp:358:41: note: Function 'RegSetString' argument 1 names different: declaration 'key' definition 'hkey'. apcupsd-3.14.14/src/win32/instmgr.cpp:96:22: style: Local variable 'config' shadows outer variable [shadowVariable] apcupsd-3.14.14/src/win32/instmgr.cpp:55:19: note: Shadowed declaration apcupsd-3.14.14/src/win32/instmgr.cpp:96:22: note: Shadow variable apcupsd-3.14.14/src/win32/instmgr.cpp:307:12: style: Local variable 'runkey' shadows outer variable [shadowVariable] apcupsd-3.14.14/src/win32/instmgr.cpp:282:9: note: Shadowed declaration apcupsd-3.14.14/src/win32/instmgr.cpp:307:12: note: Shadow variable apcupsd-3.14.14/src/win32/winabout.cpp:51:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GWL_USERDATA [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winabout.cpp:22:4: performance: Variable '_dlgvisible' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] apcupsd-3.14.14/src/win32/winabout.cpp:23:4: performance: Variable '_appinst' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] apcupsd-3.14.14/src/win32/winabout.cpp:51:22: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winabout.cpp:59:15: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winconfig.cpp:69:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WM_INITDIALOG [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winconfig.cpp:107:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WM_SETTEXT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winevents.cpp:56:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WM_INITDIALOG [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winevents.cpp:129:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWP_NOZORDER [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winmain.cpp:125:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_OK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winmain.cpp:169:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WM_CLOSE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winmain.cpp:214:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winmain.cpp:266:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_os_version [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winmain.cpp:300:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_ALREADY_EXISTS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winevents.cpp:21:12: warning: Member variable 'upsEvents::_events' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/win32/winevents.cpp:61:15: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winevents.cpp:66:15: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winevents.cpp:103:25: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winconfig.cpp:29:12: warning: Member variable 'upsConfig::_hostvalid' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/win32/winconfig.cpp:29:12: warning: Member variable 'upsConfig::_portvalid' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/win32/winconfig.cpp:29:12: warning: Member variable 'upsConfig::_refreshvalid' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/win32/winconfig.cpp:74:15: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winconfig.cpp:79:15: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winmain.cpp:308:44: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winconfig.cpp:41:37: style: Parameter 'mcfg' can be declared as reference to const [constParameterReference] apcupsd-3.14.14/src/win32/winservice.cpp:53:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dwPlatformId [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:122:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_OK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:152:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_OK [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:188:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_ICONEXCLAMATION [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:324:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dwPlatformId [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:407:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVICE_STOP_PENDING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:433:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVICE_START_PENDING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:464:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORMAT_MESSAGE_ALLOCATE_BUFFER [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:507:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ChangeServiceConfig2 [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:529:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HKEY_LOCAL_MACHINE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:540:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVICE_RUNNING [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winservice.cpp:566:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVICE_ALL_ACCESS [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winstat.cpp:58:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WM_INITDIALOG [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winstat.cpp:133:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWP_NOZORDER [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winstat.cpp:194:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WM_SETTEXT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/wintray.cpp:55:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WHITE_BRUSH [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/wintray.cpp:112:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAIT_TIMEOUT [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/wintray.cpp:145:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NIM_ADD [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winstat.cpp:23:12: warning: Member variable 'upsStatus::_bmeter' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/win32/wintray.cpp:150:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NIM_DELETE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winstat.cpp:23:12: warning: Member variable 'upsStatus::_lmeter' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/win32/wintray.cpp:155:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NIM_MODIFY [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winstat.cpp:23:12: warning: Member variable 'upsStatus::_grid' is not initialized in the constructor. [uninitMemberVar] apcupsd-3.14.14/src/win32/wintray.cpp:166:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NIF_ICON [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/wintray.cpp:222:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GWL_USERDATA [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/wintray.cpp:259:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WM_CLOSE [valueFlowBailoutIncompleteVar] apcupsd-3.14.14/src/win32/winstat.cpp:63:15: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winstat.cpp:68:15: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winstat.cpp:107:25: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winservice.cpp:70:10: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winservice.cpp:226:13: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winservice.cpp:494:16: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winservice.cpp:533:50: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/winservice.cpp:459:30: style:inconclusive: Function 'LogErrorMsg' argument 1 names different: declaration 'msg' definition 'message'. [funcArgNamesDifferent] apcupsd-3.14.14/src/win32/winservice.cpp:20:30: note: Function 'LogErrorMsg' argument 1 names different: declaration 'msg' definition 'message'. apcupsd-3.14.14/src/win32/winservice.cpp:459:30: note: Function 'LogErrorMsg' argument 1 names different: declaration 'msg' definition 'message'. apcupsd-3.14.14/src/win32/wintray.cpp:43:4: performance: Variable '_tbcreated_msg' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] apcupsd-3.14.14/src/win32/wintray.cpp:120:11: warning: Class 'upsMenu' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] apcupsd-3.14.14/src/win32/wintray.cpp:120:11: warning: Class 'upsMenu' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] apcupsd-3.14.14/src/win32/wintray.cpp:222:21: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/wintray.cpp:388:21: style: C-style pointer casting [cstyleCast] apcupsd-3.14.14/src/win32/wintray.cpp:320:37: style: Clarify calculation precedence for '|' and '?'. [clarifyCalculation] diff: 2.18.0 apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:587:4: warning: Class 'VbListMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] head apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:587:4: warning: Class 'VbListMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] 2.18.0 apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:587:4: warning: Class 'VbListMessage' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] head apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:587:4: warning: Class 'VbListMessage' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] 2.18.0 apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:713:4: warning: Class 'TrapMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] head apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:713:4: warning: Class 'TrapMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] 2.18.0 apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:713:4: warning: Class 'TrapMessage' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] head apcupsd-3.14.14/src/drivers/snmplite/snmp.cpp:713:4: warning: Class 'TrapMessage' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] head apcupsd-3.14.14/src/drivers/snmplite/snmp.h:132:41: warning: Class 'VbListMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] head apcupsd-3.14.14/src/drivers/snmplite/snmp.h:132:41: warning: Class 'VbListMessage' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] head apcupsd-3.14.14/src/drivers/snmplite/snmp.h:165:39: warning: Class 'TrapMessage' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] head apcupsd-3.14.14/src/drivers/snmplite/snmp.h:165:39: warning: Class 'TrapMessage' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1045:21: style: Variable 'norm_pix' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1071:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1142:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_ALIGN_CENTER [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1334:17: style: Variable 'clip_area.x' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1335:17: style: Variable 'clip_area.y' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1336:21: style: Variable 'clip_area.width' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1337:22: style: Variable 'clip_area.height' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1420:18: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1560:14: style: Variable 'size' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1580:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_INTERP_BILINEAR [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1609:19: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1812:11: style: Variable 'pchx' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1812:55: style: Variable 'pch5' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1812:69: style: Variable 'pch5a' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1813:14: style: Variable 'pch5b' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1814:11: style: Variable 'pch1' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1814:25: style: Variable 'pch2' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1814:53: style: Variable 'pch4' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1815:11: style: Variable 'pch6' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1815:53: style: Variable 'pch9' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1816:11: style: Variable 'pchb' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1816:25: style: Variable 'pchc' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1816:39: style: Variable 'pchd' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1816:53: style: Variable 'pche' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:1817:11: style: Variable 'pcha' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2069:38: style: Variable 'pch2' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2069:52: style: Variable 'pch3' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2069:66: style: Variable 'pch4' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2070:29: style: Variable 'pch5' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2070:43: style: Variable 'pch6' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:211:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2143:12: style: Variable 'dCharge' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2241:41: style: Parameter 'pch_func' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2241:59: style: Parameter 'pch_topic' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2241:78: style: Parameter 'pch_emsg' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2260:17: style: Variable 'ios' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2288:13: style: Variable 'b_eof' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2343:17: style: Variable 'ios' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2371:13: style: Variable 'b_eof' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2446:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_STATUS_NORMAL [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2453:7: error: Memory pointed to by 'gerror' is freed twice. [doubleFree] apcupsd-3.14.14/src/gapcmon/gapcmon.c:2449:11: note: Memory pointed to by 'gerror' is freed twice. apcupsd-3.14.14/src/gapcmon/gapcmon.c:2453:7: note: Memory pointed to by 'gerror' is freed twice. 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2459:5: error: Memory pointed to by 'ioc' is freed twice. [doubleFree] apcupsd-3.14.14/src/gapcmon/gapcmon.c:2449:11: note: Memory pointed to by 'ioc' is freed twice. apcupsd-3.14.14/src/gapcmon/gapcmon.c:2459:5: note: Memory pointed to by 'ioc' is freed twice. 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2479:14: style: Variable 'nrc' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2488:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2507:29: style: Variable 'phe' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2591:46: style: Parameter 'pch_remote_ip' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:272:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2740:8: warning: Either the condition 'pm=(struct _Monitor_Instance_Data*)g_async_queue_pop(thread_queue)' is redundant or there is possible null pointer dereference: pm. [nullPointerRedundantCheck] apcupsd-3.14.14/src/gapcmon/gapcmon.c:2713:15: note: Assuming that condition 'pm=(struct _Monitor_Instance_Data*)g_async_queue_pop(thread_queue)' is not redundant apcupsd-3.14.14/src/gapcmon/gapcmon.c:2740:8: note: Null pointer dereference 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2848:11: style: Variable 'pkey' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2883:43: style: Parameter 'pch_func' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2883:61: style: Parameter 'pch_topic' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2884:12: style: Parameter 'pch_emsg' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2960:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_IN [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:2994:54: style: Parameter 'pch_text' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:306:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3193:55: style: Parameter 'plug' can be declared as pointer to const. However it seems that 'cb_panel_systray_icon_activated' is a callback function, if 'plug' is declared with const you might also need to cast function pointer(s). [constParameterCallback] apcupsd-3.14.14/src/gapcmon/gapcmon.c:3388:4: note: You might need to cast the function pointer here apcupsd-3.14.14/src/gapcmon/gapcmon.c:3193:55: note: Parameter 'plug' can be declared as pointer to const 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3251:66: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'cb_panel_systray_icon_handle_clicked' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] apcupsd-3.14.14/src/gapcmon/gapcmon.c:3394:4: note: You might need to cast the function pointer here apcupsd-3.14.14/src/gapcmon/gapcmon.c:3251:66: note: Parameter 'widget' can be declared as pointer to const 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3281:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3799:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:385:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3947:4: style: Obsolete function 'gtk_signal_connect_full' called. It is recommended to use 'g_signal_connect_data' instead. [prohibitedgtk_signal_connect_fullCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3950:4: style: Obsolete function 'gtk_signal_connect_full' called. It is recommended to use 'g_signal_connect_data' instead. [prohibitedgtk_signal_connect_fullCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3953:4: style: Obsolete function 'gtk_signal_connect_full' called. It is recommended to use 'g_signal_connect_data' instead. [prohibitedgtk_signal_connect_fullCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3956:4: style: Obsolete function 'gtk_signal_connect_full' called. It is recommended to use 'g_signal_connect_data' instead. [prohibitedgtk_signal_connect_fullCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3959:4: style: Obsolete function 'gtk_signal_connect_full' called. It is recommended to use 'g_signal_connect_data' instead. [prohibitedgtk_signal_connect_fullCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3962:4: style: Obsolete function 'gtk_signal_connect_full' called. It is recommended to use 'g_signal_connect_data' instead. [prohibitedgtk_signal_connect_fullCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:3965:4: style: Obsolete function 'gtk_signal_connect_full' called. It is recommended to use 'g_signal_connect_data' instead. [prohibitedgtk_signal_connect_fullCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:407:60: style: Parameter 'pch_legend_text' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4104:12: style: Variable 'pch_2' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4105:12: style: Variable 'pch_3' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4107:12: style: Variable 'pch_image_names' can be declared as const array [constVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4124:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4157:33: style: Array index 'x' is used before limits check. [arrayIndexThenCheck] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:422:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GdkPoint [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4264:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_OUT [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4332:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_OUT [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4345:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4354:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4384:10: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4410:10: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4431:67: style: Parameter 'pch_pname' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4432:12: style: Parameter 'pch_pversion' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4458:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_OUT [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4463:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4467:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4567:86: style: Parameter 'event' can be declared as pointer to const. However it seems that 'cb_util_manage_iconify_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] apcupsd-3.14.14/src/gapcmon/gapcmon.c:6226:4: note: You might need to cast the function pointer here apcupsd-3.14.14/src/gapcmon/gapcmon.c:4567:86: note: Parameter 'event' can be declared as pointer to const 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4573:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_STATE [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4763:17: style: Variable 'i_value' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4763:28: style: Variable 'i_len' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4764:19: style: Variable 'f_value' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4766:21: style: Variable 'b_value' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4771:24: style: Variable 'b_k_is_dir' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4772:23: style: Variable 'b_m_valid' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4773:40: style: Variable 'b_add' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4773:63: style: Variable 'b_active_valid' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:477:70: style: Parameter 'pch_color' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4788:18: style: Variable 'b_k_is_dir' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4792:17: style: Variable 'b_m_valid' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:483:70: style: Parameter 'pch_color' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4847:13: style: Variable 'b_add' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:488:67: style: Parameter 'pch_color' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:493:66: style: Parameter 'pch_color' can be declared as pointer to const [constParameterPointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4950:36: warning: Either the condition 'ov_s_host' is redundant or there is possible null pointer dereference: ov_s_host. [nullPointerRedundantCheck] apcupsd-3.14.14/src/gapcmon/gapcmon.c:4969:14: note: Assuming that condition 'ov_s_host' is not redundant apcupsd-3.14.14/src/gapcmon/gapcmon.c:4950:36: note: Null pointer dereference 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:4967:27: style: Variable 'b_flag_dupped' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5078:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCONF_CLIENT_PRELOAD_ONELEVEL [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:521:66: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'lg_graph_button_press_event_cb' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] apcupsd-3.14.14/src/gapcmon/gapcmon.c:5700:41: note: You might need to cast the function pointer here apcupsd-3.14.14/src/gapcmon/gapcmon.c:521:66: note: Parameter 'ev' can be declared as pointer to const 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:525:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5288:11: style: Variable 'pch' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5357:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_WINDOW [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5373:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5380:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5384:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5398:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5478:30: style: Variable 'i_series' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5489:17: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5509:10: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5651:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_EXPOSURE_MASK [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5693:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5695:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5697:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5699:5: style: Obsolete function 'gtk_signal_connect' called. It is recommended to use 'g_signal_connect' instead. [prohibitedgtk_signal_connectCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5718:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_NONE [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5723:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5729:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5732:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5744:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5747:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5750:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5781:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5784:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5787:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5817:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5835:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5838:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5841:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5878:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_IN [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5911:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5918:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_IN [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5946:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5954:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5960:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5982:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_IN [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5986:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:5990:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6007:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6023:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6039:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6055:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6077:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6081:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6097:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6113:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6140:15: style: Variable 'pixbuf' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6215:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_WINDOW [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6232:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6239:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6243:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6257:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6393:15: style: Variable 'window' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:6418:11: style: Variable 'window' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:646:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_TAB_LEFT [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:695:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_SCALE [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:722:17: style: Variable 'drawing_area' can be declared as pointer to const [constVariablePointer] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:734:18: style: Variable 'drawing_area' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:748:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GdkSegment [valueFlowBailoutIncompleteVar] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:805:11: style: Variable 'x_pos' is assigned a value that is never used. [unreadVariable] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:805:11: style: Variable 'x_pos' is reassigned a value before the old one has been used. [redundantAssignment] apcupsd-3.14.14/src/gapcmon/gapcmon.c:795:11: note: x_pos is assigned apcupsd-3.14.14/src/gapcmon/gapcmon.c:805:11: note: x_pos is overwritten 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:895:20: style: Obsolescent function 'ctime_r' called. It is recommended to use 'strftime' instead. [prohibitedctime_rCalled] 2.18.0 apcupsd-3.14.14/src/gapcmon/gapcmon.c:914:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] head apcupsd-3.14.14/src/gapcmon/gapcmon.c:960:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head apcupsd-3.14.14/src/gapcmon/gapcmon.c:960:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head apcupsd-3.14.14/src/win32/wintray.cpp:120:11: warning: Class 'upsMenu' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] head apcupsd-3.14.14/src/win32/wintray.cpp:120:11: warning: Class 'upsMenu' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] DONE