2025-08-29 17:44 ftp://ftp.de.debian.org/debian/pool/main/z/zoneminder/zoneminder_1.36.35+dfsg1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --library=zlib --library=libcurl --library=pcre --library=bsd --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: 269 879 elapsed-time: 1.9 7.5 head-timing-info: old-timing-info: head results: zoneminder-1.36.35/dep/libbcrypt/src/main.cpp:8:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/bcrypt.c:45:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/bcrypt.c:63:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/bcrypt.c:138:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/bcrypt.c:162:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BCRYPT_HASHSIZE [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/bcrypt.c:169:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BCRYPT_HASHSIZE [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/crypt_gensalt.c:45:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/crypt_gensalt.c:68:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/crypt_gensalt.c:100:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/bcrypt.c:117:8: style: Variable 'aux' can be declared as pointer to const [constVariablePointer] zoneminder-1.36.35/dep/libbcrypt/src/bcrypt.c:161:8: style: Variable 'aux' can be declared as pointer to const [constVariablePointer] zoneminder-1.36.35/dep/libbcrypt/src/wrapper.c:79:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/wrapper.c:217:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/wrapper.c:262:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/vs2017/test/main.cpp:10:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/wrapper.c:232:13: style: Condition 'prefix[0]' is always true [knownConditionTrueFalse] zoneminder-1.36.35/src/zm_ffmpeg.h:309:0: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] zoneminder-1.36.35/src/zm_ffmpeg.h:309:2: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] zoneminder-1.36.35/src/zm_buffer.cpp:83:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_buffer.h:158:11: warning: Member variable 'Buffer::mStorage' is not assigned a value in 'Buffer::operator='. [operatorEqVarError] zoneminder-1.36.35/src/zm_buffer.h:158:11: warning: Member variable 'Buffer::mAllocation' is not assigned a value in 'Buffer::operator='. [operatorEqVarError] zoneminder-1.36.35/src/zm_buffer.h:158:11: warning: Member variable 'Buffer::mSize' is not assigned a value in 'Buffer::operator='. [operatorEqVarError] zoneminder-1.36.35/src/zm_buffer.h:158:11: warning: Member variable 'Buffer::mHead' is not assigned a value in 'Buffer::operator='. [operatorEqVarError] zoneminder-1.36.35/src/zm_buffer.h:158:11: warning: Member variable 'Buffer::mTail' is not assigned a value in 'Buffer::operator='. [operatorEqVarError] zoneminder-1.36.35/src/zm_logger.h:123:7: performance:inconclusive: Technically the member function 'Logger::limit' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_logger.h:70:5: style: Class 'Options' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] zoneminder-1.36.35/src/zm_buffer.h:136:19: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_buffer.cpp:40:7: style: The scope of the variable 'tailSpace' can be reduced. [variableScope] zoneminder-1.36.35/src/zm_crypt.cpp:182:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable digest_final [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_crypt.cpp:178:5: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] zoneminder-1.36.35/src/zm_crypt.cpp:83:63: style:inconclusive: Function 'verifyToken' argument 1 names different: declaration 'token' definition 'jwt_token_str'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_crypt.h:28:64: note: Function 'verifyToken' argument 1 names different: declaration 'token' definition 'jwt_token_str'. zoneminder-1.36.35/src/zm_crypt.cpp:83:63: note: Function 'verifyToken' argument 1 names different: declaration 'token' definition 'jwt_token_str'. zoneminder-1.36.35/src/zm_utils.h:85:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_config.cpp:36:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZM_CONFIG [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_config.cpp:116:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_config.cpp:350:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZM_MAX_CFG_ID [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_config.cpp:363:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZM_CFG_ASSIGN_LIST [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_config.cpp:372:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZM_MAX_CFG_ID [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:64:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:72:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:80:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:88:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:132:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:158:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:178:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:221:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:229:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:237:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:251:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:263:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:338:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:369:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:375:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:387:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.h:504:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:43:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:61:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:75:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:98:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:116:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:131:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:146:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h_errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:168:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h_errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:183:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:198:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:208:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:219:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:238:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:253:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:261:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOMAXCONN [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:277:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:295:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:316:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIONREAD [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:326:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:338:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:358:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:367:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:375:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:383:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:393:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:403:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:413:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:424:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:436:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:513:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_comms.cpp:727:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_config.cpp:214:13: warning: Member variable 'ConfigItem::cfg_value' is not initialized in the constructor. [uninitMemberVar] zoneminder-1.36.35/src/zm_config.cpp:228:13: warning: Member variable 'ConfigItem::cfg_type' is not initialized in the copy constructor. [uninitMemberVar] zoneminder-1.36.35/src/zm_config.cpp:228:13: warning: Member variable 'ConfigItem::cfg_value' is not initialized in the copy constructor. [uninitMemberVar] zoneminder-1.36.35/src/zm_config.h:115:15: warning: Member variable 'ConfigItem::cfg_type' is not assigned a value in 'ConfigItem::operator='. [operatorEqVarError] zoneminder-1.36.35/src/zm_config.h:115:15: warning: Member variable 'ConfigItem::cfg_value' is not assigned a value in 'ConfigItem::operator='. [operatorEqVarError] zoneminder-1.36.35/src/zm_config.cpp:362:14: performance:inconclusive: Technically the member function 'Config::Assign' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_config.h:146:8: note: Technically the member function 'Config::Assign' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_config.cpp:362:14: note: Technically the member function 'Config::Assign' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_config.cpp:334:14: warning: Class 'Config' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] zoneminder-1.36.35/src/zm_config.cpp:334:14: warning: Class 'Config' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] zoneminder-1.36.35/src/zm_config.cpp:241:13: error: Mismatching allocation and deallocation: ConfigItem::name [mismatchAllocDealloc] zoneminder-1.36.35/src/zm_config.cpp:244:14: error: Mismatching allocation and deallocation: ConfigItem::value [mismatchAllocDealloc] zoneminder-1.36.35/src/zm_config.cpp:247:13: error: Mismatching allocation and deallocation: ConfigItem::type [mismatchAllocDealloc] zoneminder-1.36.35/src/zm_db.cpp:47:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MYSQL_OPT_SSL_KEY [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_db.cpp:220:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ER_LOCK_WAIT_TIMEOUT [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_db.cpp:241:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ER_LOCK_WAIT_TIMEOUT [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_db.cpp:260:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ER_LOCK_WAIT_TIMEOUT [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_config.cpp:149:11: style: Variable 'name_ptr' can be declared as pointer to const [constVariablePointer] zoneminder-1.36.35/src/zm_config.cpp:377:15: style: Variable 'item' can be declared as pointer to const [constVariablePointer] zoneminder-1.36.35/src/zm_comms.cpp:145:21: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] zoneminder-1.36.35/src/zm_comms.cpp:151:21: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] zoneminder-1.36.35/src/zm_comms.cpp:167:21: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] zoneminder-1.36.35/src/zm_comms.cpp:182:21: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] zoneminder-1.36.35/src/zm_comms.h:145:12: warning:inconclusive: Member variable 'SockAddrInet::mTempAddrIn' is not assigned in the copy constructor. Should it be copied? [missingMemberCopy] zoneminder-1.36.35/src/zm_comms.h:168:3: warning:inconclusive: Member variable 'SockAddrUnix::mTempAddrUn' is not assigned in the copy constructor. Should it be copied? [missingMemberCopy] zoneminder-1.36.35/src/zm_comms.h:510:3: warning: Member variable 'InetSocket::mAddressFamily' is not initialized in the constructor. Maybe it should be initialized directly in the class InetSocket? [uninitDerivedMemberVar] zoneminder-1.36.35/src/zm_comms.h:207:12: warning: Class 'Socket' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] zoneminder-1.36.35/src/zm_comms.h:207:12: warning: Class 'Socket' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] zoneminder-1.36.35/src/zm_comms.h:111:8: style: Virtual function 'close' is called from destructor '~Pipe()' at line 108. Dynamic binding is not used. [virtualCallInConstructor] zoneminder-1.36.35/src/zm_comms.h:108:22: note: Calling close zoneminder-1.36.35/src/zm_comms.h:111:8: note: close is a virtual function zoneminder-1.36.35/src/zm_comms.h:216:8: style: Virtual function 'close' is called from destructor '~Socket()' at line 206. Dynamic binding is not used. [virtualCallInConstructor] zoneminder-1.36.35/src/zm_comms.h:206:5: note: Calling close zoneminder-1.36.35/src/zm_comms.h:216:8: note: close is a virtual function zoneminder-1.36.35/src/zm_comms.h:401:8: warning: The class 'UdpInetSocket' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:509:22: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:401:8: note: Derived function 'UdpInetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:405:8: warning: The class 'UdpInetSocket' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:571:22: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:405:8: note: Derived function 'UdpInetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:409:8: warning: The class 'UdpInetSocket' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:567:22: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:409:8: note: Derived function 'UdpInetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:413:8: warning: The class 'UdpInetSocket' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:578:22: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:413:8: note: Derived function 'UdpInetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:417:8: warning: The class 'UdpInetSocket' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:430:22: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:417:8: note: Derived function 'UdpInetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:421:8: warning: The class 'UdpInetSocket' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:502:22: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:421:8: note: Derived function 'UdpInetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:428:8: warning: The class 'UdpUnixSocket' defines member function with name 'bind' also defined in its parent class 'UnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:354:8: note: Parent function 'UnixSocket::bind' zoneminder-1.36.35/src/zm_comms.h:428:8: note: Derived function 'UdpUnixSocket::bind' zoneminder-1.36.35/src/zm_comms.h:432:8: warning: The class 'UdpUnixSocket' defines member function with name 'connect' also defined in its parent class 'UnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:360:8: note: Parent function 'UnixSocket::connect' zoneminder-1.36.35/src/zm_comms.h:432:8: note: Derived function 'UdpUnixSocket::connect' zoneminder-1.36.35/src/zm_comms.h:439:8: warning: The class 'UdpInetClient' defines member function with name 'connect' also defined in its parent class 'UdpInetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:417:8: note: Parent function 'UdpInetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:439:8: note: Derived function 'UdpInetClient::connect' zoneminder-1.36.35/src/zm_comms.h:443:8: warning: The class 'UdpInetClient' defines member function with name 'connect' also defined in its parent class 'UdpInetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:421:8: note: Parent function 'UdpInetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:443:8: note: Derived function 'UdpInetClient::connect' zoneminder-1.36.35/src/zm_comms.h:439:8: warning: The class 'UdpInetClient' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:430:22: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:439:8: note: Derived function 'UdpInetClient::connect' zoneminder-1.36.35/src/zm_comms.h:443:8: warning: The class 'UdpInetClient' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:502:22: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:443:8: note: Derived function 'UdpInetClient::connect' zoneminder-1.36.35/src/zm_comms.h:450:8: warning: The class 'UdpUnixClient' defines member function with name 'bind' also defined in its parent class 'UdpUnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:428:8: note: Parent function 'UdpUnixSocket::bind' zoneminder-1.36.35/src/zm_comms.h:450:8: note: Derived function 'UdpUnixClient::bind' zoneminder-1.36.35/src/zm_comms.h:454:8: warning: The class 'UdpUnixClient' defines member function with name 'connect' also defined in its parent class 'UdpUnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:432:8: note: Parent function 'UdpUnixSocket::connect' zoneminder-1.36.35/src/zm_comms.h:454:8: note: Derived function 'UdpUnixClient::connect' zoneminder-1.36.35/src/zm_comms.h:450:8: warning: The class 'UdpUnixClient' defines member function with name 'bind' also defined in its parent class 'UnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:354:8: note: Parent function 'UnixSocket::bind' zoneminder-1.36.35/src/zm_comms.h:450:8: note: Derived function 'UdpUnixClient::bind' zoneminder-1.36.35/src/zm_comms.h:454:8: warning: The class 'UdpUnixClient' defines member function with name 'connect' also defined in its parent class 'UnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:360:8: note: Parent function 'UnixSocket::connect' zoneminder-1.36.35/src/zm_comms.h:454:8: note: Derived function 'UdpUnixClient::connect' zoneminder-1.36.35/src/zm_comms.h:461:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'UdpInetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:401:8: note: Parent function 'UdpInetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:461:8: note: Derived function 'UdpInetServer::bind' zoneminder-1.36.35/src/zm_comms.h:465:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'UdpInetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:405:8: note: Parent function 'UdpInetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:465:8: note: Derived function 'UdpInetServer::bind' zoneminder-1.36.35/src/zm_comms.h:469:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'UdpInetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:409:8: note: Parent function 'UdpInetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:469:8: note: Derived function 'UdpInetServer::bind' zoneminder-1.36.35/src/zm_comms.h:473:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'UdpInetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:413:8: note: Parent function 'UdpInetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:473:8: note: Derived function 'UdpInetServer::bind' zoneminder-1.36.35/src/zm_comms.h:478:8: warning: The class 'UdpInetServer' defines member function with name 'connect' also defined in its parent class 'UdpInetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:417:8: note: Parent function 'UdpInetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:478:8: note: Derived function 'UdpInetServer::connect' zoneminder-1.36.35/src/zm_comms.h:482:8: warning: The class 'UdpInetServer' defines member function with name 'connect' also defined in its parent class 'UdpInetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:421:8: note: Parent function 'UdpInetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:482:8: note: Derived function 'UdpInetServer::connect' zoneminder-1.36.35/src/zm_comms.h:461:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:509:22: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:461:8: note: Derived function 'UdpInetServer::bind' zoneminder-1.36.35/src/zm_comms.h:465:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:571:22: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:465:8: note: Derived function 'UdpInetServer::bind' zoneminder-1.36.35/src/zm_comms.h:469:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:567:22: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:469:8: note: Derived function 'UdpInetServer::bind' zoneminder-1.36.35/src/zm_comms.h:473:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:578:22: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:473:8: note: Derived function 'UdpInetServer::bind' zoneminder-1.36.35/src/zm_comms.h:478:8: warning: The class 'UdpInetServer' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:430:22: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:478:8: note: Derived function 'UdpInetServer::connect' zoneminder-1.36.35/src/zm_comms.h:482:8: warning: The class 'UdpInetServer' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:502:22: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:482:8: note: Derived function 'UdpInetServer::connect' zoneminder-1.36.35/src/zm_comms.h:489:8: warning: The class 'UdpUnixServer' defines member function with name 'bind' also defined in its parent class 'UdpUnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:428:8: note: Parent function 'UdpUnixSocket::bind' zoneminder-1.36.35/src/zm_comms.h:489:8: note: Derived function 'UdpUnixServer::bind' zoneminder-1.36.35/src/zm_comms.h:494:8: warning: The class 'UdpUnixServer' defines member function with name 'connect' also defined in its parent class 'UdpUnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:432:8: note: Parent function 'UdpUnixSocket::connect' zoneminder-1.36.35/src/zm_comms.h:494:8: note: Derived function 'UdpUnixServer::connect' zoneminder-1.36.35/src/zm_comms.h:489:8: warning: The class 'UdpUnixServer' defines member function with name 'bind' also defined in its parent class 'UnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:354:8: note: Parent function 'UnixSocket::bind' zoneminder-1.36.35/src/zm_comms.h:489:8: note: Derived function 'UdpUnixServer::bind' zoneminder-1.36.35/src/zm_comms.h:494:8: warning: The class 'UdpUnixServer' defines member function with name 'connect' also defined in its parent class 'UnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:360:8: note: Parent function 'UnixSocket::connect' zoneminder-1.36.35/src/zm_comms.h:494:8: note: Derived function 'UdpUnixServer::connect' zoneminder-1.36.35/src/zm_comms.h:524:8: warning: The class 'TcpInetClient' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:430:22: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:524:8: note: Derived function 'TcpInetClient::connect' zoneminder-1.36.35/src/zm_comms.h:528:8: warning: The class 'TcpInetClient' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:502:22: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:528:8: note: Derived function 'TcpInetClient::connect' zoneminder-1.36.35/src/zm_comms.h:535:8: warning: The class 'TcpUnixClient' defines member function with name 'connect' also defined in its parent class 'UnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:360:8: note: Parent function 'UnixSocket::connect' zoneminder-1.36.35/src/zm_comms.h:535:8: note: Derived function 'TcpUnixClient::connect' zoneminder-1.36.35/src/zm_comms.h:540:8: warning: The class 'TcpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.cpp:578:22: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:540:8: note: Derived function 'TcpInetServer::bind' zoneminder-1.36.35/src/zm_comms.h:550:8: warning: The class 'TcpUnixServer' defines member function with name 'bind' also defined in its parent class 'UnixSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:354:8: note: Parent function 'UnixSocket::bind' zoneminder-1.36.35/src/zm_comms.h:550:8: note: Derived function 'TcpUnixServer::bind' zoneminder-1.36.35/src/zm_comms.h:205:12: style: The destructor '~Socket' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] zoneminder-1.36.35/src/zm_comms.h:48:12: note: Virtual destructor in base class zoneminder-1.36.35/src/zm_comms.h:205:12: note: Destructor in derived class zoneminder-1.36.35/src/zm_comms.h:345:25: style: Return value 'addr->resolve(serv,proto)' is always true [knownConditionTrueFalse] zoneminder-1.36.35/src/zm_comms.h:345:25: note: Calling function 'resolve' returns 1 zoneminder-1.36.35/src/zm_comms.h:345:25: note: Return value 'addr->resolve(serv,proto)' is always true zoneminder-1.36.35/src/zm_comms.h:351:25: style: Return value 'addr->resolve(path,proto)' is always true [knownConditionTrueFalse] zoneminder-1.36.35/src/zm_comms.h:351:25: note: Calling function 'resolve' returns 1 zoneminder-1.36.35/src/zm_comms.h:351:25: note: Return value 'addr->resolve(path,proto)' is always true zoneminder-1.36.35/src/zm_comms.h:355:9: style: Condition '!UnixSocket::resolveLocal(path,getProtocol())' is always false [knownConditionTrueFalse] zoneminder-1.36.35/src/zm_comms.h:345:25: note: Calling function 'resolve' returns 1 zoneminder-1.36.35/src/zm_comms.h:355:34: note: Calling function 'resolveLocal' returns 1 zoneminder-1.36.35/src/zm_comms.h:355:9: note: Condition '!UnixSocket::resolveLocal(path,getProtocol())' is always false zoneminder-1.36.35/src/zm_comms.h:361:9: style: Condition '!UnixSocket::resolveRemote(path,getProtocol())' is always false [knownConditionTrueFalse] zoneminder-1.36.35/src/zm_comms.h:351:25: note: Calling function 'resolve' returns 1 zoneminder-1.36.35/src/zm_comms.h:361:35: note: Calling function 'resolveRemote' returns 1 zoneminder-1.36.35/src/zm_comms.h:361:9: note: Condition '!UnixSocket::resolveRemote(path,getProtocol())' is always false zoneminder-1.36.35/src/zm_comms.h:144:29: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.h:146:18: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.h:148:18: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.h:167:29: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.h:169:18: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.h:171:18: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.cpp:158:30: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.cpp:174:30: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.cpp:464:28: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.cpp:466:29: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.cpp:536:28: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.cpp:538:29: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_comms.cpp:117:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_comms.cpp:119:29: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_comms.cpp:132:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_comms.cpp:134:30: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_comms.cpp:374:46: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_comms.cpp:382:46: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_comms.cpp:402:49: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_comms.cpp:423:49: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_comms.cpp:150:12: style: Variable 'servent' can be declared as pointer to const [constVariablePointer] zoneminder-1.36.35/src/zm_comms.cpp:181:12: style: Variable 'servent' can be declared as pointer to const [constVariablePointer] zoneminder-1.36.35/src/zm_font.cpp:67:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cur [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_font.cpp:76:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable binary [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/crypt_blowfish.c:675:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/crypt_blowfish.c:840:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/crypt_blowfish.c:893:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_jpeg.cpp:32:24: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:41:24: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:55:24: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:98:23: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:133:23: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:154:23: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:185:10: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:216:21: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:261:21: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:297:21: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:348:11: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:352:11: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:359:9: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:435:32: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:436:32: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:437:32: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:438:32: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_jpeg.cpp:365:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_logger.cpp:71:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFO [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:127:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFO [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:236:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOLOG [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:279:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:299:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOOPT [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:322:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOOPT [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:331:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOOPT [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:347:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOOPT [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:359:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOOPT [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:388:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NOLOG [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:401:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:411:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_PID [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:509:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_logger.cpp:247:14: performance:inconclusive: Technically the member function 'Logger::boolEnv' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_logger.h:131:8: note: Technically the member function 'Logger::boolEnv' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:247:14: note: Technically the member function 'Logger::boolEnv' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:252:13: performance:inconclusive: Technically the member function 'Logger::intEnv' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_logger.h:132:7: note: Technically the member function 'Logger::intEnv' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:252:13: note: Technically the member function 'Logger::intEnv' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:257:21: performance:inconclusive: Technically the member function 'Logger::strEnv' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_logger.h:133:15: note: Technically the member function 'Logger::strEnv' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:257:21: note: Technically the member function 'Logger::strEnv' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:414:14: performance:inconclusive: Technically the member function 'Logger::closeSyslog' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_logger.h:173:8: note: Technically the member function 'Logger::closeSyslog' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:414:14: note: Technically the member function 'Logger::closeSyslog' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:407:14: performance:inconclusive: Technically the member function 'Logger::closeDatabase' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_logger.h:174:8: note: Technically the member function 'Logger::closeDatabase' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:407:14: note: Technically the member function 'Logger::closeDatabase' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_logger.cpp:488:20: style: Variable 'data' can be declared as pointer to const [constVariablePointer] zoneminder-1.36.35/src/zm_rtsp_auth.h:44:15: style:inconclusive: Technically the member function 'zm::Authenticator::realm' can be const. [functionConst] zoneminder-1.36.35/src/zm_rtsp_auth.h:45:15: style:inconclusive: Technically the member function 'zm::Authenticator::nonce' can be const. [functionConst] zoneminder-1.36.35/src/zm_rtsp_auth.h:46:15: style:inconclusive: Technically the member function 'zm::Authenticator::username' can be const. [functionConst] zoneminder-1.36.35/src/zm_rtsp_auth.cpp:131:28: performance:inconclusive: Technically the member function 'zm::Authenticator::computeDigestResponse' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_rtsp_auth.h:49:15: note: Technically the member function 'zm::Authenticator::computeDigestResponse' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_rtsp_auth.cpp:131:28: note: Technically the member function 'zm::Authenticator::computeDigestResponse' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_rtsp_auth.h:55:15: style:inconclusive: Technically the member function 'zm::Authenticator::password' can be const. [functionConst] zoneminder-1.36.35/src/zm_rtsp_auth.cpp:95:28: performance:inconclusive: Technically the member function 'zm::Authenticator::quote' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_rtsp_auth.h:63:15: note: Technically the member function 'zm::Authenticator::quote' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_rtsp_auth.cpp:95:28: note: Technically the member function 'zm::Authenticator::quote' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_rtsp_auth.h:44:15: performance: Function 'realm()' should return member 'fRealm' by const reference. [returnByReference] zoneminder-1.36.35/src/zm_rtsp_auth.h:45:15: performance: Function 'nonce()' should return member 'fNonce' by const reference. [returnByReference] zoneminder-1.36.35/src/zm_rtsp_auth.h:46:15: performance: Function 'username()' should return member 'fUsername' by const reference. [returnByReference] zoneminder-1.36.35/src/zm_rtsp_auth.h:55:15: performance: Function 'password()' should return member 'fPassword' by const reference. [returnByReference] zoneminder-1.36.35/src/zm_rtsp_auth.cpp:99:88: style:inconclusive: Function 'getAuthHeader' argument 2 names different: declaration 'path' definition 'uri'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_rtsp_auth.h:51:75: note: Function 'getAuthHeader' argument 2 names different: declaration 'path' definition 'uri'. zoneminder-1.36.35/src/zm_rtsp_auth.cpp:99:88: note: Function 'getAuthHeader' argument 2 names different: declaration 'path' definition 'uri'. zoneminder-1.36.35/src/zm_rtsp_auth.cpp:131:69: style:inconclusive: Function 'computeDigestResponse' argument 1 names different: declaration 'cmd' definition 'method'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_rtsp_auth.h:49:56: note: Function 'computeDigestResponse' argument 1 names different: declaration 'cmd' definition 'method'. zoneminder-1.36.35/src/zm_rtsp_auth.cpp:131:69: note: Function 'computeDigestResponse' argument 1 names different: declaration 'cmd' definition 'method'. zoneminder-1.36.35/src/zm_rtsp_auth.cpp:131:96: style:inconclusive: Function 'computeDigestResponse' argument 2 names different: declaration 'url' definition 'uri'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_rtsp_auth.h:49:80: note: Function 'computeDigestResponse' argument 2 names different: declaration 'url' definition 'uri'. zoneminder-1.36.35/src/zm_rtsp_auth.cpp:131:96: note: Function 'computeDigestResponse' argument 2 names different: declaration 'url' definition 'uri'. zoneminder-1.36.35/src/zm_rtsp_auth.cpp:58:50: performance: Function parameter 'headerData' should be passed by const reference. [passedByValue] zoneminder-1.36.35/src/zm_signal.cpp:128:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_signal.cpp:139:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_signal.cpp:167:18: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_signal.cpp:171:19: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_signal.cpp:178:19: style: C-style pointer casting [cstyleCast] zoneminder-1.36.35/src/zm_signal.cpp:126:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_signal.cpp:137:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_signal.cpp:155:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] zoneminder-1.36.35/src/zm_storage.h:52:16: performance: Function 'SchemeString()' should return member 'scheme_str' by const reference. [returnByReference] zoneminder-1.36.35/src/zm_utils.cpp:43:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_utils.cpp:52:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_utils.cpp:63:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_utils.cpp:82:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_utils.cpp:102:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_utils.cpp:307:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_utils.cpp:418:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_utils.cpp:446:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/src/zm_user.cpp:71:3: warning:inconclusive: The buffer 'username' may not be null-terminated after the call to strncpy(). [terminateStrncpy] zoneminder-1.36.35/src/zm_user.cpp:72:3: warning:inconclusive: The buffer 'password' may not be null-terminated after the call to strncpy(). [terminateStrncpy] zoneminder-1.36.35/src/zm_user.cpp:131:15: style: The scope of the variable 'remote_addr' can be reduced. [variableScope] zoneminder-1.36.35/src/zm_user.cpp:129:42: style:inconclusive: Function 'zmLoadTokenUser' argument 1 names different: declaration 'jwt' definition 'jwt_token_str'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_user.h:69:42: note: Function 'zmLoadTokenUser' argument 1 names different: declaration 'jwt' definition 'jwt_token_str'. zoneminder-1.36.35/src/zm_user.cpp:129:42: note: Function 'zmLoadTokenUser' argument 1 names different: declaration 'jwt' definition 'jwt_token_str'. zoneminder-1.36.35/src/zm_user.cpp:88:29: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] zoneminder-1.36.35/src/zm_user.cpp:131:27: style: Variable 'remote_addr' is assigned a value that is never used. [unreadVariable] zoneminder-1.36.35/src/zm_utils.cpp:166:36: style: Parameter 'start' can be declared as pointer to const [constParameterPointer] zoneminder-1.36.35/src/zm_utils.cpp:166:60: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] zoneminder-1.36.35/src/zm_utils.cpp:374:11: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] zoneminder-1.36.35/tests/zm_font.cpp:22:1: error: There is an unknown macro here somewhere. Configuration is required. If CATCH_REGISTER_ENUM is a macro then please configure it. [unknownMacro] zoneminder-1.36.35/tests/zm_comms.cpp:83:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rcv [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/tests/zm_comms.cpp:97:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/tests/zm_comms.cpp:113:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/tests/zm_comms.cpp:185:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rcv [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/tests/zm_comms.cpp:246:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rcv [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/tests/zm_comms.cpp:333:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rcv [valueFlowBailoutIncompleteVar] zoneminder-1.36.35/dep/libbcrypt/src/crypt_blowfish.c:392:17: style: Variable 'end' can be declared as pointer to const [constVariablePointer] zoneminder-1.36.35/dep/libbcrypt/src/crypt_blowfish.c:448:8: style: Variable 'is_little_endian' can be declared as pointer to const [constVariablePointer] zoneminder-1.36.35/dep/libbcrypt/src/crypt_blowfish.c:692:21: warning: Shifting 32-bit value by 39 bits is undefined behaviour. See condition at line 684. [shiftTooManyBits] zoneminder-1.36.35/dep/libbcrypt/src/crypt_blowfish.c:684:37: note: Assuming that condition 'setting[4]>'3'' is not redundant zoneminder-1.36.35/dep/libbcrypt/src/crypt_blowfish.c:692:21: note: Shift diff: 2.18.0 zoneminder-1.36.35/src/zm_analysis_thread.cpp:30:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_camera.cpp:104:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_camera.cpp:66:13: style: int result is assigned to long long variable. If the variable is long long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] 2.18.0 zoneminder-1.36.35/src/zm_camera.h:102:7: style:inconclusive: Technically the member function 'Camera::getFrequency' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_camera.h:109:7: style:inconclusive: Technically the member function 'Camera::getChannels' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_camera.h:137:18: style:inconclusive: Technically the member function 'Camera::getVideoStreamId' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_camera.h:138:18: style:inconclusive: Technically the member function 'Camera::getAudioStreamId' can be const. [functionConst] head zoneminder-1.36.35/src/zm_comms.h:207:12: warning: Class 'Socket' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] head zoneminder-1.36.35/src/zm_comms.h:207:12: warning: Class 'Socket' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] 2.18.0 zoneminder-1.36.35/src/zm_comms.h:401:8: warning: The class 'UdpInetSocket' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:328:8: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:401:8: note: Derived function 'UdpInetSocket::bind' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:405:8: warning: The class 'UdpInetSocket' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:329:8: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:405:8: note: Derived function 'UdpInetSocket::bind' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:409:8: warning: The class 'UdpInetSocket' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:330:8: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:409:8: note: Derived function 'UdpInetSocket::bind' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:413:8: warning: The class 'UdpInetSocket' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:331:8: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:413:8: note: Derived function 'UdpInetSocket::bind' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:417:8: warning: The class 'UdpInetSocket' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:325:8: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:417:8: note: Derived function 'UdpInetSocket::connect' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:421:8: warning: The class 'UdpInetSocket' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:326:8: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:421:8: note: Derived function 'UdpInetSocket::connect' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:439:8: warning: The class 'UdpInetClient' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:325:8: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:439:8: note: Derived function 'UdpInetClient::connect' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:443:8: warning: The class 'UdpInetClient' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:326:8: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:443:8: note: Derived function 'UdpInetClient::connect' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:461:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:328:8: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:461:8: note: Derived function 'UdpInetServer::bind' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:465:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:329:8: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:465:8: note: Derived function 'UdpInetServer::bind' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:469:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:330:8: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:469:8: note: Derived function 'UdpInetServer::bind' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:473:8: warning: The class 'UdpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:331:8: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:473:8: note: Derived function 'UdpInetServer::bind' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:478:8: warning: The class 'UdpInetServer' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:325:8: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:478:8: note: Derived function 'UdpInetServer::connect' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:482:8: warning: The class 'UdpInetServer' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:326:8: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:482:8: note: Derived function 'UdpInetServer::connect' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:524:8: warning: The class 'TcpInetClient' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:325:8: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:524:8: note: Derived function 'TcpInetClient::connect' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:528:8: warning: The class 'TcpInetClient' defines member function with name 'connect' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:326:8: note: Parent function 'InetSocket::connect' zoneminder-1.36.35/src/zm_comms.h:528:8: note: Derived function 'TcpInetClient::connect' 2.18.0 zoneminder-1.36.35/src/zm_comms.h:540:8: warning: The class 'TcpInetServer' defines member function with name 'bind' also defined in its parent class 'InetSocket'. [duplInheritedMember] zoneminder-1.36.35/src/zm_comms.h:331:8: note: Parent function 'InetSocket::bind' zoneminder-1.36.35/src/zm_comms.h:540:8: note: Derived function 'TcpInetServer::bind' head zoneminder-1.36.35/src/zm_config.cpp:334:14: warning: Class 'Config' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] head zoneminder-1.36.35/src/zm_config.cpp:334:14: warning: Class 'Config' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:165:3: style: Variable 'delta_time.prec' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:166:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIi64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:172:26: error: Exception thrown in function declared not to throw exceptions. [throwInNoexceptFunction] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:196:13: style:inconclusive: Technically the member function 'Event::createNotes' can be const. [functionConst] zoneminder-1.36.35/src/zm_event.h:103:10: note: Technically the member function 'Event::createNotes' can be const. zoneminder-1.36.35/src/zm_event.cpp:196:13: note: Technically the member function 'Event::createNotes' can be const. 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:211:12: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:238:56: style:inconclusive: Function 'WritePacket' argument 1 names different: declaration 'p' definition 'packet'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_event.h:138:54: note: Function 'WritePacket' argument 1 names different: declaration 'p' definition 'packet'. zoneminder-1.36.35/src/zm_event.cpp:238:56: note: Function 'WritePacket' argument 1 names different: declaration 'p' definition 'packet'. 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:244:45: style:inconclusive: Function 'updateNotes' argument 1 names different: declaration 'stringSetMap' definition 'newNoteSetMap'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_event.h:147:42: note: Function 'updateNotes' argument 1 names different: declaration 'stringSetMap' definition 'newNoteSetMap'. zoneminder-1.36.35/src/zm_event.cpp:244:45: note: Function 'updateNotes' argument 1 names different: declaration 'stringSetMap' definition 'newNoteSetMap'. 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:288:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:343:55: style:inconclusive: Function 'AddPacket_' argument 1 names different: declaration 'p' definition 'packet'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_event.h:137:53: note: Function 'AddPacket_' argument 1 names different: declaration 'p' definition 'packet'. zoneminder-1.36.35/src/zm_event.cpp:343:55: note: Function 'AddPacket_' argument 1 names different: declaration 'p' definition 'packet'. 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:345:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:377:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:506:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIi64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:550:30: style: Parameter 'storage' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:555:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:673:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:755:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_event.cpp:96:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIi64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_event.h:168:43: style: Parameter 'time' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_event.h:197:16: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_event.h:200:16: style: Parameter 'alarm_frame' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_event.h:212:10: performance:inconclusive: Technically the member function 'Event::SavePreAlarmFrames' can be static (but you may consider moving to unnamed namespace). [functionStatic] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:1016:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:1056:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:1096:19: style:inconclusive: Technically the member function 'EventStream::send_buffer' can be const. [functionConst] zoneminder-1.36.35/src/zm_eventstream.h:133:10: note: Technically the member function 'EventStream::send_buffer' can be const. zoneminder-1.36.35/src/zm_eventstream.cpp:1096:19: note: Technically the member function 'EventStream::send_buffer' can be const. 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:1096:40: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:1097:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:115:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:324:14: style: The statement 'if (paused) paused=false' is logically equivalent to 'paused=false'. [duplicateConditionalAssign] zoneminder-1.36.35/src/zm_eventstream.cpp:325:18: note: Assignment 'paused=false' zoneminder-1.36.35/src/zm_eventstream.cpp:324:14: note: Condition 'paused' is redundant 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:348:14: style: The statement 'if (paused) paused=false' is logically equivalent to 'paused=false'. [duplicateConditionalAssign] zoneminder-1.36.35/src/zm_eventstream.cpp:349:18: note: Assignment 'paused=false' zoneminder-1.36.35/src/zm_eventstream.cpp:348:14: note: Condition 'paused' is redundant 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:366:14: style: The statement 'if (paused) paused=false' is logically equivalent to 'paused=false'. [duplicateConditionalAssign] zoneminder-1.36.35/src/zm_eventstream.cpp:367:18: note: Assignment 'paused=false' zoneminder-1.36.35/src/zm_eventstream.cpp:366:14: note: Condition 'paused' is redundant 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:568:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:581:66: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:600:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:725:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STREAM_JPEG [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:741:20: style: Variable 'frame_data' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:742:18: style: Variable 'frame' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:808:24: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:81:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIi64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:835:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STREAM_JPEG [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:922:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.cpp:998:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_eventstream.h:108:6: style: The destructor '~EventStream' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] zoneminder-1.36.35/src/zm_stream.h:203:12: note: Virtual destructor in base class zoneminder-1.36.35/src/zm_eventstream.h:108:6: note: Destructor in derived class 2.18.0 zoneminder-1.36.35/src/zm_eventstream.h:98:5: warning: Member variable 'EventStream::start_usec' is not initialized in the constructor. [uninitMemberVar] 2.18.0 zoneminder-1.36.35/src/zm_ffmpeg.cpp:264:0: error: failed to expand 'Debug', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] 2.18.0 zoneminder-1.36.35/src/zm_ffmpeg.cpp:264:1: error: failed to expand 'Debug', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] head zoneminder-1.36.35/src/zm_ffmpeg.h:309:0: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] head zoneminder-1.36.35/src/zm_ffmpeg.h:309:2: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] 2.18.0 zoneminder-1.36.35/src/zm_ffmpeg_camera.h:92:6: style: The destructor '~FfmpegCamera' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] zoneminder-1.36.35/src/zm_camera.h:84:12: note: Virtual destructor in base class zoneminder-1.36.35/src/zm_ffmpeg_camera.h:92:6: note: Destructor in derived class 2.18.0 zoneminder-1.36.35/src/zm_ffmpeg_input.cpp:326:0: error: failed to expand 'Debug', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] 2.18.0 zoneminder-1.36.35/src/zm_ffmpeg_input.cpp:326:1: error: failed to expand 'Debug', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] 2.18.0 zoneminder-1.36.35/src/zm_ffmpeg_output.cpp:124:23: style: Variable 'context' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_ffmpeg_output.cpp:21:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_format_context [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_ffmpeg_output.cpp:7:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input_format_context [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_ffmpeg_output.cpp:95:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_ERROR_MAX_STRING_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:107:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:125:36: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:128:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:148:27: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:148:40: style:inconclusive: Function 'write' argument 2 names different: declaration 'size' definition 'bytes'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_fifo.h:67:38: note: Function 'write' argument 2 names different: declaration 'size' definition 'bytes'. zoneminder-1.36.35/src/zm_fifo.cpp:148:40: note: Function 'write' argument 2 names different: declaration 'size' definition 'bytes'. 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:151:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:167:30: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:167:49: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:167:62: style:inconclusive: Function 'write' argument 3 names different: declaration 'size' definition 'bytes'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_fifo.h:61:67: note: Function 'write' argument 3 names different: declaration 'size' definition 'bytes'. zoneminder-1.36.35/src/zm_fifo.cpp:167:62: note: Function 'write' argument 3 names different: declaration 'size' definition 'bytes'. 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:170:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:46:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo.cpp:68:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo_debug.cpp:37:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo_debug.cpp:55:28: style: Parameter 'monitor' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_fifo_debug.cpp:81:20: style: Variable 'data' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_fifo_stream.cpp:101:3: warning: Possible leak in public function. The pointer 'stream_path' is not deallocated before it is allocated. [publicAllocationError] 2.18.0 zoneminder-1.36.35/src/zm_fifo_stream.cpp:130:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo_stream.cpp:32:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo_stream.cpp:38:21: style: Condition 'bytes_read==0' is always false [knownConditionTrueFalse] 2.18.0 zoneminder-1.36.35/src/zm_fifo_stream.cpp:59:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_fifo_stream.h:31:18: warning: The class 'FifoStream' defines member variable with name 'frame_count' also defined in its parent class 'StreamBase'. [duplInheritedMember] zoneminder-1.36.35/src/zm_stream.h:131:7: note: Parent variable 'StreamBase::frame_count' zoneminder-1.36.35/src/zm_fifo_stream.h:31:18: note: Derived variable 'FifoStream::frame_count' 2.18.0 zoneminder-1.36.35/src/zm_file_camera.cpp:64:18: style:inconclusive: Technically the member function 'FileCamera::Initialise' can be const. [functionConst] zoneminder-1.36.35/src/zm_file_camera.h:51:8: note: Technically the member function 'FileCamera::Initialise' can be const. zoneminder-1.36.35/src/zm_file_camera.cpp:64:18: note: Technically the member function 'FileCamera::Initialise' can be const. 2.18.0 zoneminder-1.36.35/src/zm_file_camera.cpp:70:18: performance:inconclusive: Technically the member function 'FileCamera::Terminate' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_file_camera.h:52:8: note: Technically the member function 'FileCamera::Terminate' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_file_camera.cpp:70:18: note: Technically the member function 'FileCamera::Terminate' can be static (but you may consider moving to unnamed namespace). 2.18.0 zoneminder-1.36.35/src/zm_file_camera.cpp:76:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_file_camera.cpp:85:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_file_camera.cpp:90:52: style:inconclusive: Function 'Capture' argument 1 names different: declaration 'p' definition 'zm_packet'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_file_camera.h:54:42: note: Function 'Capture' argument 1 names different: declaration 'p' definition 'zm_packet'. zoneminder-1.36.35/src/zm_file_camera.cpp:90:52: note: Function 'Capture' argument 1 names different: declaration 'p' definition 'zm_packet'. 2.18.0 zoneminder-1.36.35/src/zm_file_camera.h:47:4: style: The destructor '~FileCamera' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] zoneminder-1.36.35/src/zm_camera.h:84:12: note: Virtual destructor in base class zoneminder-1.36.35/src/zm_file_camera.h:47:4: note: Destructor in derived class 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1137:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1241:41: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1279:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1403:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JCS_GRAYSCALE [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1516:20: style: Variable 'pbuf' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1565:12: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1565:34: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1565:58: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1566:31: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1566:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1567:33: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1567:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1568:32: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1568:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1578:32: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1579:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1580:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1585:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1585:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1585:62: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1594:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1594:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1594:62: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:159:109: style:inconclusive: Function 'Image' argument 6 names different: declaration 'padding' definition 'p_padding'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_image.h:141:108: note: Function 'Image' argument 6 names different: declaration 'padding' definition 'p_padding'. zoneminder-1.36.35/src/zm_image.cpp:159:109: note: Function 'Image' argument 6 names different: declaration 'padding' definition 'p_padding'. 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1610:31: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1610:55: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1610:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1623:12: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1623:34: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1623:58: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1624:31: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1624:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1625:33: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1625:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1626:32: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1626:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1638:32: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1639:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1646:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1646:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1646:59: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1655:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1655:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1655:59: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1668:32: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1669:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1670:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1675:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1675:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1675:62: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1684:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1684:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1684:62: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1718:24: style: Local variable 'y' shadows outer argument [shadowArgument] zoneminder-1.36.35/src/zm_image.cpp:1696:71: note: Shadowed declaration zoneminder-1.36.35/src/zm_image.cpp:1718:24: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1720:26: style: Local variable 'x' shadows outer argument [shadowArgument] zoneminder-1.36.35/src/zm_image.cpp:1696:55: note: Shadowed declaration zoneminder-1.36.35/src/zm_image.cpp:1720:26: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1726:24: style: Local variable 'y' shadows outer argument [shadowArgument] zoneminder-1.36.35/src/zm_image.cpp:1696:71: note: Shadowed declaration zoneminder-1.36.35/src/zm_image.cpp:1726:24: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1728:26: style: Local variable 'x' shadows outer argument [shadowArgument] zoneminder-1.36.35/src/zm_image.cpp:1696:55: note: Shadowed declaration zoneminder-1.36.35/src/zm_image.cpp:1728:26: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1735:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1736:24: style: Local variable 'y' shadows outer argument [shadowArgument] zoneminder-1.36.35/src/zm_image.cpp:1696:71: note: Shadowed declaration zoneminder-1.36.35/src/zm_image.cpp:1736:24: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1737:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1738:26: style: Local variable 'x' shadows outer argument [shadowArgument] zoneminder-1.36.35/src/zm_image.cpp:1696:55: note: Shadowed declaration zoneminder-1.36.35/src/zm_image.cpp:1738:26: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1807:16: style: Variable 'psrc' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1809:11: style: Variable 'psrc' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1812:10: style: Variable 'pdest' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1835:14: style: Variable 'psrc' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1875:14: style: Variable 'psrc' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1878:13: style: Variable 'pdest' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:190:125: style:inconclusive: Function 'Image' argument 7 names different: declaration 'padding' definition 'p_padding'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_image.h:142:124: note: Function 'Image' argument 7 names different: declaration 'padding' definition 'p_padding'. zoneminder-1.36.35/src/zm_image.cpp:190:125: note: Function 'Image' argument 7 names different: declaration 'padding' definition 'p_padding'. 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:1999:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2000:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2001:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2007:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2041:21: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2087:15: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2088:15: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2089:15: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2096:13: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2097:13: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2098:13: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2170:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2196:68: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2206:29: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2206:53: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2206:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:226:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2327:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2328:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2329:9: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2334:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2374:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2375:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2376:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2382:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2402:43: debug: CheckClass::isMemberVar found used member variable 'size' with varid 0 [varid0] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2434:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2435:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2436:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2440:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2463:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2464:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2465:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2469:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2485:43: debug: CheckClass::isMemberVar found used member variable 'size' with varid 0 [varid0] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:249:29: style: Parameter 'opaque' can be declared as pointer to const. However it seems that 'dont_free' is a callback function, if 'opaque' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zoneminder-1.36.35/src/zm_image.cpp:258:7: note: You might need to cast the function pointer here zoneminder-1.36.35/src/zm_image.cpp:249:29: note: Parameter 'opaque' can be declared as pointer to const 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:249:46: style: Parameter 'data' can be declared as pointer to const. However it seems that 'dont_free' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zoneminder-1.36.35/src/zm_image.cpp:258:7: note: You might need to cast the function pointer here zoneminder-1.36.35/src/zm_image.cpp:249:46: note: Parameter 'data' can be declared as pointer to const 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2562:15: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2563:15: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2564:15: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2612:16: style: Variable 's_rptr' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2612:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2614:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2644:16: style: Variable 's_rptr' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2644:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2645:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2646:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2678:16: style: Variable 's_rptr' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2678:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2680:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2710:16: style: The scope of the variable 'line_bytes2' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2726:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2727:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2728:12: style: Variable 'max_d_rptr' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2728:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2762:38: style:inconclusive: Function 'Scale' argument 1 names different: declaration 'x' definition 'new_width'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_image.h:287:29: note: Function 'Scale' argument 1 names different: declaration 'x' definition 'new_width'. zoneminder-1.36.35/src/zm_image.cpp:2762:38: note: Function 'Scale' argument 1 names different: declaration 'x' definition 'new_width'. 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2762:68: style:inconclusive: Function 'Scale' argument 2 names different: declaration 'y' definition 'new_height'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_image.h:287:45: note: Function 'Scale' argument 2 names different: declaration 'y' definition 'new_height'. zoneminder-1.36.35/src/zm_image.cpp:2762:68: note: Function 'Scale' argument 2 names different: declaration 'y' definition 'new_height'. 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:279:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2807:18: style: The scope of the variable 'h_index' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2811:20: style: The scope of the variable 'w_index' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2837:18: style: Same expression used in consecutive assignments of 'xstart' and 'ystart'. [duplicateAssignExpression] zoneminder-1.36.35/src/zm_image.cpp:2838:18: note: Same expression used in consecutive assignments of 'xstart' and 'ystart'. zoneminder-1.36.35/src/zm_image.cpp:2837:18: note: Same expression used in consecutive assignments of 'xstart' and 'ystart'. 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2842:18: style: The scope of the variable 'h_index' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2848:22: style: The scope of the variable 'w_index' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:286:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2878:20: style: The scope of the variable 'psrc' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2879:14: style: The scope of the variable 'pdest' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2888:20: style: The scope of the variable 'psrc' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2889:14: style: The scope of the variable 'pdest' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2900:16: style: The scope of the variable 'psrc' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2901:10: style: The scope of the variable 'pdest' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2903:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:2904:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:315:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3499:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3499:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3499:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3528:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3528:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3528:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3546:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3546:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3546:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3575:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3575:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3575:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3593:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3593:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3593:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3622:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3622:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3622:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3640:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3640:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3640:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3668:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3668:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3668:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3686:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3686:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3686:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3715:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3715:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3715:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3733:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3733:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3733:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3760:11: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3760:7: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:3760:9: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4343:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4343:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4343:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4369:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4369:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4369:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4385:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4385:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4385:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4411:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4411:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4411:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4427:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4427:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4427:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4453:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4453:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4453:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4469:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4469:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4469:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4496:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4496:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4496:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4511:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4511:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4511:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4537:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4537:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4537:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4553:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4553:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4553:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4579:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4579:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4579:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4595:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4621:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4773:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4773:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4773:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4774:16: style: The scope of the variable 'y1' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4774:19: style: The scope of the variable 'y2' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4774:22: style: The scope of the variable 'u' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4774:24: style: The scope of the variable 'v' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4802:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4802:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4802:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4815:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4815:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4815:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4828:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4828:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4828:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4841:16: style: The scope of the variable 'r' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4841:18: style: The scope of the variable 'g' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:4841:20: style: The scope of the variable 'b' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:873:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:874:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:875:11: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:882:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:907:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:938:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.cpp:967:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.h:164:26: style:inconclusive: Technically the member function 'Image::AVPixFormat' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_image.h:166:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_PIX_FMT_RGBA [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image.h:223:19: warning: Member variable 'Image::holdbuffer' is not assigned a value in 'Image::operator='. [operatorEqVarError] 2.18.0 zoneminder-1.36.35/src/zm_image.h:223:19: warning: Member variable 'Image::padding' is not assigned a value in 'Image::operator='. [operatorEqVarError] 2.18.0 zoneminder-1.36.35/src/zm_image.h:223:19: warning:inconclusive: Member variable 'Image::annotation_' is not assigned a value in 'Image::operator='. [operatorEqVarError] 2.18.0 zoneminder-1.36.35/src/zm_image.h:223:19: warning:inconclusive: Member variable 'Image::imagePixFormat' is not assigned a value in 'Image::operator='. [operatorEqVarError] 2.18.0 zoneminder-1.36.35/src/zm_image.h:300:3: warning: Member variable 'Edge::_1_m' is not initialized in the constructor. [uninitMemberVar] 2.18.0 zoneminder-1.36.35/src/zm_image.h:300:3: warning: Member variable 'Edge::max_y' is not initialized in the constructor. [uninitMemberVar] 2.18.0 zoneminder-1.36.35/src/zm_image.h:300:3: warning: Member variable 'Edge::min_x' is not initialized in the constructor. [uninitMemberVar] 2.18.0 zoneminder-1.36.35/src/zm_image.h:300:3: warning: Member variable 'Edge::min_y' is not initialized in the constructor. [uninitMemberVar] 2.18.0 zoneminder-1.36.35/src/zm_image.h:53:20: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_image.h:55:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image_analyser.cpp:10:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_Detectors [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_image_analyser.cpp:20:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_Detectors [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_mem_utils.h:34:12: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_mem_utils.h:34:3: warning: Size of pointer 'retptr' used instead of size of its data. [pointerSize] 2.18.0 zoneminder-1.36.35/src/zm_mem_utils.h:45:4: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_mem_utils.h:56:18: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1000:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1000:42: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1001:37: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1082:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1129:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable QUERY [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1193:10: style: Variable 'image' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1259:21: style:inconclusive: Technically the member function 'Monitor::GetAnalysisRate' can be const. [functionConst] zoneminder-1.36.35/src/zm_monitor.h:542:14: note: Technically the member function 'Monitor::GetAnalysisRate' can be const. zoneminder-1.36.35/src/zm_monitor.cpp:1259:21: note: Technically the member function 'Monitor::GetAnalysisRate' can be const. 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1291:58: style:inconclusive: Function 'ForceAlarmOn' argument 2 names different: declaration 'force_case' definition 'force_cause'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_monitor.h:552:51: note: Function 'ForceAlarmOn' argument 2 names different: declaration 'force_case' definition 'force_cause'. zoneminder-1.36.35/src/zm_monitor.cpp:1291:58: note: Function 'ForceAlarmOn' argument 2 names different: declaration 'force_case' definition 'force_cause'. 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1342:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1353:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1373:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1384:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1404:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1415:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1435:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1446:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1473:15: style: Variable 'snap' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1483:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1509:9: style: Local variable 'colour' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_monitor.h:305:14: note: Shadowed declaration zoneminder-1.36.35/src/zm_monitor.cpp:1509:9: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1540:32: style: Parameter 'dump_image' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1557:7: style: Local variable 'width' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_monitor.h:279:19: note: Shadowed declaration zoneminder-1.36.35/src/zm_monitor.cpp:1557:7: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1558:7: style: Local variable 'colours' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_monitor.h:292:19: note: Shadowed declaration zoneminder-1.36.35/src/zm_monitor.cpp:1558:7: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1564:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1585:14: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1585:48: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1585:86: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1589:14: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1589:48: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1589:86: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1595:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1599:13: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:1771:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:204:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:208:15: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:216:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:217:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:217:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:2192:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:2304:80: style:inconclusive: Function 'LoadMonitors' argument 1 names different: declaration 'sql' definition 'where'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_monitor.h:605:80: note: Function 'LoadMonitors' argument 1 names different: declaration 'sql' definition 'where'. zoneminder-1.36.35/src/zm_monitor.cpp:2304:80: note: Function 'LoadMonitors' argument 1 names different: declaration 'sql' definition 'where'. 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:2406:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_sec [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:2493:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:249:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPC_STAT [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:2513:25: style: Local variable 'imagePixFormat' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_monitor.h:298:19: note: Shadowed declaration zoneminder-1.36.35/src/zm_monitor.cpp:2513:25: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:2695:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:274:28: style:inconclusive: Technically the member function 'Monitor::MonitorLink::isAlarmed' can be const. [functionConst] zoneminder-1.36.35/src/zm_monitor.h:246:12: note: Technically the member function 'Monitor::MonitorLink::isAlarmed' can be const. zoneminder-1.36.35/src/zm_monitor.cpp:274:28: note: Technically the member function 'Monitor::MonitorLink::isAlarmed' can be const. 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:281:28: style:inconclusive: Technically the member function 'Monitor::MonitorLink::inAlarm' can be const. [functionConst] zoneminder-1.36.35/src/zm_monitor.h:247:12: note: Technically the member function 'Monitor::MonitorLink::inAlarm' can be const. zoneminder-1.36.35/src/zm_monitor.cpp:281:28: note: Technically the member function 'Monitor::MonitorLink::inAlarm' can be const. 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:2882:19: style: Variable 'cam' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:2888:17: style: Variable 'cam' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:2925:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NONE [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:3052:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:3077:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:3136:17: style: Variable 'g' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:436:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOSE_IDLE [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:476:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCAL [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:643:23: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:899:53: style:inconclusive: Function 'Load' argument 1 names different: declaration 'id' definition 'p_id'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_monitor.h:614:53: note: Function 'Load' argument 1 names different: declaration 'id' definition 'p_id'. zoneminder-1.36.35/src/zm_monitor.cpp:899:53: note: Function 'Load' argument 1 names different: declaration 'id' definition 'p_id'. 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:987:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPC_CREAT [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:991:13: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:997:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:998:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:998:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:999:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.cpp:999:41: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitor.h:239:23: style:inconclusive: Technically the member function 'Monitor::MonitorLink::lastFrameScore' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_monitor.h:443:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIi64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitor.h:457:23: style:inconclusive: Technically the member function 'Monitor::ServerId' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_monitor.h:494:15: style:inconclusive: Technically the member function 'Monitor::RecordAudio' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_monitor.h:533:21: performance: Function 'GetSecondPath()' should return member 'second_path' by const reference. [returnByReference] 2.18.0 zoneminder-1.36.35/src/zm_monitor.h:536:21: performance: Function 'GetRTSPStreamName()' should return member 'rtsp_streamname' by const reference. [returnByReference] 2.18.0 zoneminder-1.36.35/src/zm_monitor.h:629:7: style:inconclusive: Technically the member function 'Monitor::Importance' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:275:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_DATA_WATCH [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:278:76: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:292:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STREAM_JPEG [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:351:10: style: Variable 'send_image' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:353:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:35:21: performance:inconclusive: Technically the member function 'MonitorStream::checkSwapPath' can be static (but you may consider moving to unnamed namespace). [functionStatic] zoneminder-1.36.35/src/zm_monitorstream.h:46:10: note: Technically the member function 'MonitorStream::checkSwapPath' can be static (but you may consider moving to unnamed namespace). zoneminder-1.36.35/src/zm_monitorstream.cpp:35:21: note: Technically the member function 'MonitorStream::checkSwapPath' can be static (but you may consider moving to unnamed namespace). 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:386:22: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:38:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:432:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STREAM_SINGLE [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:553:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:579:22: style: Variable 'swap_image' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:610:22: style: Variable 'swap_image' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:766:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:822:21: style:inconclusive: Technically the member function 'MonitorStream::SingleImage' can be const. [functionConst] zoneminder-1.36.35/src/zm_monitorstream.h:50:10: note: Technically the member function 'MonitorStream::SingleImage' can be const. zoneminder-1.36.35/src/zm_monitorstream.cpp:822:21: note: Technically the member function 'MonitorStream::SingleImage' can be const. 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:828:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:846:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:853:21: style:inconclusive: Technically the member function 'MonitorStream::SingleImageRaw' can be const. [functionConst] zoneminder-1.36.35/src/zm_monitorstream.h:51:10: note: Technically the member function 'MonitorStream::SingleImageRaw' can be const. zoneminder-1.36.35/src/zm_monitorstream.cpp:853:21: note: Technically the member function 'MonitorStream::SingleImageRaw' can be const. 2.18.0 zoneminder-1.36.35/src/zm_monitorstream.cpp:867:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:121:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:243:41: style: Checking if unsigned expression 'zm_av_packet_ref(packet.get(),p)' is less than zero. [unsignedLessThanZero] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:248:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_PKT_FLAG_KEY [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:286:14: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:288:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:45:3: performance: Variable 'packet' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:48:27: style:inconclusive: Function 'ZMPacket' argument 1 names different: declaration 'image' definition 'i'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_packet.h:74:30: note: Function 'ZMPacket' argument 1 names different: declaration 'image' definition 'i'. zoneminder-1.36.35/src/zm_packet.cpp:48:27: note: Function 'ZMPacket' argument 1 names different: declaration 'image' definition 'i'. 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:64:3: performance: Variable 'packet' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:67:11: warning:inconclusive: Member variable 'ZMPacket::condition_' is not assigned in the copy constructor. Should it be copied? [missingMemberCopy] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:67:11: warning:inconclusive: Member variable 'ZMPacket::mutex_' is not assigned in the copy constructor. Should it be copied? [missingMemberCopy] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:67:11: warning:inconclusive: Member variable 'ZMPacket::zone_stats' is not assigned in the copy constructor. Should it be copied? [missingMemberCopy] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:67:30: style:inconclusive: Function 'ZMPacket' argument 1 names different: declaration 'packet' definition 'p'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_packet.h:75:33: note: Function 'ZMPacket' argument 1 names different: declaration 'packet' definition 'p'. zoneminder-1.36.35/src/zm_packet.cpp:67:30: note: Function 'ZMPacket' argument 1 names different: declaration 'packet' definition 'p'. 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:83:3: performance: Variable 'packet' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] 2.18.0 zoneminder-1.36.35/src/zm_packet.cpp:85:54: style: Checking if unsigned expression 'zm_av_packet_ref(packet.get(),p.packet.get())' is less than zero. [unsignedLessThanZero] 2.18.0 zoneminder-1.36.35/src/zm_packet.h:72:9: style:inconclusive: Technically the member function 'ZMPacket::is_keyframe' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_packet.h:81:9: style:inconclusive: Technically the member function 'ZMPacket::get_codec_imgsize' can be const. [functionConst] 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:114:11: style: Local variable 'packet_count' shadows outer function [shadowFunction] zoneminder-1.36.35/src/zm_packetqueue.h:75:9: note: Shadowed declaration zoneminder-1.36.35/src/zm_packetqueue.cpp:114:11: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:134:29: error: Iterators of different containers 'iterators' and 'pktQueue' are used together. [mismatchingContainers] 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:220:65: style:inconclusive: Function 'clearPackets' argument 1 names different: declaration 'packet' definition 'add_packet'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_packetqueue.h:74:56: note: Function 'clearPackets' argument 1 names different: declaration 'packet' definition 'add_packet'. zoneminder-1.36.35/src/zm_packetqueue.cpp:220:65: note: Function 'clearPackets' argument 1 names different: declaration 'packet' definition 'add_packet'. 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:28:14: warning: Member variable 'PacketQueue::analysis_it' is not initialized in the constructor. [uninitMemberVar] 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:439:27: style:inconclusive: Technically the member function 'PacketQueue::size' can be const. [functionConst] zoneminder-1.36.35/src/zm_packetqueue.h:69:18: note: Technically the member function 'PacketQueue::size' can be const. zoneminder-1.36.35/src/zm_packetqueue.cpp:439:27: note: Technically the member function 'PacketQueue::size' can be const. 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:443:18: style:inconclusive: Technically the member function 'PacketQueue::packet_count' can be const. [functionConst] zoneminder-1.36.35/src/zm_packetqueue.h:75:9: note: Technically the member function 'PacketQueue::packet_count' can be const. zoneminder-1.36.35/src/zm_packetqueue.cpp:443:18: note: Technically the member function 'PacketQueue::packet_count' can be const. 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:600:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stream_index [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:669:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:715:49: style: Parameter 'it' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:722:32: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:731:66: error: Iterators of different containers 'iterators' and 'pktQueue' are used together. [mismatchingContainers] 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:80:57: style:inconclusive: Function 'queuePacket' argument 1 names different: declaration 'packet' definition 'add_packet'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_packetqueue.h:64:48: note: Function 'queuePacket' argument 1 names different: declaration 'packet' definition 'add_packet'. zoneminder-1.36.35/src/zm_packetqueue.cpp:80:57: note: Function 'queuePacket' argument 1 names different: declaration 'packet' definition 'add_packet'. 2.18.0 zoneminder-1.36.35/src/zm_packetqueue.cpp:93:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_NOPTS_VALUE [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera.cpp:106:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera.cpp:29:22: style:inconclusive: Function 'RemoteCamera' argument 2 names different: declaration 'p_proto' definition 'p_protocol'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera.h:56:24: note: Function 'RemoteCamera' argument 2 names different: declaration 'p_proto' definition 'p_protocol'. zoneminder-1.36.35/src/zm_remote_camera.cpp:29:22: note: Function 'RemoteCamera' argument 2 names different: declaration 'p_proto' definition 'p_protocol'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera.cpp:83:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera.h:70:12: style: The destructor '~RemoteCamera' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] zoneminder-1.36.35/src/zm_camera.h:84:12: note: Virtual destructor in base class zoneminder-1.36.35/src/zm_remote_camera.h:70:12: note: Destructor in derived class 2.18.0 zoneminder-1.36.35/src/zm_remote_camera.h:85:15: style: The function 'PrimeCapture' overrides a function in a base class but is identical to the overridden function [uselessOverride] zoneminder-1.36.35/src/zm_camera.h:140:15: note: Virtual function in base class zoneminder-1.36.35/src/zm_remote_camera.h:85:15: note: Function in derived class 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:1009:27: style: Variable 'end_ptr' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:1009:37: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:1017:37: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:105:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZM_VERSION [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:1080:58: style:inconclusive: Function 'Capture' argument 1 names different: declaration 'p' definition 'packet'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera_http.h:72:42: note: Function 'Capture' argument 1 names different: declaration 'p' definition 'packet'. zoneminder-1.36.35/src/zm_remote_camera_http.cpp:1080:58: note: Function 'Capture' argument 1 names different: declaration 'p' definition 'packet'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:1097:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:158:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:166:27: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:167:14: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:197:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:222:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIi64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:314:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZM_WATCH_MAX_DELAY [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:317:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:49:22: style:inconclusive: Function 'RemoteCameraHttp' argument 2 names different: declaration 'method' definition 'p_method'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera_http.h:46:26: note: Function 'RemoteCameraHttp' argument 2 names different: declaration 'method' definition 'p_method'. zoneminder-1.36.35/src/zm_remote_camera_http.cpp:49:22: note: Function 'RemoteCameraHttp' argument 2 names different: declaration 'method' definition 'p_method'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:50:22: style:inconclusive: Function 'RemoteCameraHttp' argument 3 names different: declaration 'host' definition 'p_host'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera_http.h:47:26: note: Function 'RemoteCameraHttp' argument 3 names different: declaration 'host' definition 'p_host'. zoneminder-1.36.35/src/zm_remote_camera_http.cpp:50:22: note: Function 'RemoteCameraHttp' argument 3 names different: declaration 'host' definition 'p_host'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:51:22: style:inconclusive: Function 'RemoteCameraHttp' argument 4 names different: declaration 'port' definition 'p_port'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera_http.h:48:26: note: Function 'RemoteCameraHttp' argument 4 names different: declaration 'port' definition 'p_port'. zoneminder-1.36.35/src/zm_remote_camera_http.cpp:51:22: note: Function 'RemoteCameraHttp' argument 4 names different: declaration 'port' definition 'p_port'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:52:22: style:inconclusive: Function 'RemoteCameraHttp' argument 5 names different: declaration 'path' definition 'p_path'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera_http.h:49:26: note: Function 'RemoteCameraHttp' argument 5 names different: declaration 'path' definition 'p_path'. zoneminder-1.36.35/src/zm_remote_camera_http.cpp:52:22: note: Function 'RemoteCameraHttp' argument 5 names different: declaration 'path' definition 'p_path'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:655:30: style: Variable 'header_len' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:655:59: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:666:59: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:694:57: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:745:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZM_VERSION [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:749:46: performance: Passing the result of c_str() to a function that takes std::string as argument no. 2 is slow and redundant. [stlcstrParam] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:848:35: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:861:33: style: Variable 'subheader_len' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:861:65: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:872:65: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:909:64: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:917:21: style: Variable 'start_ptr' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:998:31: style: Variable 'start_ptr' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:998:43: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:998:59: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.cpp:999:52: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.h:60:4: style: The destructor '~RemoteCameraHttp' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] zoneminder-1.36.35/src/zm_remote_camera.h:70:12: note: Virtual destructor in base class zoneminder-1.36.35/src/zm_remote_camera_http.h:60:4: note: Destructor in derived class 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.h:62:8: style: Virtual function 'Initialise' is called from constructor 'RemoteCameraHttp(const Monitor*monitor,const std::string&method,const std::string&host,const std::string&port,const std::string&path,int p_width,int p_height,int p_colours,int p_brightness,int p_contrast,int p_hue,int p_colour,bool p_capture,bool p_record_audio)' at line 89. Dynamic binding is not used. [virtualCallInConstructor] zoneminder-1.36.35/src/zm_remote_camera_http.cpp:89:5: note: Calling Initialise zoneminder-1.36.35/src/zm_remote_camera_http.h:62:8: note: Initialise is a virtual function 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_http.h:63:8: style: Virtual function 'Terminate' is called from destructor '~RemoteCameraHttp()' at line 96. Dynamic binding is not used. [virtualCallInConstructor] zoneminder-1.36.35/src/zm_remote_camera_http.cpp:96:5: note: Calling Terminate zoneminder-1.36.35/src/zm_remote_camera_http.h:63:8: note: Terminate is a virtual function 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:101:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:102:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:116:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:140:52: performance: Function parameter 'request' should be passed by const reference. [passedByValue] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:143:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:172:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:187:62: style:inconclusive: Function 'Capture' argument 1 names different: declaration 'p' definition 'zm_packet'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:57:42: note: Function 'Capture' argument 1 names different: declaration 'p' definition 'zm_packet'. zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:187:62: note: Function 'Capture' argument 1 names different: declaration 'p' definition 'zm_packet'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:198:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:38:22: style:inconclusive: Function 'RemoteCameraNVSocket' argument 2 names different: declaration 'host' definition 'p_host'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:36:26: note: Function 'RemoteCameraNVSocket' argument 2 names different: declaration 'host' definition 'p_host'. zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:38:22: note: Function 'RemoteCameraNVSocket' argument 2 names different: declaration 'host' definition 'p_host'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:39:22: style:inconclusive: Function 'RemoteCameraNVSocket' argument 3 names different: declaration 'port' definition 'p_port'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:37:26: note: Function 'RemoteCameraNVSocket' argument 3 names different: declaration 'port' definition 'p_port'. zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:39:22: note: Function 'RemoteCameraNVSocket' argument 3 names different: declaration 'port' definition 'p_port'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:40:22: style:inconclusive: Function 'RemoteCameraNVSocket' argument 4 names different: declaration 'path' definition 'p_path'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:38:26: note: Function 'RemoteCameraNVSocket' argument 4 names different: declaration 'path' definition 'p_path'. zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:40:22: note: Function 'RemoteCameraNVSocket' argument 4 names different: declaration 'path' definition 'p_path'. 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:48:4: style: The destructor '~RemoteCameraNVSocket' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] zoneminder-1.36.35/src/zm_remote_camera.h:70:12: note: Virtual destructor in base class zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:48:4: note: Destructor in derived class 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:50:8: style: Virtual function 'Initialise' is called from constructor 'RemoteCameraNVSocket(const Monitor*monitor,const std::string&host,const std::string&port,const std::string&path,int p_width,int p_height,int p_colours,int p_brightness,int p_contrast,int p_hue,int p_colour,bool p_capture,bool p_record_audio)' at line 74. Dynamic binding is not used. [virtualCallInConstructor] zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:74:5: note: Calling Initialise zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:50:8: note: Initialise is a virtual function 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:51:8: style: Virtual function 'Terminate' is called from destructor '~RemoteCameraNVSocket()' at line 80. Dynamic binding is not used. [virtualCallInConstructor] zoneminder-1.36.35/src/zm_remote_camera_nvsocket.cpp:80:5: note: Calling Terminate zoneminder-1.36.35/src/zm_remote_camera_nvsocket.h:51:8: note: Terminate is a virtual function 2.18.0 zoneminder-1.36.35/src/zm_remote_camera_rtsp.h:73:4: style: The destructor '~RemoteCameraRtsp' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] zoneminder-1.36.35/src/zm_remote_camera.h:70:12: note: Virtual destructor in base class zoneminder-1.36.35/src/zm_remote_camera_rtsp.h:73:4: note: Destructor in derived class 2.18.0 zoneminder-1.36.35/src/zm_rgb.h:126:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_rgb.h:127:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_rgb.h:128:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_rgb.h:131:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_rgb.h:132:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_rgb.h:133:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_rgb.h:136:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_rgb.h:137:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_rgb.h:138:7: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_rtsp_server.cpp:102:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_rtsp_server.cpp:69:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_sdp.h:160:17: performance: Function 'getSprops()' should return member 'mSprops' by const reference. [returnByReference] 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:116:12: style: Local variable 'msg' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_stream.h:143:10: note: Shadowed declaration zoneminder-1.36.35/src/zm_stream.cpp:116:12: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:118:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_DONTWAIT [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:227:20: style: Variable 'image_copied' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:236:18: style: Variable 'image_copied' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:249:44: style:inconclusive: Function 'sendTextFrame' argument 1 names different: declaration 'text' definition 'frame_text'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_stream.h:236:34: note: Function 'sendTextFrame' argument 1 names different: declaration 'text' definition 'frame_text'. zoneminder-1.36.35/src/zm_stream.cpp:249:44: note: Function 'sendTextFrame' argument 1 names different: declaration 'text' definition 'frame_text'. 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:290:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:316:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:384:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:42:34: style:inconclusive: Function 'loadMonitor' argument 1 names different: declaration 'monitor_id' definition 'p_monitor_id'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_stream.h:149:24: note: Function 'loadMonitor' argument 1 names different: declaration 'monitor_id' definition 'p_monitor_id'. zoneminder-1.36.35/src/zm_stream.cpp:42:34: note: Function 'loadMonitor' argument 1 names different: declaration 'monitor_id' definition 'p_monitor_id'. 2.18.0 zoneminder-1.36.35/src/zm_stream.cpp:71:18: style:inconclusive: Technically the member function 'StreamBase::checkInitialised' can be const. [functionConst] zoneminder-1.36.35/src/zm_stream.h:150:8: note: Technically the member function 'StreamBase::checkInitialised' can be const. zoneminder-1.36.35/src/zm_stream.cpp:71:18: note: Technically the member function 'StreamBase::checkInitialised' can be const. 2.18.0 zoneminder-1.36.35/src/zm_stream.h:238:16: style: Virtual function 'closeComms' is called from destructor '~StreamBase()' at line 39. Dynamic binding is not used. [virtualCallInConstructor] zoneminder-1.36.35/src/zm_stream.cpp:39:3: note: Calling closeComms zoneminder-1.36.35/src/zm_stream.h:238:16: note: closeComms is a virtual function 2.18.0 zoneminder-1.36.35/src/zm_videostore.cpp:1319:0: error: failed to expand 'Debug', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] 2.18.0 zoneminder-1.36.35/src/zm_videostore.cpp:1319:1: error: failed to expand 'Debug', it is invalid to use a preprocessor directive as macro parameter [preprocessorErrorDirective] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:121:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:161:11: style:inconclusive: Technically the member function 'Zone::GetOverloadCount' can be const. [functionConst] zoneminder-1.36.35/src/zm_zone.h:220:9: note: Technically the member function 'Zone::GetOverloadCount' can be const. zoneminder-1.36.35/src/zm_zone.cpp:161:11: note: Technically the member function 'Zone::GetOverloadCount' can be const. 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:169:11: style:inconclusive: Technically the member function 'Zone::GetOverloadFrames' can be const. [functionConst] zoneminder-1.36.35/src/zm_zone.h:222:9: note: Technically the member function 'Zone::GetOverloadFrames' can be const. zoneminder-1.36.35/src/zm_zone.cpp:169:11: note: Technically the member function 'Zone::GetOverloadFrames' can be const. 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:173:11: style:inconclusive: Technically the member function 'Zone::GetExtendAlarmCount' can be const. [functionConst] zoneminder-1.36.35/src/zm_zone.h:225:9: note: Technically the member function 'Zone::GetExtendAlarmCount' can be const. zoneminder-1.36.35/src/zm_zone.cpp:173:11: note: Technically the member function 'Zone::GetExtendAlarmCount' can be const. 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:177:36: style:inconclusive: Function 'SetExtendAlarmCount' argument 1 names different: declaration 'nOverCount' definition 'nExtendAlarmCount'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_zone.h:226:34: note: Function 'SetExtendAlarmCount' argument 1 names different: declaration 'nOverCount' definition 'nExtendAlarmCount'. zoneminder-1.36.35/src/zm_zone.cpp:177:36: note: Function 'SetExtendAlarmCount' argument 1 names different: declaration 'nOverCount' definition 'nExtendAlarmCount'. 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:181:11: style:inconclusive: Technically the member function 'Zone::GetExtendAlarmFrames' can be const. [functionConst] zoneminder-1.36.35/src/zm_zone.h:227:9: note: Technically the member function 'Zone::GetExtendAlarmFrames' can be const. zoneminder-1.36.35/src/zm_zone.cpp:181:11: note: Technically the member function 'Zone::GetExtendAlarmFrames' can be const. 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:209:24: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:272:9: style: The scope of the variable 'bx1' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:273:9: style: The scope of the variable 'by1' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:278:22: style: Variable 'cpdiff' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:282:13: style: Local variable 'lo_x' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_zone.cpp:222:16: note: Shadowed declaration zoneminder-1.36.35/src/zm_zone.cpp:282:13: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:283:13: style: Local variable 'hi_x' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_zone.cpp:224:16: note: Shadowed declaration zoneminder-1.36.35/src/zm_zone.cpp:283:13: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:285:17: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:364:13: style: Local variable 'lo_x' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_zone.cpp:222:16: note: Shadowed declaration zoneminder-1.36.35/src/zm_zone.cpp:364:13: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:365:13: style: Local variable 'hi_x' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_zone.cpp:224:16: note: Shadowed declaration zoneminder-1.36.35/src/zm_zone.cpp:365:13: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:367:17: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:476:28: style: Local variable 'bsy' shadows outer variable [shadowVariable] zoneminder-1.36.35/src/zm_zone.cpp:361:24: note: Shadowed declaration zoneminder-1.36.35/src/zm_zone.cpp:476:28: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:639:20: style: Variable 'bs' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:749:43: style:inconclusive: Function 'ParsePolygonString' argument 1 names different: declaration 'polygon_string' definition 'poly_string'. [funcArgNamesDifferent] zoneminder-1.36.35/src/zm_zone.h:215:49: note: Function 'ParsePolygonString' argument 1 names different: declaration 'polygon_string' definition 'poly_string'. zoneminder-1.36.35/src/zm_zone.cpp:749:43: note: Function 'ParsePolygonString' argument 1 names different: declaration 'polygon_string' definition 'poly_string'. 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:750:15: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:757:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:845:9: style: Local variable 'Id' shadows outer function [shadowFunction] zoneminder-1.36.35/src/zm_zone.h:183:16: note: Shadowed declaration zoneminder-1.36.35/src/zm_zone.cpp:845:9: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:847:14: style: Local variable 'Type' shadows outer function [shadowFunction] zoneminder-1.36.35/src/zm_zone.h:185:21: note: Shadowed declaration zoneminder-1.36.35/src/zm_zone.cpp:847:14: note: Shadow variable 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:883:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable y_ [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:947:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x_ [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:969:12: style:inconclusive: Technically the member function 'Zone::std_alarmedpixels' can be const. [functionConst] zoneminder-1.36.35/src/zm_zone.h:125:10: note: Technically the member function 'Zone::std_alarmedpixels' can be const. zoneminder-1.36.35/src/zm_zone.cpp:969:12: note: Technically the member function 'Zone::std_alarmedpixels' can be const. 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:970:12: style: Parameter 'pdiff_image' can be declared as pointer to const [constParameterPointer] 2.18.0 zoneminder-1.36.35/src/zm_zone.cpp:990:22: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:122:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:324:13: style: Variable 'delta_time.fsec' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:324:13: style: Variable 'delta_time.positive' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:324:13: style: Variable 'delta_time.prec' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:324:13: style: Variable 'delta_time.sec' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:340:15: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:373:34: style: Variable 'monitor' can be declared as reference to const [constVariableReference] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:71:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:86:26: style: Parameter 'argv' can be declared as const array [constParameter] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:92:15: style: The scope of the variable 'protocol' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zmc.cpp:99:24: style: Variable 'long_options' can be declared as const array [constVariable] 2.18.0 zoneminder-1.36.35/src/zms.cpp:116:17: style: C-style pointer casting [cstyleCast] 2.18.0 zoneminder-1.36.35/src/zms.cpp:119:47: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] 2.18.0 zoneminder-1.36.35/src/zms.cpp:125:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] 2.18.0 zoneminder-1.36.35/src/zms.cpp:126:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] 2.18.0 zoneminder-1.36.35/src/zms.cpp:167:15: style: Variable 'bitrate' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zms.cpp:204:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zms.cpp:75:16: style: The scope of the variable 'bitrate' can be reduced. [variableScope] 2.18.0 zoneminder-1.36.35/src/zms.cpp:75:24: style: Variable 'bitrate' is assigned a value that is never used. [unreadVariable] 2.18.0 zoneminder-1.36.35/src/zmu.cpp:143:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zmu.cpp:209:26: style: Parameter 'argv' can be declared as const array [constParameter] 2.18.0 zoneminder-1.36.35/src/zmu.cpp:210:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZM_CONFIG [valueFlowBailoutIncompleteVar] 2.18.0 zoneminder-1.36.35/src/zmu.cpp:219:24: style: Variable 'long_options' can be declared as const array [constVariable] 2.18.0 zoneminder-1.36.35/src/zmu.cpp:274:9: style: Variable 'zoneString' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zmu.cpp:276:9: style: Variable 'password' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zmu.cpp:277:9: style: Variable 'auth' can be declared as pointer to const [constVariablePointer] 2.18.0 zoneminder-1.36.35/src/zmu.cpp:627:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 zoneminder-1.36.35/src/zmu.cpp:774:13: style: The scope of the variable 'monitor_function' can be reduced. [variableScope] DONE