2024-03-26 17:59 ftp://ftp.de.debian.org/debian/pool/main/c/concalc/concalc_0.9.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 61552d0 (2024-03-26 14:25:53 +0100) count: 232 229 elapsed-time: 8.6 8.4 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 8.12086s (avg. 8.12086s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 3.69436s (avg. 1.23145s - 3 result(s)) valueFlowDynamicBufferSize(tokenlist, symboldatabase, errorLogger, settings): 1.74742s (avg. 1.74742s - 1 result(s)) valueFlowUninit(tokenlist, errorLogger, settings): 1.19118s (avg. 0.397062s - 3 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.568946s (avg. 0.189649s - 3 result(s)) Overall time: 8.54438s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 8.00906s (avg. 8.00906s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 4.8698s (avg. 1.62327s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 1.50937s (avg. 0.503124s - 3 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.782732s (avg. 0.260911s - 3 result(s)) valueFlowUninit(tokenlist, settings): 0.483216s (avg. 0.161072s - 3 result(s)) Overall time: 8.36575s head results: concalc-0.9.2/src/concalc.cpp:491:15: style: Array index 'c' is used before limits check. [arrayIndexThenCheck] concalc-0.9.2/src/concalc.cpp:574:18: style: Array index 'c' is used before limits check. [arrayIndexThenCheck] concalc-0.9.2/src/global.h:314:3: warning: Member variable 'Math::vertObj' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/global.h:314:3: warning: Member variable 'Math::horzObj' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/global.h:314:3: warning: Member variable 'Math::number' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/global.h:314:3: warning: Member variable 'Math::var' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/global.h:314:3: warning: Member variable 'Math::operation' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/list.h:71:2: warning: Member variable 'List < Math * >::actualItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/list.h:71:2: warning: Member variable 'List < Math * >::firstItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/list.h:71:2: warning: Member variable 'List < char * >::actualItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/list.h:71:2: warning: Member variable 'List < char * >::firstItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/list.h:71:2: warning: Member variable 'List < int >::actualItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/list.h:71:2: warning: Member variable 'List < int >::firstItem' is not initialized in the constructor. [uninitMemberVar] concalc-0.9.2/src/global.h:334:7: style:inconclusive: Technically the member function 'Math::getOperation' can be const. [functionConst] concalc-0.9.2/src/list.h:104:6: style:inconclusive: Technically the member function 'List < Math * >::GetLen' can be const. [functionConst] concalc-0.9.2/src/list.h:104:6: style:inconclusive: Technically the member function 'List < char * >::GetLen' can be const. [functionConst] concalc-0.9.2/src/list.h:104:6: style:inconclusive: Technically the member function 'List < int >::GetLen' can be const. [functionConst] concalc-0.9.2/src/list.h:45:3: warning: Class 'List < Math * >' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] concalc-0.9.2/src/list.h:45:3: warning: Class 'List < Math * >' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] concalc-0.9.2/src/list.h:45:3: warning: Class 'List < char * >' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] concalc-0.9.2/src/list.h:45:3: warning: Class 'List < char * >' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] concalc-0.9.2/src/list.h:45:3: warning: Class 'List < int >' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] concalc-0.9.2/src/list.h:45:3: warning: Class 'List < int >' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] concalc-0.9.2/src/global.h:356:14: style: Virtual function 'split' is called from constructor 'Calculate(Math*par,char*line,int start,int end,Preferences*pr,double*va)' at line 363. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.2/src/global.h:363:4: note: Calling split concalc-0.9.2/src/global.h:356:14: note: split is a virtual function concalc-0.9.2/src/global.h:356:14: style: Virtual function 'split' is called from constructor 'Calculate(Math*par,char*line,Preferences*pr,double*va)' at line 374. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.2/src/global.h:374:9: note: Calling split concalc-0.9.2/src/global.h:356:14: note: split is a virtual function concalc-0.9.2/src/global.h:487:15: style: Virtual function 'split' is called from constructor 'Script(Script*par,char*line,Preferences*pr,double*va,ThreadSync*evrec)' at line 421. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.2/src/global.h:421:6: note: Calling split concalc-0.9.2/src/global.h:487:15: note: split is a virtual function concalc-0.9.2/src/global.h:486:15: style: Virtual function 'parse' is called from constructor 'Script(Script*par,char*line,Preferences*pr,double*va,ThreadSync*evrec)' at line 425. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.2/src/global.h:425:15: note: Calling parse concalc-0.9.2/src/global.h:486:15: note: parse is a virtual function concalc-0.9.2/src/global.h:487:15: style: Virtual function 'split' is called from constructor 'Script(Script*par,char*line,int start,int end,Preferences*pr,double*va,ThreadSync*evrec)' at line 443. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.2/src/global.h:443:6: note: Calling split concalc-0.9.2/src/global.h:487:15: note: split is a virtual function concalc-0.9.2/src/global.h:486:15: style: Virtual function 'parse' is called from constructor 'Script(Script*par,char*line,int start,int end,Preferences*pr,double*va,ThreadSync*evrec)' at line 447. Dynamic binding is not used. [virtualCallInConstructor] concalc-0.9.2/src/global.h:447:15: note: Calling parse concalc-0.9.2/src/global.h:486:15: note: parse is a virtual function concalc-0.9.2/src/global.h:356:14: style: The function 'split' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:347:15: note: Virtual function in base class concalc-0.9.2/src/global.h:356:14: note: Function in derived class concalc-0.9.2/src/global.h:376:4: style: The destructor '~Calculate' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:320:12: note: Virtual destructor in base class concalc-0.9.2/src/global.h:376:4: note: Destructor in derived class concalc-0.9.2/src/global.h:391:18: style: The function 'calc' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:339:18: note: Virtual function in base class concalc-0.9.2/src/global.h:391:18: note: Function in derived class concalc-0.9.2/src/global.h:392:18: style: The function 'calcVertObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:340:18: note: Virtual function in base class concalc-0.9.2/src/global.h:392:18: note: Function in derived class concalc-0.9.2/src/global.h:393:18: style: The function 'calcHorzObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:341:18: note: Virtual function in base class concalc-0.9.2/src/global.h:393:18: note: Function in derived class concalc-0.9.2/src/global.h:453:4: style: The destructor '~Script' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:320:12: note: Virtual destructor in base class concalc-0.9.2/src/global.h:453:4: note: Destructor in derived class concalc-0.9.2/src/global.h:486:15: style: The function 'parse' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:348:15: note: Virtual function in base class concalc-0.9.2/src/global.h:486:15: note: Function in derived class concalc-0.9.2/src/global.h:487:15: style: The function 'split' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:347:15: note: Virtual function in base class concalc-0.9.2/src/global.h:487:15: note: Function in derived class concalc-0.9.2/src/global.h:490:18: style: The function 'calc' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:339:18: note: Virtual function in base class concalc-0.9.2/src/global.h:490:18: note: Function in derived class concalc-0.9.2/src/global.h:491:18: style: The function 'calcVertObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:340:18: note: Virtual function in base class concalc-0.9.2/src/global.h:491:18: note: Function in derived class concalc-0.9.2/src/global.h:492:18: style: The function 'calcHorzObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:341:18: note: Virtual function in base class concalc-0.9.2/src/global.h:492:18: note: Function in derived class concalc-0.9.2/src/global.h:494:18: style: The function 'exec' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:343:18: note: Virtual function in base class concalc-0.9.2/src/global.h:494:18: note: Function in derived class concalc-0.9.2/src/global.h:495:18: style: The function 'execVertObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:344:18: note: Virtual function in base class concalc-0.9.2/src/global.h:495:18: note: Function in derived class concalc-0.9.2/src/global.h:496:18: style: The function 'execHorzObj' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:345:18: note: Virtual function in base class concalc-0.9.2/src/global.h:496:18: note: Function in derived class concalc-0.9.2/src/concalc.cpp:159:11: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] concalc-0.9.2/src/concalc.cpp:155:16: note: outer condition: cc concalc-0.9.2/src/global.h:445:17: style: Condition 'line!=NULL' is always true [knownConditionTrueFalse] concalc-0.9.2/src/concalc.cpp:497:5: warning: %LX in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] concalc-0.9.2/src/concalc.cpp:171:6: error: Memory leak: scriptData.vars [memleak] concalc-0.9.2/src/list.h:193:13: error: Null pointer dereference: (Math**)NULL [nullPointer] concalc-0.9.2/src/list.h:195:13: error: Null pointer dereference: (Math**)NULL [nullPointer] concalc-0.9.2/src/list.h:193:13: error: Null pointer dereference: (char**)NULL [nullPointer] concalc-0.9.2/src/list.h:195:13: error: Null pointer dereference: (char**)NULL [nullPointer] concalc-0.9.2/src/list.h:193:13: error: Null pointer dereference: (int*)NULL [nullPointer] concalc-0.9.2/src/list.h:195:13: error: Null pointer dereference: (int*)NULL [nullPointer] concalc-0.9.2/src/global.h:360:87: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.h:365:68: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.h:408:82: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.h:432:100: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/concalc.cpp:70:22: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/concalc.cpp:282:11: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/concalc.cpp:287:11: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/concalc.cpp:302:9: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/concalc.cpp:329:10: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/list.h:193:13: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/list.h:195:13: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/concalc.cpp:96:6: style: The scope of the variable 'fileLength' can be reduced. [variableScope] concalc-0.9.2/src/concalc.cpp:100:7: style: The scope of the variable 'var' can be reduced. [variableScope] concalc-0.9.2/src/concalc.cpp:563:13: style: The scope of the variable 'pos2' can be reduced. [variableScope] concalc-0.9.2/src/concalc.cpp:565:8: style: The scope of the variable 'line' can be reduced. [variableScope] concalc-0.9.2/src/concalc.cpp:568:6: style: The scope of the variable 'lineLen' can be reduced. [variableScope] concalc-0.9.2/src/concalc.cpp:627:10: style: The scope of the variable 'subFileContent' can be reduced. [variableScope] concalc-0.9.2/src/list.h:77:17: style: The scope of the variable 'KillItem' can be reduced. [variableScope] concalc-0.9.2/src/concalc.cpp:330:48: style: Checking if unsigned expression 'std::fread(input,fileinfo.st_size,1,scriptFile)' is less than zero. [unsignedLessThanZero] concalc-0.9.2/src/concalc.cpp:307:8: style: Local variable 'path' shadows outer variable [shadowVariable] concalc-0.9.2/src/concalc.cpp:88:7: note: Shadowed declaration concalc-0.9.2/src/concalc.cpp:307:8: note: Shadow variable concalc-0.9.2/src/concalc.cpp:583:11: style: Local variable 'c' shadows outer variable [shadowVariable] concalc-0.9.2/src/concalc.cpp:571:6: note: Shadowed declaration concalc-0.9.2/src/concalc.cpp:583:11: note: Shadow variable concalc-0.9.2/src/concalc.cpp:560:25: style: Parameter 'code' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/concalc.cpp:659:7: style: Variable 'filePath' can be declared as pointer to const [constVariablePointer] concalc-0.9.2/src/global.h:343:55: error: Uninitialized variables: r.ival, r.bval, r.cval [uninitvar] concalc-0.9.2/src/global.h:344:62: error: Uninitialized variables: r.ival, r.bval, r.cval [uninitvar] concalc-0.9.2/src/global.h:345:62: error: Uninitialized variables: r.ival, r.bval, r.cval [uninitvar] concalc-0.9.2/src/global.h:343:55: error: Uninitialized struct member: r.ival [uninitStructMember] concalc-0.9.2/src/global.h:343:55: error: Uninitialized struct member: r.bval [uninitStructMember] concalc-0.9.2/src/global.h:343:55: error: Uninitialized struct member: r.cval [uninitStructMember] concalc-0.9.2/src/global.h:344:62: error: Uninitialized struct member: r.ival [uninitStructMember] concalc-0.9.2/src/global.h:344:62: error: Uninitialized struct member: r.bval [uninitStructMember] concalc-0.9.2/src/global.h:344:62: error: Uninitialized struct member: r.cval [uninitStructMember] concalc-0.9.2/src/global.h:345:62: error: Uninitialized struct member: r.ival [uninitStructMember] concalc-0.9.2/src/global.h:345:62: error: Uninitialized struct member: r.bval [uninitStructMember] concalc-0.9.2/src/global.h:345:62: error: Uninitialized struct member: r.cval [uninitStructMember] concalc-0.9.2/src/concalc.cpp:372:12: error: Memory is allocated but not initialized: printString [uninitdata] concalc-0.9.2/src/concalc.cpp:112:14: style: Variable 'varEnd' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/concalc.cpp:563:17: style: Variable 'pos2' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:102:14: style: Array index 'endPos' is used before limits check. [arrayIndexThenCheck] concalc-0.9.2/src/global.cpp:200:14: style: Array index 'endPos' is used before limits check. [arrayIndexThenCheck] concalc-0.9.2/src/global.cpp:3339:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] concalc-0.9.2/src/global.cpp:6156:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] concalc-0.9.2/src/global.cpp:439:38: style: Condition 'c>0' is always true [knownConditionTrueFalse] concalc-0.9.2/src/global.cpp:431:51: note: Assuming that condition 'c>0' is not redundant concalc-0.9.2/src/global.cpp:439:38: note: Condition 'c>0' is always true concalc-0.9.2/src/global.cpp:439:54: style: Condition 'code[c-1]==(char)0xc2' is always false [knownConditionTrueFalse] concalc-0.9.2/src/global.cpp:431:66: note: Assuming that condition 'code[c-1]>='0'' is not redundant concalc-0.9.2/src/global.cpp:439:54: note: Condition 'code[c-1]==(char)0xc2' is always false concalc-0.9.2/src/global.cpp:6483:3: error: Memory leak: subMatrix [memleak] concalc-0.9.2/src/global.cpp:108:17: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:206:17: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:218:10: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:231:16: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:682:12: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:684:6: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:701:11: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:703:5: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3209:14: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3295:12: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3455:29: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3474:20: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3545:30: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3557:30: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3635:29: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3721:30: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3733:30: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3950:42: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3953:42: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3978:47: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:3979:51: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4242:29: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4308:29: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4506:20: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4510:20: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4520:19: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4527:20: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4531:20: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4538:19: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4544:19: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4550:21: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4554:21: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4564:19: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4574:22: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4578:22: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4590:19: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:5167:13: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:5609:19: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:5613:19: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:5849:11: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:5869:13: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:5923:29: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6038:18: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6043:18: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6063:27: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6064:15: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6087:18: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6092:18: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6113:27: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6114:15: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6164:15: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6326:15: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6334:15: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6382:26: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6398:26: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6476:22: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:6477:25: style: C-style pointer casting [cstyleCast] concalc-0.9.2/src/global.cpp:4092:8: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] concalc-0.9.2/src/global.cpp:4094:7: note: Found duplicate branches for 'if' and 'else'. concalc-0.9.2/src/global.cpp:4092:8: note: Found duplicate branches for 'if' and 'else'. concalc-0.9.2/src/global.cpp:4126:8: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] concalc-0.9.2/src/global.cpp:4128:7: note: Found duplicate branches for 'if' and 'else'. concalc-0.9.2/src/global.cpp:4126:8: note: Found duplicate branches for 'if' and 'else'. concalc-0.9.2/src/global.cpp:1207:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] concalc-0.9.2/src/global.cpp:3523:8: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] concalc-0.9.2/src/global.cpp:3699:8: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] concalc-0.9.2/src/global.cpp:176:60: style: The scope of the variable 'replacementLen' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:1653:23: style: The scope of the variable 'oldfail' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:1656:8: style: The scope of the variable 'steps' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:1724:7: style: The scope of the variable 'init' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:3575:10: style: The scope of the variable 'effIndex1' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:3575:22: style: The scope of the variable 'effIndex2' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:3575:34: style: The scope of the variable 'effIndexD' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:3751:10: style: The scope of the variable 'effIndex1' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:3751:22: style: The scope of the variable 'effIndex2' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:3751:34: style: The scope of the variable 'effIndexD' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:5781:25: style: The scope of the variable 'oldfail' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:5784:8: style: The scope of the variable 'steps' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:5998:9: style: The scope of the variable 'f' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:6057:9: style: The scope of the variable 'f' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:6107:9: style: The scope of the variable 'f' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:6399:7: style: The scope of the variable 'pos' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:6450:17: style: The scope of the variable 'tmp' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:6487:44: style: The scope of the variable 'effIndex' can be reduced. [variableScope] concalc-0.9.2/src/global.cpp:168:17: style: Checking if unsigned expression 'std::strlen(code)' is less than zero. [unsignedLessThanZero] concalc-0.9.2/src/global.cpp:286:17: style: Checking if unsigned expression 'strlen(code)' is less than zero. [unsignedLessThanZero] concalc-0.9.2/src/global.cpp:300:9: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] concalc-0.9.2/src/global.cpp:372:10: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] concalc-0.9.2/src/global.cpp:452:9: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] concalc-0.9.2/src/global.cpp:5569:41: style: Checking if unsigned expression 'strlen(n.cval)' is less than zero. [unsignedLessThanZero] concalc-0.9.2/src/global.cpp:1248:17: style: Local variable 'pos' shadows outer variable [shadowVariable] concalc-0.9.2/src/global.cpp:1225:6: note: Shadowed declaration concalc-0.9.2/src/global.cpp:1248:17: note: Shadow variable concalc-0.9.2/src/global.cpp:2750:7: style: Local variable 'pos1' shadows outer variable [shadowVariable] concalc-0.9.2/src/global.cpp:1766:6: note: Shadowed declaration concalc-0.9.2/src/global.cpp:2750:7: note: Shadow variable concalc-0.9.2/src/global.cpp:2775:7: style: Local variable 'pos1' shadows outer variable [shadowVariable] concalc-0.9.2/src/global.cpp:1766:6: note: Shadowed declaration concalc-0.9.2/src/global.cpp:2775:7: note: Shadow variable concalc-0.9.2/src/global.cpp:5733:11: style: Local variable 'value' shadows outer variable [shadowVariable] concalc-0.9.2/src/global.h:398:9: note: Shadowed declaration concalc-0.9.2/src/global.cpp:5733:11: note: Shadow variable concalc-0.9.2/src/global.cpp:293:41: style: Parameter 'pref' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:507:23: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:507:36: style: Parameter 'searchString' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:578:26: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:578:39: style: Parameter 'searchString' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:646:18: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:656:18: style: Parameter 'dest' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:668:28: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:675:49: style: Parameter 'rep' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:697:40: style: Parameter 'ins' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:711:29: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:711:45: style: Parameter 'pref' can be declared as pointer to const [constParameterPointer] concalc-0.9.2/src/global.cpp:3935:52: error: Uninitialized variables: &nullNum.ival, &nullNum.bval [uninitvar] concalc-0.9.2/src/global.cpp:1659:13: error: Memory is allocated but not initialized: line2 [uninitdata] concalc-0.9.2/src/global.cpp:3240:7: error: Uninitialized variable: err [legacyUninitvar] concalc-0.9.2/src/global.cpp:5788:13: error: Memory is allocated but not initialized: line2 [uninitdata] concalc-0.9.2/src/global.cpp:31:9: style: Variable 'end' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:75:20: style: Variable 'startPos' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:75:29: style: Variable 'endPos' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:176:20: style: Variable 'startPos' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:176:29: style: Variable 'endPos' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:176:57: style: Variable 'macroLen' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:176:74: style: Variable 'replacementLen' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:177:25: style: Variable 'mQuote' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:234:18: style: Variable 'replacementLen' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:1653:30: style: Variable 'oldfail' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:1724:11: style: Variable 'init' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:1730:7: style: Variable 'init' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:1920:11: style: Variable 'pos2' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:2003:11: style: Variable 'pos2' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:3575:19: style: Variable 'effIndex1' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:3575:31: style: Variable 'effIndex2' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:3575:43: style: Variable 'effIndexD' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:3751:19: style: Variable 'effIndex1' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:3751:31: style: Variable 'effIndex2' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:3751:43: style: Variable 'effIndexD' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:4346:18: style: Variable 'effIndex1' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:4346:30: style: Variable 'effIndex2' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:4346:42: style: Variable 'effIndexD' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:5189:16: style: Variable 'effIndex' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:5781:32: style: Variable 'oldfail' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:5967:15: style: Variable 'pathlen' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:6399:10: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] concalc-0.9.2/src/global.cpp:6492:12: style: Variable 'effIndex' is assigned a value that is never used. [unreadVariable] diff: head concalc-0.9.2/src/global.cpp:6483:3: error: Memory leak: subMatrix [memleak] head concalc-0.9.2/src/global.cpp:711:29: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] 2.13.0 concalc-0.9.2/src/global.cpp:953:10: style: Condition 'c>0' is always true [knownConditionTrueFalse] concalc-0.9.2/src/global.cpp:917:7: note: Assuming that condition 'c>0' is not redundant concalc-0.9.2/src/global.cpp:953:10: note: Condition 'c>0' is always true head concalc-0.9.2/src/global.h:376:4: style: The destructor '~Calculate' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:320:12: note: Virtual destructor in base class concalc-0.9.2/src/global.h:376:4: note: Destructor in derived class head concalc-0.9.2/src/global.h:453:4: style: The destructor '~Script' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] concalc-0.9.2/src/global.h:320:12: note: Virtual destructor in base class concalc-0.9.2/src/global.h:453:4: note: Destructor in derived class DONE