2024-04-07 09:14 ftp://ftp.de.debian.org/debian/pool/main/g/gri/gri_2.12.27.orig.tar.gz cppcheck-options: --library=posix --library=gnu --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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.55 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: c802bab (2024-04-07 00:37:21 +0200) count: 1137 1086 elapsed-time: 16.3 23.8 head-timing-info: old-timing-info: head results: gri-2.12.27/src/DataFile.hh:42:131: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriState.cc:65:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriColor.cc:49:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriState.cc:107:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriColor.cc:77:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriColor.cc:118:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rgb [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriColor.cc:128:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rgb [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriColor.cc:157:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriColor.cc:196:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriColor.cc:208:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rgb [valueFlowBailoutIncompleteVar] gri-2.12.27/src/gr_coll.hh:122:2: warning: Member variable 'BlockSource::offset' is not initialized in the constructor. [uninitMemberVar] gri-2.12.27/src/gr_coll.hh:137:2: warning: Member variable 'BlockSource::offset' is not initialized in the copy constructor. [uninitMemberVar] gri-2.12.27/src/gr_coll.hh:145:2: warning: Member variable 'BlockSource::offset' is not initialized in the constructor. [uninitMemberVar] gri-2.12.27/src/GriState.cc:45:11: warning:inconclusive: Member variable 'GriState::is_separate_text_color' is not assigned in the copy constructor. Should it be copied? [missingMemberCopy] gri-2.12.27/src/GriState.cc:85:21: warning:inconclusive: Member variable 'GriState::is_separate_text_color' is not assigned a value in 'GriState::operator='. [operatorEqVarError] gri-2.12.27/src/GMatrix.hh:45:15: warning: Member variable 'GriMatrix < double >::contents' is not initialized in the constructor. [uninitMemberVar] gri-2.12.27/src/GMatrix.hh:45:15: warning: Member variable 'GriMatrix < bool >::contents' is not initialized in the constructor. [uninitMemberVar] gri-2.12.27/src/gr_coll.hh:141:3: performance: Variable 'filename' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gri-2.12.27/src/gr_coll.hh:150:3: performance: Variable 'filename' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gri-2.12.27/src/types.hh:98:9: style:inconclusive: Technically the member function 'rectangle::get_llx' can be const. [functionConst] gri-2.12.27/src/types.hh:99:9: style:inconclusive: Technically the member function 'rectangle::get_lly' can be const. [functionConst] gri-2.12.27/src/types.hh:100:9: style:inconclusive: Technically the member function 'rectangle::get_urx' can be const. [functionConst] gri-2.12.27/src/types.hh:101:9: style:inconclusive: Technically the member function 'rectangle::get_ury' can be const. [functionConst] gri-2.12.27/src/gr_coll.hh:52:2: style: Class 'GriString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gri-2.12.27/src/gr_coll.hh:54:2: style: Class 'GriString' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gri-2.12.27/src/gr_coll.hh:79:2: style: Class 'GriDvector' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gri-2.12.27/src/GMatrix.hh:94:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GMatrix.hh:94:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GMatrix.hh:99:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GMatrix.hh:99:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GMatrix.hh:112:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GMatrix.hh:112:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GMatrix.hh:117:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GMatrix.hh:117:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GMatrix.hh:71:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GMatrix.hh:91:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GMatrix.hh:96:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GMatrix.hh:101:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GMatrix.hh:109:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GMatrix.hh:114:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GMatrix.hh:119:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriState.hh:45:36: performance: Function parameter 'd' should be passed by const reference. [passedByValue] gri-2.12.27/src/DataFile.hh:39:21: error: Dereference of an invalid iterator: _cmdFILE.end() [derefInvalidIterator] gri-2.12.27/src/GriColor.cc:115:2: performance: Variable 'name' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gri-2.12.27/src/GriColor.cc:123:2: performance: Variable 'name' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] gri-2.12.27/src/GriColor.cc:27:47: style:inconclusive: Function 'operator=' argument 1 names different: declaration 'c' definition 'color'. [funcArgNamesDifferent] gri-2.12.27/src/GriColor.hh:34:38: note: Function 'operator=' argument 1 names different: declaration 'c' definition 'color'. gri-2.12.27/src/GriColor.cc:27:47: note: Function 'operator=' argument 1 names different: declaration 'c' definition 'color'. gri-2.12.27/src/GriColor.cc:55:36: style:inconclusive: Function 'GriColor' argument 1 names different: declaration 'c' definition 'color'. [funcArgNamesDifferent] gri-2.12.27/src/GriColor.hh:32:27: note: Function 'GriColor' argument 1 names different: declaration 'c' definition 'color'. gri-2.12.27/src/GriColor.cc:55:36: note: Function 'GriColor' argument 1 names different: declaration 'c' definition 'color'. gri-2.12.27/src/GriColor.cc:131:51: style:inconclusive: Function 'GriNamedColor' argument 1 names different: declaration 'C' definition 'color'. [funcArgNamesDifferent] gri-2.12.27/src/GriColor.hh:74:37: note: Function 'GriNamedColor' argument 1 names different: declaration 'C' definition 'color'. gri-2.12.27/src/GriColor.cc:131:51: note: Function 'GriNamedColor' argument 1 names different: declaration 'C' definition 'color'. gri-2.12.27/src/GriColor.cc:170:62: style:inconclusive: Function 'operator=' argument 1 names different: declaration 'C' definition 'color'. [funcArgNamesDifferent] gri-2.12.27/src/GriColor.hh:75:48: note: Function 'operator=' argument 1 names different: declaration 'C' definition 'color'. gri-2.12.27/src/GriColor.cc:170:62: note: Function 'operator=' argument 1 names different: declaration 'C' definition 'color'. gri-2.12.27/src/GriColor.cc:205:44: style:inconclusive: Function 'setNameRGB' argument 1 names different: declaration 'n' definition 'newName'. [funcArgNamesDifferent] gri-2.12.27/src/GriColor.hh:76:30: note: Function 'setNameRGB' argument 1 names different: declaration 'n' definition 'newName'. gri-2.12.27/src/GriColor.cc:205:44: note: Function 'setNameRGB' argument 1 names different: declaration 'n' definition 'newName'. gri-2.12.27/src/GriColor.cc:218:15: style: Local variable 'b' shadows outer variable [shadowVariable] gri-2.12.27/src/GriColor.hh:64:9: note: Shadowed declaration gri-2.12.27/src/GriColor.cc:218:15: note: Shadow variable gri-2.12.27/src/GriPath.cc:111:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriPath.cc:152:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gri-2.12.27/src/GriPath.cc:319:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gri-2.12.27/src/DataFile.hh:36:32: style: Local variable '_cmdFILE' shadows outer variable [shadowVariable] gri-2.12.27/src/extern.hh:108:30: note: Shadowed declaration gri-2.12.27/src/DataFile.hh:36:32: note: Shadow variable gri-2.12.27/src/GriPath.hh:35:11: style:inconclusive: Technically the member function 'GriPath::size' can be const. [functionConst] gri-2.12.27/src/GriPath.cc:116:19: note: Technically the member function 'GriPath::size' can be const. gri-2.12.27/src/GriPath.hh:35:11: note: Technically the member function 'GriPath::size' can be const. gri-2.12.27/src/GriPath.hh:44:9: style:inconclusive: Technically the member function 'GriPath::get_x' can be const. [functionConst] gri-2.12.27/src/GriPath.hh:45:9: style:inconclusive: Technically the member function 'GriPath::get_y' can be const. [functionConst] gri-2.12.27/src/GriPath.cc:53:2: warning: Class 'GriPath' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] gri-2.12.27/src/GriPath.cc:53:2: warning: Class 'GriPath' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] gri-2.12.27/src/GriPath.hh:30:2: style: Class 'GriPath' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] gri-2.12.27/src/GriPath.cc:211:11: style: Condition '0&&iteration0' is always true [knownConditionTrueFalse] gri-2.12.27/src/GriPath.cc:214:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GriPath.cc:216:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GriPath.cc:218:5: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GriPath.cc:231:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GriPath.cc:231:4: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GriPath.cc:237:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/GriPath.cc:194:3: warning: Either the condition '!ac' is redundant or there is possible null pointer dereference: ac. [nullPointerRedundantCheck] gri-2.12.27/src/GriPath.cc:188:52: note: Assuming that condition '!ac' is not redundant gri-2.12.27/src/GriPath.cc:194:3: note: Null pointer dereference gri-2.12.27/src/GriPath.cc:45:37: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:46:37: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:47:53: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:53:37: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:54:37: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:55:53: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:76:12: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:84:12: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:91:14: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:186:50: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:187:50: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:188:57: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:437:44: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:438:44: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:439:57: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/GriPath.cc:426:9: style: The scope of the variable 'oldx' can be reduced. [variableScope] gri-2.12.27/src/GriPath.cc:50:27: style:inconclusive: Function 'GriPath' argument 1 names different: declaration 'capacity' definition 'c'. [funcArgNamesDifferent] gri-2.12.27/src/GriPath.hh:30:19: note: Function 'GriPath' argument 1 names different: declaration 'capacity' definition 'c'. gri-2.12.27/src/GriPath.cc:50:27: note: Function 'GriPath' argument 1 names different: declaration 'capacity' definition 'c'. gri-2.12.27/src/GriPath.cc:97:52: style:inconclusive: Function 'push_back' argument 3 names different: declaration 'aa' definition 'a'. [funcArgNamesDifferent] gri-2.12.27/src/GriPath.hh:34:44: note: Function 'push_back' argument 3 names different: declaration 'aa' definition 'a'. gri-2.12.27/src/GriPath.cc:97:52: note: Function 'push_back' argument 3 names different: declaration 'aa' definition 'a'. gri-2.12.27/src/GriPath.cc:157:28: style:inconclusive: Function 'stroke' argument 1 names different: declaration 'u' definition 'the_units'. [funcArgNamesDifferent] gri-2.12.27/src/GriPath.hh:37:20: note: Function 'stroke' argument 1 names different: declaration 'u' definition 'the_units'. gri-2.12.27/src/GriPath.cc:157:28: note: Function 'stroke' argument 1 names different: declaration 'u' definition 'the_units'. gri-2.12.27/src/GriPath.cc:163:26: style:inconclusive: Function 'fill' argument 1 names different: declaration 'u' definition 'the_units'. [funcArgNamesDifferent] gri-2.12.27/src/GriPath.hh:39:18: note: Function 'fill' argument 1 names different: declaration 'u' definition 'the_units'. gri-2.12.27/src/GriPath.cc:163:26: note: Function 'fill' argument 1 names different: declaration 'u' definition 'the_units'. gri-2.12.27/src/GriPath.cc:169:49: style:inconclusive: Function 'stroke_or_fill' argument 2 names different: declaration 'u' definition 'the_units'. [funcArgNamesDifferent] gri-2.12.27/src/GriPath.hh:38:41: note: Function 'stroke_or_fill' argument 2 names different: declaration 'u' definition 'the_units'. gri-2.12.27/src/GriPath.cc:169:49: note: Function 'stroke_or_fill' argument 2 names different: declaration 'u' definition 'the_units'. gri-2.12.27/src/delete.cc:249:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/delete.cc:304:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/delete.cc:351:10: style: Variable 'xP' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/delete.cc:352:10: style: Variable 'yP' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/delete.cc:353:10: style: Variable 'zP' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/delete.cc:354:10: style: Variable 'uP' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/delete.cc:355:10: style: Variable 'vP' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/delete.cc:356:10: style: Variable 'weightP' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/delete.cc:77:12: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] gri-2.12.27/src/delete.cc:83:12: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] gri-2.12.27/src/delete.cc:99:11: performance: Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. [stlcstrParam] gri-2.12.27/src/delete.cc:394:9: style: Variable 'length' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/command.cc:576:30: style: The statement 'if (*(line+len-1)!='\n') *(line+len-1)='\n'' is logically equivalent to '*(line+len-1)='\n''. [duplicateConditionalAssign] gri-2.12.27/src/command.cc:577:22: note: Assignment '*(line+len-1)='\n'' gri-2.12.27/src/command.cc:576:30: note: Condition '*(line+len-1)!='\n'' is redundant gri-2.12.27/src/command.cc:234:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:263:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:429:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:442:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:446:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:471:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:487:21: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:488:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:539:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:579:38: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:714:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:719:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:737:6: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:750:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:761:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:774:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:777:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:781:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:788:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:802:10: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:805:10: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:873:16: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:921:10: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:999:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:1009:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:1019:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/command.cc:469:7: style: Redundant initialization for 'size'. The initialized value is overwritten before it is read. [redundantInitialization] gri-2.12.27/src/command.cc:467:16: note: size is initialized gri-2.12.27/src/command.cc:469:7: note: size is overwritten gri-2.12.27/src/command.cc:183:18: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/command.cc:814:18: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/command.cc:162:35: style:inconclusive: Function 'is_create_new_command' argument 1 names different: declaration 'cmdline' definition 's'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:181:51: note: Function 'is_create_new_command' argument 1 names different: declaration 'cmdline' definition 's'. gri-2.12.27/src/command.cc:162:35: note: Function 'is_create_new_command' argument 1 names different: declaration 'cmdline' definition 's'. gri-2.12.27/src/command.cc:837:27: style:inconclusive: Function 'perform_block' argument 1 names different: declaration 's' definition 'block'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:206:43: note: Function 'perform_block' argument 1 names different: declaration 's' definition 'block'. gri-2.12.27/src/command.cc:837:27: note: Function 'perform_block' argument 1 names different: declaration 's' definition 'block'. gri-2.12.27/src/command.cc:735:12: style: Variable 'cw' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/command.cc:307:14: performance: Constructing a std::string from the result of c_str() is slow and redundant. [stlcstrConstructor] gri-2.12.27/src/command.cc:183:20: style: Variable 'i' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/command.cc:731:17: style: Unused variable: the_cmd_word [unusedVariable] gri-2.12.27/src/command.cc:909:15: style: Variable 'status' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/doline.cc:590:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gri-2.12.27/src/doline.cc:1122:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] gri-2.12.27/src/expect.cc:47:15: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gri-2.12.27/src/expect.cc:52:15: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gri-2.12.27/src/expect.cc:63:16: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] gri-2.12.27/src/expect.cc:58:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/expect.cc:53:7: style: The scope of the variable 'only_one_dot' can be reduced. [variableScope] gri-2.12.27/src/expect.cc:47:8: style: Variable 'dot1' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/expect.cc:52:8: style: Variable 'dot2' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/expect.cc:63:9: style: Variable 'dot3' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/expect.cc:53:20: style: Variable 'only_one_dot' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/expect.cc:55:16: style: Variable 'only_one_dot' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/draw.cc:1607:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Terr [valueFlowBailoutIncompleteVar] gri-2.12.27/src/file.cc:44:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gri-2.12.27/src/file.cc:131:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gri-2.12.27/src/file.cc:226:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gri-2.12.27/src/file.cc:43:14: warning: Either the condition '!fname' is redundant or there is possible null pointer dereference: fname. [nullPointerRedundantCheck] gri-2.12.27/src/file.cc:37:6: note: Assuming that condition '!fname' is not redundant gri-2.12.27/src/file.cc:43:14: note: Null pointer dereference gri-2.12.27/src/file.cc:38:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/file.cc:184:35: style:inconclusive: Function 'push_data_file_to_top' argument 1 names different: declaration 'name' definition 'filename'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:221:51: note: Function 'push_data_file_to_top' argument 1 names different: declaration 'name' definition 'filename'. gri-2.12.27/src/file.cc:184:35: note: Function 'push_data_file_to_top' argument 1 names different: declaration 'name' definition 'filename'. gri-2.12.27/src/file.cc:63:33: style: Parameter 'fname' can be declared as reference to const [constParameterReference] gri-2.12.27/src/doline.cc:640:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/doline.cc:452:0: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/doline.cc:1114:18: style: The scope of the variable 'thisc' can be reduced. [variableScope] gri-2.12.27/src/doline.cc:235:28: style:inconclusive: Function 'massage_command_line' argument 1 names different: declaration 'cmdline' definition 'cmd'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:196:44: note: Function 'massage_command_line' argument 1 names different: declaration 'cmdline' definition 'cmd'. gri-2.12.27/src/doline.cc:235:28: note: Function 'massage_command_line' argument 1 names different: declaration 'cmdline' definition 'cmd'. gri-2.12.27/src/doline.cc:701:22: style:inconclusive: Function 'remove_comment' argument 1 names different: declaration 'cmdline' definition 's'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:226:38: note: Function 'remove_comment' argument 1 names different: declaration 'cmdline' definition 's'. gri-2.12.27/src/doline.cc:701:22: note: Function 'remove_comment' argument 1 names different: declaration 'cmdline' definition 's'. gri-2.12.27/src/doline.cc:871:30: style:inconclusive: Function 'sub_dollar_paren' argument 1 names different: declaration 'n' definition 'in'. [funcArgNamesDifferent] gri-2.12.27/src/doline.cc:40:51: note: Function 'sub_dollar_paren' argument 1 names different: declaration 'n' definition 'in'. gri-2.12.27/src/doline.cc:871:30: note: Function 'sub_dollar_paren' argument 1 names different: declaration 'n' definition 'in'. gri-2.12.27/src/doline.cc:1011:21: style:inconclusive: Function 'expand_blanks' argument 1 names different: declaration 'cmdline' definition 's'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:129:37: note: Function 'expand_blanks' argument 1 names different: declaration 'cmdline' definition 's'. gri-2.12.27/src/doline.cc:1011:21: note: Function 'expand_blanks' argument 1 names different: declaration 'cmdline' definition 's'. gri-2.12.27/src/doline.cc:225:8: style: Local variable 'len' shadows outer variable [shadowVariable] gri-2.12.27/src/doline.cc:214:6: note: Shadowed declaration gri-2.12.27/src/doline.cc:225:8: note: Shadow variable gri-2.12.27/src/doline.cc:960:42: style: Parameter 'res' can be declared as reference to const [constParameterReference] gri-2.12.27/src/doline.cc:648:14: performance: Constructing a std::string from the result of c_str() is slow and redundant. [stlcstrConstructor] gri-2.12.27/src/flip.cc:52:18: style: Local variable 'swap' shadows outer function [shadowFunction] gri-2.12.27/src/private.hh:261:17: note: Shadowed declaration gri-2.12.27/src/flip.cc:52:18: note: Shadow variable gri-2.12.27/src/flip.cc:107:25: style: Local variable 'swap' shadows outer function [shadowFunction] gri-2.12.27/src/private.hh:261:17: note: Shadowed declaration gri-2.12.27/src/flip.cc:107:25: note: Shadow variable gri-2.12.27/src/filter.cc:85:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/filter.cc:86:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/filter.cc:95:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/filter.cc:96:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/filter.cc:160:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/filter.cc:182:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/filter.cc:172:28: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/gr.cc:176:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gri-2.12.27/src/gr.cc:283:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gri-2.12.27/src/gr_coll.cc:682:19: warning: 'operator=' should check for assignment to self to avoid problems with dynamic memory. [operatorEqToSelf] gri-2.12.27/src/gr_coll.hh:86:9: style:inconclusive: Technically the member function 'GriDvector::topElement' can be const. [functionConst] gri-2.12.27/src/gr_coll.cc:457:20: note: Technically the member function 'GriDvector::topElement' can be const. gri-2.12.27/src/gr_coll.hh:86:9: note: Technically the member function 'GriDvector::topElement' can be const. gri-2.12.27/src/gr_coll.hh:89:9: style:inconclusive: Technically the member function 'GriDvector::min' can be const. [functionConst] gri-2.12.27/src/gr_coll.cc:477:20: note: Technically the member function 'GriDvector::min' can be const. gri-2.12.27/src/gr_coll.hh:89:9: note: Technically the member function 'GriDvector::min' can be const. gri-2.12.27/src/gr_coll.hh:90:9: style:inconclusive: Technically the member function 'GriDvector::max' can be const. [functionConst] gri-2.12.27/src/gr_coll.cc:502:20: note: Technically the member function 'GriDvector::max' can be const. gri-2.12.27/src/gr_coll.hh:90:9: note: Technically the member function 'GriDvector::max' can be const. gri-2.12.27/src/gr_coll.hh:91:9: style:inconclusive: Technically the member function 'GriDvector::median' can be const. [functionConst] gri-2.12.27/src/gr_coll.cc:526:20: note: Technically the member function 'GriDvector::median' can be const. gri-2.12.27/src/gr_coll.hh:91:9: note: Technically the member function 'GriDvector::median' can be const. gri-2.12.27/src/gr_coll.hh:94:9: style:inconclusive: Technically the member function 'GriDvector::mean' can be const. [functionConst] gri-2.12.27/src/gr_coll.cc:532:20: note: Technically the member function 'GriDvector::mean' can be const. gri-2.12.27/src/gr_coll.hh:94:9: note: Technically the member function 'GriDvector::mean' can be const. gri-2.12.27/src/gr_coll.hh:98:9: style:inconclusive: Technically the member function 'GriDvector::size' can be const. [functionConst] gri-2.12.27/src/gr_coll.cc:612:20: note: Technically the member function 'GriDvector::size' can be const. gri-2.12.27/src/gr_coll.hh:98:9: note: Technically the member function 'GriDvector::size' can be const. gri-2.12.27/src/gr_coll.hh:99:15: style:inconclusive: Technically the member function 'GriDvector::size_legit' can be const. [functionConst] gri-2.12.27/src/gr_coll.cc:616:26: note: Technically the member function 'GriDvector::size_legit' can be const. gri-2.12.27/src/gr_coll.hh:99:15: note: Technically the member function 'GriDvector::size_legit' can be const. gri-2.12.27/src/gr_coll.hh:100:15: style:inconclusive: Technically the member function 'GriDvector::capacity' can be const. [functionConst] gri-2.12.27/src/gr_coll.cc:624:26: note: Technically the member function 'GriDvector::capacity' can be const. gri-2.12.27/src/gr_coll.hh:100:15: note: Technically the member function 'GriDvector::capacity' can be const. gri-2.12.27/src/gr_coll.cc:54:2: warning: Class 'GriString' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] gri-2.12.27/src/gr_coll.cc:393:2: warning: Class 'GriDvector' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] gri-2.12.27/src/gr_coll.cc:393:2: warning: Class 'GriDvector' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] gri-2.12.27/src/gr_coll.cc:631:2: warning: Class 'GriColumn' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] gri-2.12.27/src/gr_coll.cc:631:2: warning: Class 'GriColumn' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] gri-2.12.27/src/gr_coll.cc:41:9: warning: Either the condition '!value' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:40:6: note: Assuming that condition '!value' is not redundant gri-2.12.27/src/gr_coll.cc:41:9: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:49:9: warning: Either the condition '!value' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:48:6: note: Assuming that condition '!value' is not redundant gri-2.12.27/src/gr_coll.cc:49:9: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:56:2: warning: Either the condition '!value' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:55:6: note: Assuming that condition '!value' is not redundant gri-2.12.27/src/gr_coll.cc:56:2: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:88:5: warning: Either the condition '!more_space' is redundant or there is possible null pointer dereference: more_space. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:86:8: note: Assuming that condition '!more_space' is not redundant gri-2.12.27/src/gr_coll.cc:88:5: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:92:7: warning: Either the condition '!more_space' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:86:8: note: Assuming that condition '!more_space' is not redundant gri-2.12.27/src/gr_coll.cc:90:12: note: Assignment 'value=more_space', assigned value is 0 gri-2.12.27/src/gr_coll.cc:92:7: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:165:6: warning: Either the condition '!more_space' is redundant or there is possible null pointer dereference: more_space. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:163:9: note: Assuming that condition '!more_space' is not redundant gri-2.12.27/src/gr_coll.cc:162:24: note: Assignment to 'more_space=new char[capacity]' gri-2.12.27/src/gr_coll.cc:162:22: note: more_space is assigned 'new char[capacity]' here. gri-2.12.27/src/gr_coll.cc:165:6: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:169:8: warning: Either the condition '!more_space' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:163:9: note: Assuming that condition '!more_space' is not redundant gri-2.12.27/src/gr_coll.cc:162:24: note: Assignment to 'more_space=new char[capacity]' gri-2.12.27/src/gr_coll.cc:162:22: note: more_space is assigned 'new char[capacity]' here. gri-2.12.27/src/gr_coll.cc:167:13: note: Assignment 'value=more_space', assigned value is 0 gri-2.12.27/src/gr_coll.cc:169:8: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:204:6: warning: Either the condition '!more_space' is redundant or there is possible null pointer dereference: more_space. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:202:9: note: Assuming that condition '!more_space' is not redundant gri-2.12.27/src/gr_coll.cc:201:24: note: Assignment to 'more_space=new char[capacity]' gri-2.12.27/src/gr_coll.cc:201:22: note: more_space is assigned 'new char[capacity]' here. gri-2.12.27/src/gr_coll.cc:204:6: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:208:8: warning: Either the condition '!more_space' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:202:9: note: Assuming that condition '!more_space' is not redundant gri-2.12.27/src/gr_coll.cc:201:24: note: Assignment to 'more_space=new char[capacity]' gri-2.12.27/src/gr_coll.cc:201:22: note: more_space is assigned 'new char[capacity]' here. gri-2.12.27/src/gr_coll.cc:206:13: note: Assignment 'value=more_space', assigned value is 0 gri-2.12.27/src/gr_coll.cc:208:8: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:239:9: warning: Either the condition '!value' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:237:7: note: Assuming that condition '!value' is not redundant gri-2.12.27/src/gr_coll.cc:239:9: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:249:10: warning: Either the condition '!tmp' is redundant or there is possible null pointer dereference: tmp. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:248:7: note: Assuming that condition '!tmp' is not redundant gri-2.12.27/src/gr_coll.cc:249:10: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:250:10: warning: Either the condition '!tmp' is redundant or there is possible null pointer dereference: tmp. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:248:7: note: Assuming that condition '!tmp' is not redundant gri-2.12.27/src/gr_coll.cc:250:10: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:331:9: warning: Either the condition '!cp' is redundant or there is possible null pointer dereference: cp. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:330:6: note: Assuming that condition '!cp' is not redundant gri-2.12.27/src/gr_coll.cc:331:9: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:335:31: warning: Either the condition '!cp' is redundant or there is possible null pointer dereference: value. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:330:6: note: Assuming that condition '!cp' is not redundant gri-2.12.27/src/gr_coll.cc:333:10: note: Assignment 'value=cp', assigned value is 0 gri-2.12.27/src/gr_coll.cc:335:31: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:633:2: warning: Either the condition '!name' is redundant or there is possible null pointer dereference: name. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:632:6: note: Assuming that condition '!name' is not redundant gri-2.12.27/src/gr_coll.cc:633:2: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:644:9: warning: Either the condition '!name' is redundant or there is possible null pointer dereference: name. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:643:6: note: Assuming that condition '!name' is not redundant gri-2.12.27/src/gr_coll.cc:644:9: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:655:2: warning: Either the condition '!name' is redundant or there is possible null pointer dereference: name. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:654:6: note: Assuming that condition '!name' is not redundant gri-2.12.27/src/gr_coll.cc:655:2: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:664:9: warning: Either the condition '!name' is redundant or there is possible null pointer dereference: name. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:663:6: note: Assuming that condition '!name' is not redundant gri-2.12.27/src/gr_coll.cc:664:9: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:677:9: warning: Either the condition '!name' is redundant or there is possible null pointer dereference: name. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:675:7: note: Assuming that condition '!name' is not redundant gri-2.12.27/src/gr_coll.cc:677:9: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:690:9: warning: Either the condition '!name' is redundant or there is possible null pointer dereference: name. [nullPointerRedundantCheck] gri-2.12.27/src/gr_coll.cc:688:7: note: Assuming that condition '!name' is not redundant gri-2.12.27/src/gr_coll.cc:690:9: note: Null pointer dereference gri-2.12.27/src/gr_coll.cc:40:14: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:48:14: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:55:14: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:86:21: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:163:22: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:202:22: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:224:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:237:15: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:248:13: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:330:11: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:387:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:394:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:408:12: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:424:12: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:439:13: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:473:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:632:13: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:643:13: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:654:13: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:663:13: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:675:14: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:688:14: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr_coll.cc:602:40: style:inconclusive: Function 'setDepth' argument 1 names different: declaration 'theDepth' definition 'depth'. [funcArgNamesDifferent] gri-2.12.27/src/gr_coll.hh:97:29: note: Function 'setDepth' argument 1 names different: declaration 'theDepth' definition 'depth'. gri-2.12.27/src/gr_coll.cc:602:40: note: Function 'setDepth' argument 1 names different: declaration 'theDepth' definition 'depth'. gri-2.12.27/src/gr_coll.cc:45:8: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/gr_coll.cc:461:47: style: Parameter 'pos_' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/gr_coll.cc:684:8: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/gr.cc:427:39: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] gri-2.12.27/src/gr.cc:427:47: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gri-2.12.27/src/gr.cc:369:8: style: Condition 'ok_after_all' is always false [knownConditionTrueFalse] gri-2.12.27/src/gr.cc:351:35: note: Assignment 'ok_after_all=false', assigned value is 0 gri-2.12.27/src/gr.cc:369:8: note: Condition 'ok_after_all' is always false gri-2.12.27/src/gr.cc:177:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:181:22: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:266:18: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:517:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:529:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1334:24: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1370:23: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1372:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1416:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1418:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1421:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1423:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1428:6: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1430:6: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1433:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1438:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1440:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1650:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1656:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1748:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1754:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1862:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1869:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1882:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:1889:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/gr.cc:324:19: style: The scope of the variable 'version' can be reduced. [variableScope] gri-2.12.27/src/gr.cc:1236:9: style: The scope of the variable 'Cp' can be reduced. [variableScope] gri-2.12.27/src/gr.cc:1236:13: style: The scope of the variable 'Mp' can be reduced. [variableScope] gri-2.12.27/src/gr.cc:1236:17: style: The scope of the variable 'Yp' can be reduced. [variableScope] gri-2.12.27/src/gr.cc:1267:18: style: The scope of the variable 'rc' can be reduced. [variableScope] gri-2.12.27/src/gr.cc:1267:22: style: The scope of the variable 'gc' can be reduced. [variableScope] gri-2.12.27/src/gr.cc:1267:26: style: The scope of the variable 'bc' can be reduced. [variableScope] gri-2.12.27/src/gr.cc:1850:18: style: The scope of the variable 'xx' can be reduced. [variableScope] gri-2.12.27/src/gr.cc:1850:22: style: The scope of the variable 'yy' can be reduced. [variableScope] gri-2.12.27/src/gr.cc:1058:39: style:inconclusive: Function 'gr_hsv2rgb' argument 3 names different: declaration 'br' definition 'v'. [funcArgNamesDifferent] gri-2.12.27/src/gr.hh:274:55: note: Function 'gr_hsv2rgb' argument 3 names different: declaration 'br' definition 'v'. gri-2.12.27/src/gr.cc:1058:39: note: Function 'gr_hsv2rgb' argument 3 names different: declaration 'br' definition 'v'. gri-2.12.27/src/gr.cc:1450:29: style:inconclusive: Function 'gr_set_missing_value' argument 1 names different: declaration 'missingvalue' definition 'x'. [funcArgNamesDifferent] gri-2.12.27/src/gr.hh:304:45: note: Function 'gr_set_missing_value' argument 1 names different: declaration 'missingvalue' definition 'x'. gri-2.12.27/src/gr.cc:1450:29: note: Function 'gr_set_missing_value' argument 1 names different: declaration 'missingvalue' definition 'x'. gri-2.12.27/src/gr.cc:1515:25: style:inconclusive: Function 'gr_setticsize_cm' argument 1 names different: declaration 'newsize_cm' definition 'new_size'. [funcArgNamesDifferent] gri-2.12.27/src/gr.hh:310:41: note: Function 'gr_setticsize_cm' argument 1 names different: declaration 'newsize_cm' definition 'new_size'. gri-2.12.27/src/gr.cc:1515:25: note: Function 'gr_setticsize_cm' argument 1 names different: declaration 'newsize_cm' definition 'new_size'. gri-2.12.27/src/gr.cc:599:16: style: Local variable '_grPS' shadows outer variable [shadowVariable] gri-2.12.27/src/gr.cc:162:17: note: Shadowed declaration gri-2.12.27/src/gr.cc:599:16: note: Shadow variable gri-2.12.27/src/gr.cc:906:14: style: Local variable '_drawingstarted' shadows outer variable [shadowVariable] gri-2.12.27/src/gr.cc:67:17: note: Shadowed declaration gri-2.12.27/src/gr.cc:906:14: note: Shadow variable gri-2.12.27/src/gr.cc:913:19: style: Local variable '_grNeedBegin' shadows outer variable [shadowVariable] gri-2.12.27/src/gr.cc:157:17: note: Shadowed declaration gri-2.12.27/src/gr.cc:913:19: note: Shadow variable gri-2.12.27/src/gr.cc:914:19: style: Local variable '_grPathExists' shadows outer variable [shadowVariable] gri-2.12.27/src/gr.cc:158:17: note: Shadowed declaration gri-2.12.27/src/gr.cc:914:19: note: Shadow variable gri-2.12.27/src/gr.cc:915:19: style: Local variable '_grPS' shadows outer variable [shadowVariable] gri-2.12.27/src/gr.cc:162:17: note: Shadowed declaration gri-2.12.27/src/gr.cc:915:19: note: Shadow variable gri-2.12.27/src/gr.cc:1136:28: style: Local variable '_grTransform_x' shadows outer variable [shadowVariable] gri-2.12.27/src/gr.cc:146:20: note: Shadowed declaration gri-2.12.27/src/gr.cc:1136:28: note: Shadow variable gri-2.12.27/src/gr.cc:1154:28: style: Local variable '_grTransform_y' shadows outer variable [shadowVariable] gri-2.12.27/src/gr.cc:147:20: note: Shadowed declaration gri-2.12.27/src/gr.cc:1154:28: note: Shadow variable gri-2.12.27/src/gr.cc:1174:18: style: Local variable '_grPS' shadows outer variable [shadowVariable] gri-2.12.27/src/gr.cc:162:17: note: Shadowed declaration gri-2.12.27/src/gr.cc:1174:18: note: Shadow variable gri-2.12.27/src/gr.cc:1314:18: style: Local variable '_grPS' shadows outer variable [shadowVariable] gri-2.12.27/src/gr.cc:162:17: note: Shadowed declaration gri-2.12.27/src/gr.cc:1314:18: note: Shadow variable gri-2.12.27/src/gr.cc:1232:20: style: Parameter 'R' can be declared as const array [constParameter] gri-2.12.27/src/gr.cc:1232:32: style: Parameter 'G' can be declared as const array [constParameter] gri-2.12.27/src/gr.cc:1232:44: style: Parameter 'B' can be declared as const array [constParameter] gri-2.12.27/src/convert.cc:1132:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] gri-2.12.27/src/convert.cc:255:6: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:260:6: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:273:7: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:288:7: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:376:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/convert.cc:376:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/convert.cc:782:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/convert.cc:782:4: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/convert.cc:1153:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:1159:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:1160:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:1161:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:1162:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:1514:17: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/convert.cc:1514:17: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/convert.cc:1781:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:1786:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:1850:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:1855:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/convert.cc:2051:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/convert.cc:2181:2: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/convert.cc:2181:2: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/convert.cc:1198:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/convert.cc:1200:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/convert.cc:1202:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/convert.cc:1217:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/convert.cc:1219:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/convert.cc:1310:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/convert.cc:1778:18: style: The scope of the variable 'xx' can be reduced. [variableScope] gri-2.12.27/src/convert.cc:1925:10: style: The scope of the variable 'w' can be reduced. [variableScope] gri-2.12.27/src/convert.cc:645:16: style:inconclusive: Function 'tautsp' argument 1 names different: declaration 'x' definition 'tau'. [funcArgNamesDifferent] gri-2.12.27/src/convert.cc:121:20: note: Function 'tautsp' argument 1 names different: declaration 'x' definition 'tau'. gri-2.12.27/src/convert.cc:645:16: note: Function 'tautsp' argument 1 names different: declaration 'x' definition 'tau'. gri-2.12.27/src/convert.cc:646:16: style:inconclusive: Function 'tautsp' argument 2 names different: declaration 'y' definition 'gtau'. [funcArgNamesDifferent] gri-2.12.27/src/convert.cc:121:31: note: Function 'tautsp' argument 2 names different: declaration 'y' definition 'gtau'. gri-2.12.27/src/convert.cc:646:16: note: Function 'tautsp' argument 2 names different: declaration 'y' definition 'gtau'. gri-2.12.27/src/convert.cc:647:21: style:inconclusive: Function 'tautsp' argument 3 names different: declaration 'n' definition 'ntau'. [funcArgNamesDifferent] gri-2.12.27/src/convert.cc:121:47: note: Function 'tautsp' argument 3 names different: declaration 'n' definition 'ntau'. gri-2.12.27/src/convert.cc:647:21: note: Function 'tautsp' argument 3 names different: declaration 'n' definition 'ntau'. gri-2.12.27/src/convert.cc:649:16: style:inconclusive: Function 'tautsp' argument 5 names different: declaration 'scrtch' definition 's'. [funcArgNamesDifferent] gri-2.12.27/src/convert.cc:121:73: note: Function 'tautsp' argument 5 names different: declaration 'scrtch' definition 's'. gri-2.12.27/src/convert.cc:649:16: note: Function 'tautsp' argument 5 names different: declaration 'scrtch' definition 's'. gri-2.12.27/src/convert.cc:1843:36: style:inconclusive: Function 'create_grid_boxcarCmd' argument 3 names different: declaration 'x' definition 'xgood'. [funcArgNamesDifferent] gri-2.12.27/src/convert.cc:94:33: note: Function 'create_grid_boxcarCmd' argument 3 names different: declaration 'x' definition 'xgood'. gri-2.12.27/src/convert.cc:1843:36: note: Function 'create_grid_boxcarCmd' argument 3 names different: declaration 'x' definition 'xgood'. gri-2.12.27/src/convert.cc:1844:36: style:inconclusive: Function 'create_grid_boxcarCmd' argument 4 names different: declaration 'y' definition 'ygood'. [funcArgNamesDifferent] gri-2.12.27/src/convert.cc:95:33: note: Function 'create_grid_boxcarCmd' argument 4 names different: declaration 'y' definition 'ygood'. gri-2.12.27/src/convert.cc:1844:36: note: Function 'create_grid_boxcarCmd' argument 4 names different: declaration 'y' definition 'ygood'. gri-2.12.27/src/convert.cc:1845:36: style:inconclusive: Function 'create_grid_boxcarCmd' argument 5 names different: declaration 'z' definition 'zgood'. [funcArgNamesDifferent] gri-2.12.27/src/convert.cc:96:33: note: Function 'create_grid_boxcarCmd' argument 5 names different: declaration 'z' definition 'zgood'. gri-2.12.27/src/convert.cc:1845:36: note: Function 'create_grid_boxcarCmd' argument 5 names different: declaration 'z' definition 'zgood'. gri-2.12.27/src/convert.cc:394:16: style: Local variable 'num' shadows outer variable [shadowVariable] gri-2.12.27/src/convert.cc:210:15: note: Shadowed declaration gri-2.12.27/src/convert.cc:394:16: note: Shadow variable gri-2.12.27/src/convert.cc:419:29: style: Parameter 'lxt' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/convert.cc:419:42: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/convert.cc:570:13: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/convert.cc:571:13: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/convert.cc:573:13: style: Parameter 'jderiv' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/convert.cc:648:16: style: Parameter 'gamma' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/convert.cc:1257:26: style: Parameter 'g' can be declared as const array [constParameter] gri-2.12.27/src/convert.cc:2135:7: style: Variable 'xr2' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/convert.cc:2136:7: style: Variable 'yr2' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/convert.cc:2155:8: style: Variable 'xr2' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/convert.cc:2156:8: style: Variable 'yr2' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/DataFile.hh:36:32: style: Local variable '_cmdFILE' shadows outer variable [shadowVariable] gri-2.12.27/src/gri.cc:63:27: note: Shadowed declaration gri-2.12.27/src/DataFile.hh:36:32: note: Shadow variable gri-2.12.27/src/graxes.cc:307:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gri-2.12.27/src/graxes.cc:605:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gri-2.12.27/src/grcntour.cc:87:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:137:15: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:138:15: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:293:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:399:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:518:16: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:520:18: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:521:18: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:532:54: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:534:70: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:537:70: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:540:52: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:542:80: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:755:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:758:14: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:770:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:776:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/grcntour.cc:288:19: style: The scope of the variable 'flag_is_set' can be reduced. [variableScope] gri-2.12.27/src/grcntour.cc:330:18: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/grcntour.cc:330:25: style: The scope of the variable 'j' can be reduced. [variableScope] gri-2.12.27/src/grcntour.cc:332:18: style: The scope of the variable 'locate' can be reduced. [variableScope] gri-2.12.27/src/grcntour.cc:591:18: style: The scope of the variable 'first_label' can be reduced. [variableScope] gri-2.12.27/src/grcntour.cc:595:18: style: The scope of the variable 'cumdist' can be reduced. [variableScope] gri-2.12.27/src/grcntour.cc:597:18: style: The scope of the variable 'angle' can be reduced. [variableScope] gri-2.12.27/src/grcntour.cc:129:21: style:inconclusive: Function 'gr_contour' argument 13 names different: declaration 'text_color' definition 'label_color'. [funcArgNamesDifferent] gri-2.12.27/src/gr.hh:226:23: note: Function 'gr_contour' argument 13 names different: declaration 'text_color' definition 'label_color'. gri-2.12.27/src/grcntour.cc:129:21: note: Function 'gr_contour' argument 13 names different: declaration 'text_color' definition 'label_color'. gri-2.12.27/src/grcntour.cc:323:37: style: Parameter 'z' can be declared as reference to const [constParameterReference] gri-2.12.27/src/grcntour.cc:324:35: style: Parameter 'legit' can be declared as reference to const [constParameterReference] gri-2.12.27/src/grcntour.cc:335:18: style: Variable 'i_test' can be declared as const array [constVariable] gri-2.12.27/src/grcntour.cc:340:18: style: Variable 'j_test' can be declared as const array [constVariable] gri-2.12.27/src/grcntour.cc:346:18: style: Variable 'dtest' can be declared as const array [constVariable] gri-2.12.27/src/grinterp.cc:109:8: style: Checking if unsigned expression 'n' is less than zero. [unsignedLessThanZero] gri-2.12.27/src/grinterp.cc:93:10: style:inconclusive: Function 'gr_grid1' argument 6 names different: declaration 'xRadius' definition 'xr'. [funcArgNamesDifferent] gri-2.12.27/src/gr.hh:266:12: note: Function 'gr_grid1' argument 6 names different: declaration 'xRadius' definition 'xr'. gri-2.12.27/src/grinterp.cc:93:10: note: Function 'gr_grid1' argument 6 names different: declaration 'xRadius' definition 'xr'. gri-2.12.27/src/grinterp.cc:93:21: style:inconclusive: Function 'gr_grid1' argument 7 names different: declaration 'yRadius' definition 'yr'. [funcArgNamesDifferent] gri-2.12.27/src/gr.hh:267:12: note: Function 'gr_grid1' argument 7 names different: declaration 'yRadius' definition 'yr'. gri-2.12.27/src/grinterp.cc:93:21: note: Function 'gr_grid1' argument 7 names different: declaration 'yRadius' definition 'yr'. gri-2.12.27/src/grimage.cc:178:13: style: Condition 'ihigh0' is always true [knownConditionTrueFalse] gri-2.12.27/src/show.cc:295:14: note: Assuming that condition 'xlength<1' is not redundant gri-2.12.27/src/show.cc:314:15: note: Condition 'xlength>0' is always true gri-2.12.27/src/show.cc:433:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:573:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:588:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:628:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:628:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:650:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:738:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:738:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:761:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:761:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/show.cc:79:13: warning: Either the condition '!s' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] gri-2.12.27/src/show.cc:78:9: note: Assuming that condition '!s' is not redundant gri-2.12.27/src/show.cc:79:13: note: Null pointer dereference gri-2.12.27/src/show.cc:80:9: warning: Either the condition '!s' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] gri-2.12.27/src/show.cc:78:9: note: Assuming that condition '!s' is not redundant gri-2.12.27/src/show.cc:80:9: note: Null pointer addition gri-2.12.27/src/show.cc:78:13: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/show.cc:638:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/show.cc:293:18: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/show.cc:300:15: style: The scope of the variable 'length' can be reduced. [variableScope] gri-2.12.27/src/show.cc:180:21: style: Local variable '_lib_directory' shadows outer variable [shadowVariable] gri-2.12.27/src/extern.hh:139:22: note: Shadowed declaration gri-2.12.27/src/show.cc:180:21: note: Shadow variable gri-2.12.27/src/show.cc:340:11: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/show.cc:305:15: note: Shadowed declaration gri-2.12.27/src/show.cc:340:11: note: Shadow variable gri-2.12.27/src/set.cc:2033:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inside [valueFlowBailoutIncompleteVar] gri-2.12.27/src/show.cc:181:14: performance: Constructing a std::string from the result of c_str() is slow and redundant. [stlcstrConstructor] gri-2.12.27/src/rpncalc.cc:313:40: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/rpncalc.cc:320:36: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/rpncalc.cc:338:33: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/rpncalc.cc:470:37: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/rpncalc.cc:478:39: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/rpncalc.cc:1418:13: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/rpncalc.cc:1422:51: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/rpncalc.cc:1534:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/rpncalc.cc:2131:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/rpncalc.cc:1138:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:1410:5: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:1819:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:1875:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:1935:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:1970:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:1992:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:2016:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:2038:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:2060:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:2082:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:2104:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:2126:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/rpncalc.cc:293:18: style: The scope of the variable 'oper' can be reduced. [variableScope] gri-2.12.27/src/rpncalc.cc:468:15: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/rpncalc.cc:2146:19: style: The scope of the variable 'str' can be reduced. [variableScope] gri-2.12.27/src/rpncalc.cc:434:35: style:inconclusive: Function 'is_operand' argument 2 names different: declaration 'operand' definition 'operand_value'. [funcArgNamesDifferent] gri-2.12.27/src/rpncalc.cc:276:55: note: Function 'is_operand' argument 2 names different: declaration 'operand' definition 'operand_value'. gri-2.12.27/src/rpncalc.cc:434:35: note: Function 'is_operand' argument 2 names different: declaration 'operand' definition 'operand_value'. gri-2.12.27/src/rpncalc.cc:489:32: style:inconclusive: Function 'rpn_which_function' argument 1 names different: declaration 'w' definition 'name'. [funcArgNamesDifferent] gri-2.12.27/src/rpncalc.cc:278:52: note: Function 'rpn_which_function' argument 1 names different: declaration 'w' definition 'name'. gri-2.12.27/src/rpncalc.cc:489:32: note: Function 'rpn_which_function' argument 1 names different: declaration 'w' definition 'name'. gri-2.12.27/src/rpncalc.cc:1303:15: style: Local variable 'res' shadows outer variable [shadowVariable] gri-2.12.27/src/rpncalc.cc:678:9: note: Shadowed declaration gri-2.12.27/src/rpncalc.cc:1303:15: note: Shadow variable gri-2.12.27/src/rpncalc.cc:1539:13: style: Local variable 'res' shadows outer variable [shadowVariable] gri-2.12.27/src/rpncalc.cc:678:9: note: Shadowed declaration gri-2.12.27/src/rpncalc.cc:1539:13: note: Shadow variable gri-2.12.27/src/rpncalc.cc:466:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/rpncalc.cc:466:39: style: Parameter 'w' can be declared as const array [constParameter] gri-2.12.27/src/rpncalc.cc:1136:8: style: Variable 'res' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/skip.cc:97:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/skip.cc:59:21: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/skip.cc:37:19: note: Shadowed declaration gri-2.12.27/src/skip.cc:59:21: note: Shadow variable gri-2.12.27/src/source.cc:77:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cl [valueFlowBailoutIncompleteVar] gri-2.12.27/src/smooth.cc:100:11: style: Condition '0<(1+(i+j))' is always true [knownConditionTrueFalse] gri-2.12.27/src/smooth.cc:170:11: style: Condition '0<(1+(i+j))' is always true [knownConditionTrueFalse] gri-2.12.27/src/smooth.cc:99:12: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/smooth.cc:80:19: note: Shadowed declaration gri-2.12.27/src/smooth.cc:99:12: note: Shadow variable gri-2.12.27/src/smooth.cc:169:12: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/smooth.cc:150:19: note: Shadowed declaration gri-2.12.27/src/smooth.cc:169:12: note: Shadow variable gri-2.12.27/src/startup.cc:279:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gri-2.12.27/src/startup.cc:932:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_GRI_DIR [valueFlowBailoutIncompleteVar] gri-2.12.27/src/stats.cc:77:16: style:inconclusive: Function 'histogram_stats' argument 2 names different: declaration 'nx' definition 'n'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:164:63: note: Function 'histogram_stats' argument 2 names different: declaration 'nx' definition 'n'. gri-2.12.27/src/stats.cc:77:16: note: Function 'histogram_stats' argument 2 names different: declaration 'nx' definition 'n'. gri-2.12.27/src/stats.cc:61:17: style: Variable 'p' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/storage.cc:36:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:37:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:38:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:39:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:40:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:62:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:63:21: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:94:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:95:25: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:132:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:151:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/storage.cc:122:30: style:inconclusive: Function 'allocate_xmatrix_storage' argument 1 names different: declaration 'n' definition 'cols'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:72:46: note: Function 'allocate_xmatrix_storage' argument 1 names different: declaration 'n' definition 'cols'. gri-2.12.27/src/storage.cc:122:30: note: Function 'allocate_xmatrix_storage' argument 1 names different: declaration 'n' definition 'cols'. gri-2.12.27/src/storage.cc:141:30: style:inconclusive: Function 'allocate_ymatrix_storage' argument 1 names different: declaration 'n' definition 'rows'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:73:46: note: Function 'allocate_ymatrix_storage' argument 1 names different: declaration 'n' definition 'rows'. gri-2.12.27/src/storage.cc:141:30: note: Function 'allocate_ymatrix_storage' argument 1 names different: declaration 'n' definition 'rows'. gri-2.12.27/src/synonyms.cc:694:8: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] gri-2.12.27/src/synonyms.cc:928:9: warning: Identical condition 'c=='>'', second condition is always false [identicalConditionAfterEarlyExit] gri-2.12.27/src/synonyms.cc:926:9: note: If condition 'c=='>'' is true, the function will return/exit gri-2.12.27/src/synonyms.cc:928:9: note: Testing identical condition 'c=='>'' gri-2.12.27/src/synonyms.cc:266:6: style: Condition '!put_syn("\\.readfrom_file.",_dataFILE.back().get_name(),true)' is always false [knownConditionTrueFalse] gri-2.12.27/src/synonyms.cc:266:14: note: Calling function 'put_syn' returns 1 gri-2.12.27/src/synonyms.cc:266:6: note: Condition '!put_syn("\\.readfrom_file.",_dataFILE.back().get_name(),true)' is always false gri-2.12.27/src/synonyms.cc:296:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/synonyms.cc:415:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/synonyms.cc:435:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/synonyms.cc:519:10: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/synonyms.cc:521:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/synonyms.cc:526:11: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/synonyms.cc:528:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/synonyms.cc:673:12: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/synonyms.cc:674:16: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/synonyms.cc:859:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/synonyms.cc:242:6: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/synonyms.cc:789:16: style: The scope of the variable 'alias_value' can be reduced. [variableScope] gri-2.12.27/src/synonyms.cc:324:52: style:inconclusive: Function 'get_syn' argument 3 names different: declaration 'do_encoding' definition 'do_decoding'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:150:68: note: Function 'get_syn' argument 3 names different: declaration 'do_encoding' definition 'do_decoding'. gri-2.12.27/src/synonyms.cc:324:52: note: Function 'get_syn' argument 3 names different: declaration 'do_encoding' definition 'do_decoding'. gri-2.12.27/src/synonyms.cc:875:65: style:inconclusive: Function 'find_synonym_name' argument 3 names different: declaration 'in_math' definition 'inmath'. [funcArgNamesDifferent] gri-2.12.27/src/synonyms.cc:35:76: note: Function 'find_synonym_name' argument 3 names different: declaration 'in_math' definition 'inmath'. gri-2.12.27/src/synonyms.cc:875:65: note: Function 'find_synonym_name' argument 3 names different: declaration 'in_math' definition 'inmath'. gri-2.12.27/src/set.cc:1370:6: warning: Either the condition 'i>=100' is redundant or the array 'flag[100]' is accessed at index 100, which is out of bounds. [arrayIndexOutOfBoundsCond] gri-2.12.27/src/set.cc:1368:8: note: Assuming that condition 'i>=100' is not redundant gri-2.12.27/src/set.cc:1369:14: note: Assignment 'num_flags=i', assigned value is 100 gri-2.12.27/src/set.cc:1370:6: note: Array index out of bounds gri-2.12.27/src/set.cc:1371:6: warning: Either the condition 'i>=100' is redundant or the array 'flag[100]' is accessed at index 100, which is out of bounds. [arrayIndexOutOfBoundsCond] gri-2.12.27/src/set.cc:1368:8: note: Assuming that condition 'i>=100' is not redundant gri-2.12.27/src/set.cc:1369:14: note: Assignment 'num_flags=i', assigned value is 100 gri-2.12.27/src/set.cc:1371:6: note: Array index out of bounds gri-2.12.27/src/set.cc:2092:8: style: Condition '!mask_an_island(_colX.begin()+start,_colY.begin()+start,i-start)' is always false [knownConditionTrueFalse] gri-2.12.27/src/set.cc:2092:23: note: Calling function 'mask_an_island' returns 1 gri-2.12.27/src/set.cc:2092:8: note: Condition '!mask_an_island(_colX.begin()+start,_colY.begin()+start,i-start)' is always false gri-2.12.27/src/set.cc:126:5: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:238:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:439:6: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:446:6: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:453:6: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:460:6: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:533:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:534:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:535:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:551:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:552:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:553:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:588:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:589:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:590:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:593:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:594:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:595:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:818:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:819:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:820:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:850:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:851:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:852:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:1023:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:1284:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:1302:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:1303:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:1432:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:1934:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:1935:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:1936:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:2205:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:2226:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:2394:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:2646:2: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:2825:6: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:2852:25: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:2908:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:2939:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:2978:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3062:2: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3063:2: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3079:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3092:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/set.cc:3132:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3137:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3157:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3173:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/set.cc:3292:2: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3321:6: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3347:25: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3682:2: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:3833:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/set.cc:1368:18: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/set.cc:2511:16: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/set.cc:2513:16: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/set.cc:3875:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/set.cc:4051:51: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/set.cc:134:16: style: Variable '_axes_offset' is reassigned a value before the old one has been used. [redundantAssignment] gri-2.12.27/src/set.cc:129:17: note: _axes_offset is assigned gri-2.12.27/src/set.cc:134:16: note: _axes_offset is overwritten gri-2.12.27/src/set.cc:3168:5: style: Variable 'ny' is reassigned a value before the old one has been used. [redundantAssignment] gri-2.12.27/src/set.cc:3152:6: note: ny is assigned gri-2.12.27/src/set.cc:3168:5: note: ny is overwritten gri-2.12.27/src/set.cc:2956:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] gri-2.12.27/src/set.cc:2959:5: note: Found duplicate branches for 'if' and 'else'. gri-2.12.27/src/set.cc:2956:3: note: Found duplicate branches for 'if' and 'else'. gri-2.12.27/src/set.cc:3477:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] gri-2.12.27/src/set.cc:3480:5: note: Found duplicate branches for 'if' and 'else'. gri-2.12.27/src/set.cc:3477:3: note: Found duplicate branches for 'if' and 'else'. gri-2.12.27/src/set.cc:1010:3: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] gri-2.12.27/src/set.cc:1017:3: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] gri-2.12.27/src/set.cc:2832:6: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/set.cc:3328:6: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/set.cc:3554:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/set.cc:3564:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/set.cc:3866:0: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/set.cc:1477:28: style: The scope of the variable 'h' can be reduced. [variableScope] gri-2.12.27/src/set.cc:1477:31: style: The scope of the variable 's' can be reduced. [variableScope] gri-2.12.27/src/set.cc:1477:34: style: The scope of the variable 'br' can be reduced. [variableScope] gri-2.12.27/src/set.cc:1743:17: style: The scope of the variable 'valTmp' can be reduced. [variableScope] gri-2.12.27/src/set.cc:1848:18: style: The scope of the variable 'wh' can be reduced. [variableScope] gri-2.12.27/src/set.cc:1848:22: style: The scope of the variable 'bl' can be reduced. [variableScope] gri-2.12.27/src/set.cc:123:19: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:123:19: note: Shadow variable gri-2.12.27/src/set.cc:236:9: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:236:9: note: Shadow variable gri-2.12.27/src/set.cc:1082:11: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:1082:11: note: Shadow variable gri-2.12.27/src/set.cc:1387:14: style: Local variable '_grTempString' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:36:17: note: Shadowed declaration gri-2.12.27/src/set.cc:1387:14: note: Shadow variable gri-2.12.27/src/set.cc:1422:18: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:1422:18: note: Shadow variable gri-2.12.27/src/set.cc:1976:24: style: Local variable 'tmp2' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:22: note: Shadowed declaration gri-2.12.27/src/set.cc:1976:24: note: Shadow variable gri-2.12.27/src/set.cc:2203:9: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:2203:9: note: Shadow variable gri-2.12.27/src/set.cc:2224:9: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:2224:9: note: Shadow variable gri-2.12.27/src/set.cc:2378:18: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:2378:18: note: Shadow variable gri-2.12.27/src/set.cc:2386:10: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:2378:18: note: Shadowed declaration gri-2.12.27/src/set.cc:2386:10: note: Shadow variable gri-2.12.27/src/set.cc:2823:12: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:2823:12: note: Shadow variable gri-2.12.27/src/set.cc:3054:33: style: Local variable 'xinc' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:57:32: note: Shadowed declaration gri-2.12.27/src/set.cc:3054:33: note: Shadow variable gri-2.12.27/src/set.cc:3123:33: style: Local variable 'yinc' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:57:53: note: Shadowed declaration gri-2.12.27/src/set.cc:3123:33: note: Shadow variable gri-2.12.27/src/set.cc:3319:12: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:3319:12: note: Shadow variable gri-2.12.27/src/set.cc:3372:11: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:3372:11: note: Shadow variable gri-2.12.27/src/set.cc:3386:20: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:3386:20: note: Shadow variable gri-2.12.27/src/set.cc:3831:10: style: Local variable 'tmp' shadows outer variable [shadowVariable] gri-2.12.27/src/set.cc:58:17: note: Shadowed declaration gri-2.12.27/src/set.cc:3831:10: note: Shadow variable gri-2.12.27/src/set.cc:1100:39: performance: Function parameter 'dash' should be passed by const reference. [passedByValue] gri-2.12.27/src/set.cc:376:11: style: Variable 'xp' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/set.cc:377:11: style: Variable 'yp' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/set.cc:2110:24: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/set.cc:2110:35: style: Parameter 'y' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/timer.cc:63:9: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] gri-2.12.27/src/timer.cc:63:17: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gri-2.12.27/src/GriTimer.hh:28:8: performance:inconclusive: Technically the member function 'GriTimer::now_ascii' can be static (but you may consider moving to unnamed namespace). [functionStatic] gri-2.12.27/src/timer.cc:59:17: note: Technically the member function 'GriTimer::now_ascii' can be static (but you may consider moving to unnamed namespace). gri-2.12.27/src/GriTimer.hh:28:8: note: Technically the member function 'GriTimer::now_ascii' can be static (but you may consider moving to unnamed namespace). gri-2.12.27/src/GriTimer.hh:29:9: style:inconclusive: Technically the member function 'GriTimer::elapsed_time' can be const. [functionConst] gri-2.12.27/src/timer.cc:65:18: note: Technically the member function 'GriTimer::elapsed_time' can be const. gri-2.12.27/src/GriTimer.hh:29:9: note: Technically the member function 'GriTimer::elapsed_time' can be const. gri-2.12.27/src/utility.cc:592:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gri-2.12.27/src/utility.cc:651:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] gri-2.12.27/src/utility.cc:1500:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gri-2.12.27/src/utility.cc:1733:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] gri-2.12.27/src/utility.cc:2417:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] gri-2.12.27/src/variable.cc:217:19: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/variable.cc:243:18: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/variable.cc:127:20: style:inconclusive: Function 'is_var' argument 1 names different: declaration 'name' definition 'w'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:186:36: note: Function 'is_var' argument 1 names different: declaration 'name' definition 'w'. gri-2.12.27/src/variable.cc:127:20: note: Function 'is_var' argument 1 names different: declaration 'name' definition 'w'. gri-2.12.27/src/variable.cc:134:27: style:inconclusive: Function 'is_var' argument 1 names different: declaration 'name' definition 'w'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:187:43: note: Function 'is_var' argument 1 names different: declaration 'name' definition 'w'. gri-2.12.27/src/variable.cc:134:27: note: Function 'is_var' argument 1 names different: declaration 'name' definition 'w'. gri-2.12.27/src/variable.cc:89:15: style: Local variable 'n' shadows outer variable [shadowVariable] gri-2.12.27/src/variable.cc:87:6: note: Shadowed declaration gri-2.12.27/src/variable.cc:89:15: note: Shadow variable gri-2.12.27/src/while.cc:59:11: warning: Either the condition '!copy' is redundant or there is possible null pointer dereference: copy. [nullPointerRedundantCheck] gri-2.12.27/src/while.cc:58:8: note: Assuming that condition '!copy' is not redundant gri-2.12.27/src/while.cc:59:11: note: Null pointer dereference gri-2.12.27/src/while.cc:60:21: warning: Either the condition '!copy' is redundant or there is possible null pointer dereference: copy. [nullPointerRedundantCheck] gri-2.12.27/src/while.cc:58:8: note: Assuming that condition '!copy' is not redundant gri-2.12.27/src/while.cc:60:21: note: Null pointer dereference gri-2.12.27/src/while.cc:57:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/while.cc:58:15: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:330:32: style: Obsolete function 'std::asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] gri-2.12.27/src/startup.cc:330:40: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gri-2.12.27/src/startup.cc:627:24: style: Obsolete function 'std::asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] gri-2.12.27/src/startup.cc:627:32: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gri-2.12.27/src/startup.cc:1078:8: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/startup.cc:258:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:261:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:615:46: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:617:50: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:620:48: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:623:36: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:629:49: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:633:41: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:635:46: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:646:45: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:651:41: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:653:48: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:658:41: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:660:46: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/startup.cc:505:26: style:inconclusive: Function 'get_input_simulation' argument 1 names different: declaration 'argc' definition 'argc_leftover'. [funcArgNamesDifferent] gri-2.12.27/src/startup.cc:108:42: note: Function 'get_input_simulation' argument 1 names different: declaration 'argc' definition 'argc_leftover'. gri-2.12.27/src/startup.cc:505:26: note: Function 'get_input_simulation' argument 1 names different: declaration 'argc' definition 'argc_leftover'. gri-2.12.27/src/startup.cc:505:53: style:inconclusive: Function 'get_input_simulation' argument 2 names different: declaration 'argv' definition 'argv_leftover'. [funcArgNamesDifferent] gri-2.12.27/src/startup.cc:108:60: note: Function 'get_input_simulation' argument 2 names different: declaration 'argv' definition 'argv_leftover'. gri-2.12.27/src/startup.cc:505:53: note: Function 'get_input_simulation' argument 2 names different: declaration 'argv' definition 'argv_leftover'. gri-2.12.27/src/startup.cc:610:20: style: Variable 'user' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/startup.cc:611:20: style: Variable 'os' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/startup.cc:612:20: style: Variable 'wd' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/startup.cc:613:20: style: Variable 'home' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/write.cc:61:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gri-2.12.27/src/write.cc:177:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gri-2.12.27/src/write.cc:253:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gri-2.12.27/src/write.cc:303:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gri-2.12.27/src/write.cc:372:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gri-2.12.27/src/write.cc:434:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gri-2.12.27/src/write.cc:464:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gri-2.12.27/src/write.cc:311:49: style: Condition '_num_xmatrix_data<1' is always false [knownConditionTrueFalse] gri-2.12.27/src/write.cc:311:24: note: Assuming that condition '_num_xmatrix_data<1' is not redundant gri-2.12.27/src/write.cc:311:49: note: Condition '_num_xmatrix_data<1' is always false gri-2.12.27/src/write.cc:365:49: style: Condition '_num_xmatrix_data<1' is always false [knownConditionTrueFalse] gri-2.12.27/src/write.cc:365:24: note: Assuming that condition '_num_xmatrix_data<1' is not redundant gri-2.12.27/src/write.cc:365:49: note: Condition '_num_xmatrix_data<1' is always false gri-2.12.27/src/write.cc:327:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/write.cc:327:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/write.cc:407:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/write.cc:407:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/write.cc:104:9: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:105:9: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:106:9: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:107:9: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:108:9: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:109:9: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:110:9: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:111:9: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:333:12: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:337:12: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:342:12: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:346:12: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:412:11: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:415:11: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/write.cc:311:28: style: Same expression on both sides of '||'. [duplicateExpression] gri-2.12.27/src/write.cc:365:28: style: Same expression on both sides of '||'. [duplicateExpression] gri-2.12.27/src/write.cc:119:18: style: The scope of the variable 'image_type' can be reduced. [variableScope] gri-2.12.27/src/write.cc:424:24: style: Local variable '_imageTransform' shadows outer variable [shadowVariable] gri-2.12.27/src/image_ex.hh:34:23: note: Shadowed declaration gri-2.12.27/src/write.cc:424:24: note: Shadow variable gri-2.12.27/src/write.cc:454:24: style: Local variable '_imageTransform' shadows outer variable [shadowVariable] gri-2.12.27/src/image_ex.hh:34:23: note: Shadowed declaration gri-2.12.27/src/write.cc:454:24: note: Shadow variable gri-2.12.27/src/write.cc:102:26: performance: Function parameter 'im' should be passed by const reference. [passedByValue] gri-2.12.27/src/write.cc:120:20: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/utility.cc:596:15: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] gri-2.12.27/src/utility.cc:655:15: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] gri-2.12.27/src/utility.cc:575:18: style: Condition 'c=='<'' is always false [knownConditionTrueFalse] gri-2.12.27/src/utility.cc:1461:11: style: Condition 's[i]=='\0'' is always true [knownConditionTrueFalse] gri-2.12.27/src/utility.cc:1442:14: note: Assuming that condition 's[i]!='\0'' is not redundant gri-2.12.27/src/utility.cc:1461:11: note: Condition 's[i]=='\0'' is always true gri-2.12.27/src/utility.cc:432:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/utility.cc:1250:33: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/utility.cc:1251:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/utility.cc:1363:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/utility.cc:1393:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/utility.cc:232:11: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gri-2.12.27/src/utility.cc:1360:14: warning: Either the condition 's!=NULL' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] gri-2.12.27/src/utility.cc:1370:8: note: Assuming that condition 's!=NULL' is not redundant gri-2.12.27/src/utility.cc:1360:14: note: Null pointer dereference gri-2.12.27/src/utility.cc:531:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/utility.cc:537:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/utility.cc:988:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/utility.cc:2482:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] gri-2.12.27/src/utility.cc:2485:4: note: Found duplicate branches for 'if' and 'else'. gri-2.12.27/src/utility.cc:2482:9: note: Found duplicate branches for 'if' and 'else'. gri-2.12.27/src/utility.cc:2500:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] gri-2.12.27/src/utility.cc:2503:4: note: Found duplicate branches for 'if' and 'else'. gri-2.12.27/src/utility.cc:2500:9: note: Found duplicate branches for 'if' and 'else'. gri-2.12.27/src/utility.cc:575:13: style: Same expression 'c=='<'' found multiple times in chain of '||' operators. [duplicateExpression] gri-2.12.27/src/utility.cc:2432:4: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/utility.cc:2566:2: style: Statements following 'return' will never be executed. [unreachableCode] gri-2.12.27/src/utility.cc:1212:18: style: The scope of the variable 'several' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1213:18: style: The scope of the variable 'len' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1214:20: style: The scope of the variable 'p' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1215:18: style: The scope of the variable 'ap' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1313:18: style: The scope of the variable 'msg' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1314:18: style: The scope of the variable 'several' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1315:18: style: The scope of the variable 'len' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1316:20: style: The scope of the variable 'p' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1351:23: style: The scope of the variable 'msg_last' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1353:18: style: The scope of the variable 'several' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:1354:18: style: The scope of the variable 'len' can be reduced. [variableScope] gri-2.12.27/src/utility.cc:386:20: style:inconclusive: Function 'quoted' argument 1 names different: declaration 'string' definition 's'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:224:36: note: Function 'quoted' argument 1 names different: declaration 'string' definition 's'. gri-2.12.27/src/utility.cc:386:20: note: Function 'quoted' argument 1 names different: declaration 'string' definition 's'. gri-2.12.27/src/utility.cc:620:31: style:inconclusive: Function 'resolve_filename' argument 1 names different: declaration 'fn' definition 'f'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:230:47: note: Function 'resolve_filename' argument 1 names different: declaration 'fn' definition 'f'. gri-2.12.27/src/utility.cc:620:31: note: Function 'resolve_filename' argument 1 names different: declaration 'fn' definition 'f'. gri-2.12.27/src/utility.cc:620:56: style:inconclusive: Function 'resolve_filename' argument 3 names different: declaration 'd_or_c' definition 'c_or_d'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:230:73: note: Function 'resolve_filename' argument 3 names different: declaration 'd_or_c' definition 'c_or_d'. gri-2.12.27/src/utility.cc:620:56: note: Function 'resolve_filename' argument 3 names different: declaration 'd_or_c' definition 'c_or_d'. gri-2.12.27/src/utility.cc:1033:21: style:inconclusive: Function 'getinum' argument 1 names different: declaration 'snum' definition 's'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:146:37: note: Function 'getinum' argument 1 names different: declaration 'snum' definition 's'. gri-2.12.27/src/utility.cc:1033:21: note: Function 'getinum' argument 1 names different: declaration 'snum' definition 's'. gri-2.12.27/src/utility.cc:1033:29: style:inconclusive: Function 'getinum' argument 2 names different: declaration 'number' definition 'i'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:146:48: note: Function 'getinum' argument 2 names different: declaration 'number' definition 'i'. gri-2.12.27/src/utility.cc:1033:29: note: Function 'getinum' argument 2 names different: declaration 'number' definition 'i'. gri-2.12.27/src/utility.cc:1117:21: style:inconclusive: Function 'getdnum' argument 1 names different: declaration 'snum' definition 's'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:144:37: note: Function 'getdnum' argument 1 names different: declaration 'snum' definition 's'. gri-2.12.27/src/utility.cc:1117:21: note: Function 'getdnum' argument 1 names different: declaration 'snum' definition 's'. gri-2.12.27/src/utility.cc:1117:32: style:inconclusive: Function 'getdnum' argument 2 names different: declaration 'number' definition 'd'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:144:51: note: Function 'getdnum' argument 2 names different: declaration 'number' definition 'd'. gri-2.12.27/src/utility.cc:1117:32: note: Function 'getdnum' argument 2 names different: declaration 'number' definition 'd'. gri-2.12.27/src/utility.cc:1209:23: style:inconclusive: Function 'fatal_err' argument 1 names different: declaration 'string' definition 'str'. [funcArgNamesDifferent] gri-2.12.27/src/errors.hh:28:39: note: Function 'fatal_err' argument 1 names different: declaration 'string' definition 'str'. gri-2.12.27/src/utility.cc:1209:23: note: Function 'fatal_err' argument 1 names different: declaration 'string' definition 'str'. gri-2.12.27/src/utility.cc:1311:17: style:inconclusive: Function 'err' argument 1 names different: declaration 'string' definition 'str'. [funcArgNamesDifferent] gri-2.12.27/src/errors.hh:27:33: note: Function 'err' argument 1 names different: declaration 'string' definition 'str'. gri-2.12.27/src/utility.cc:1311:17: note: Function 'err' argument 1 names different: declaration 'string' definition 'str'. gri-2.12.27/src/utility.cc:1348:21: style:inconclusive: Function 'warning' argument 1 names different: declaration 'string' definition 's'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:278:37: note: Function 'warning' argument 1 names different: declaration 'string' definition 's'. gri-2.12.27/src/utility.cc:1348:21: note: Function 'warning' argument 1 names different: declaration 'string' definition 's'. gri-2.12.27/src/utility.cc:1731:24: style:inconclusive: Function 're_compare' argument 1 names different: declaration 'string' definition 's'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:225:40: note: Function 're_compare' argument 1 names different: declaration 'string' definition 's'. gri-2.12.27/src/utility.cc:1731:24: note: Function 're_compare' argument 1 names different: declaration 'string' definition 's'. gri-2.12.27/src/utility.cc:1991:20: style:inconclusive: Function 'vector_min' argument 1 names different: declaration 'x' definition 'v'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:271:36: note: Function 'vector_min' argument 1 names different: declaration 'x' definition 'v'. gri-2.12.27/src/utility.cc:1991:20: note: Function 'vector_min' argument 1 names different: declaration 'x' definition 'v'. gri-2.12.27/src/utility.cc:2001:20: style:inconclusive: Function 'vector_max' argument 1 names different: declaration 'x' definition 'v'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:272:36: note: Function 'vector_max' argument 1 names different: declaration 'x' definition 'v'. gri-2.12.27/src/utility.cc:2001:20: note: Function 'vector_max' argument 1 names different: declaration 'x' definition 'v'. gri-2.12.27/src/utility.cc:2011:19: style:inconclusive: Function 'set_ps_color' argument 1 names different: declaration 'path_or_text' definition 'what'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:241:35: note: Function 'set_ps_color' argument 1 names different: declaration 'path_or_text' definition 'what'. gri-2.12.27/src/utility.cc:2011:19: note: Function 'set_ps_color' argument 1 names different: declaration 'path_or_text' definition 'what'. gri-2.12.27/src/utility.cc:2312:27: style:inconclusive: Function 'de_reference' argument 1 names different: declaration 'word' definition 'syn'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:116:43: note: Function 'de_reference' argument 1 names different: declaration 'word' definition 'syn'. gri-2.12.27/src/utility.cc:2312:27: note: Function 'de_reference' argument 1 names different: declaration 'word' definition 'syn'. gri-2.12.27/src/utility.cc:2521:28: style:inconclusive: Function 'is_column_name' argument 1 names different: declaration 's' definition 'n'. [funcArgNamesDifferent] gri-2.12.27/src/private.hh:177:44: note: Function 'is_column_name' argument 1 names different: declaration 's' definition 'n'. gri-2.12.27/src/utility.cc:2521:28: note: Function 'is_column_name' argument 1 names different: declaration 's' definition 'n'. gri-2.12.27/src/utility.cc:452:26: style: Local variable '_output_file_type' shadows outer variable [shadowVariable] gri-2.12.27/src/extern.hh:54:25: note: Shadowed declaration gri-2.12.27/src/utility.cc:452:26: note: Shadow variable gri-2.12.27/src/utility.cc:2013:26: style: Local variable '_output_file_type' shadows outer variable [shadowVariable] gri-2.12.27/src/extern.hh:54:25: note: Shadowed declaration gri-2.12.27/src/utility.cc:2013:26: note: Shadow variable gri-2.12.27/src/utility.cc:528:8: style: Variable 'result' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/utility.cc:853:18: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/utility.cc:1214:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/utility.cc:1316:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/utility.cc:1694:8: style: Variable 'pager' can be declared as pointer to const [constVariablePointer] gri-2.12.27/src/utility.cc:1991:20: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/utility.cc:2001:20: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] gri-2.12.27/src/utility.cc:2280:7: warning: Either the condition 'c.size()>0' is redundant or expression 'c[0]' causes access out of bounds. [containerOutOfBounds] gri-2.12.27/src/utility.cc:2275:18: note: Assuming that condition 'c.size()>0' is not redundant gri-2.12.27/src/utility.cc:2280:7: note: Access out of bounds gri-2.12.27/src/read.cc:2106:10: style: Condition 'need_zero_padding' is always true [knownConditionTrueFalse] gri-2.12.27/src/read.cc:2104:6: note: Assuming that condition 'need_zero_padding' is not redundant gri-2.12.27/src/read.cc:2106:10: note: Condition 'need_zero_padding' is always true gri-2.12.27/src/read.cc:169:49: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:330:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/read.cc:478:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:886:5: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/read.cc:895:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:895:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:926:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:970:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1096:5: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/read.cc:1105:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1105:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1136:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1186:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1204:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/read.cc:1211:4: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/read.cc:1262:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1262:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1273:20: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1482:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1482:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1486:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1486:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1495:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1495:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1499:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1499:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1539:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1548:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1558:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1558:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1558:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1562:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1562:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1562:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1602:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1602:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:1913:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2108:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2108:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2108:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2117:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2149:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2200:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/read.cc:2213:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2213:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2213:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2213:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2220:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2220:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2220:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2220:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2250:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2250:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2250:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2250:6: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2257:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2257:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2257:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2257:6: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2266:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2266:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2266:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2266:6: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2275:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2275:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2275:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2275:6: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2284:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2284:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2284:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2284:6: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2293:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2293:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2293:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2293:6: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2298:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2298:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2298:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2298:6: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2461:3: warning: err format string requires 0 parameters but 2 are given. [wrongPrintfScanfArgNum] gri-2.12.27/src/read.cc:2474:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2474:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2474:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2474:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2481:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2481:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2481:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:2481:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gri-2.12.27/src/read.cc:143:39: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gri-2.12.27/src/read.cc:2292:14: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gri-2.12.27/src/read.cc:2509:14: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] gri-2.12.27/src/read.cc:2746:12: warning: Either the condition '!copy' is redundant or there is possible null pointer dereference: copy. [nullPointerRedundantCheck] gri-2.12.27/src/read.cc:2745:9: note: Assuming that condition '!copy' is not redundant gri-2.12.27/src/read.cc:2746:12: note: Null pointer dereference gri-2.12.27/src/read.cc:2747:9: warning: Either the condition '!copy' is redundant or there is possible null pointer dereference: copy. [nullPointerRedundantCheck] gri-2.12.27/src/read.cc:2745:9: note: Assuming that condition '!copy' is not redundant gri-2.12.27/src/read.cc:2747:9: note: Null pointer dereference gri-2.12.27/src/read.cc:327:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:756:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:912:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:919:16: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:920:14: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:923:6: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:971:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1122:4: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1129:16: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1130:14: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1133:6: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1187:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1242:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1245:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1248:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1251:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1254:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1257:5: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1406:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1598:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1603:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1880:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:1912:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2014:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2018:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2022:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2026:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2054:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2068:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2074:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2080:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2086:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2092:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2098:17: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2128:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2134:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2145:2: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2148:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2157:19: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2249:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2256:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2265:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2274:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2283:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2503:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2674:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2676:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2678:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2688:21: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2707:3: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2745:16: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2911:21: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2922:21: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2933:21: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2944:21: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:2955:21: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:3027:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:3038:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:3049:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:3060:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:3071:20: style: C-style pointer casting [cstyleCast] gri-2.12.27/src/read.cc:920:14: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:1130:14: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:1242:19: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:1245:19: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:2274:20: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:2283:20: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:2688:21: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:2944:21: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:2955:21: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:3060:20: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:3071:20: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] gri-2.12.27/src/read.cc:421:5: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/read.cc:2760:5: style: Statements following noreturn function 'err()' will never be executed. [unreachableCode] gri-2.12.27/src/read.cc:134:12: style: The scope of the variable 'num' can be reduced. [variableScope] gri-2.12.27/src/read.cc:135:8: style: The scope of the variable 'name2' can be reduced. [variableScope] gri-2.12.27/src/read.cc:135:20: style: The scope of the variable 'name3' can be reduced. [variableScope] gri-2.12.27/src/read.cc:135:32: style: The scope of the variable 'name4' can be reduced. [variableScope] gri-2.12.27/src/read.cc:136:19: style: The scope of the variable 'line_len' can be reduced. [variableScope] gri-2.12.27/src/read.cc:137:10: style: The scope of the variable 'r' can be reduced. [variableScope] gri-2.12.27/src/read.cc:137:13: style: The scope of the variable 'g' can be reduced. [variableScope] gri-2.12.27/src/read.cc:137:16: style: The scope of the variable 'b' can be reduced. [variableScope] gri-2.12.27/src/read.cc:286:18: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/read.cc:287:18: style: The scope of the variable 'last_point_was_inside' can be reduced. [variableScope] gri-2.12.27/src/read.cc:288:34: style: The scope of the variable 'number_read' can be reduced. [variableScope] gri-2.12.27/src/read.cc:290:18: style: The scope of the variable 'maxCol' can be reduced. [variableScope] gri-2.12.27/src/read.cc:290:26: style: The scope of the variable 'row' can be reduced. [variableScope] gri-2.12.27/src/read.cc:788:15: style: The scope of the variable 'i' can be reduced. [variableScope] gri-2.12.27/src/read.cc:789:15: style: The scope of the variable 'number_to_read' can be reduced. [variableScope] gri-2.12.27/src/read.cc:791:18: style: The scope of the variable 'number_specified' can be reduced. [variableScope] gri-2.12.27/src/read.cc:996:15: style: The scope of the variable 'number_to_read' can be reduced. [variableScope] gri-2.12.27/src/read.cc:998:18: style: The scope of the variable 'number_specified' can be reduced. [variableScope] gri-2.12.27/src/read.cc:947:9: style: Checking if unsigned expression 'i' is less than zero. [unsignedLessThanZero] gri-2.12.27/src/read.cc:1157:9: style: Checking if unsigned expression 'i' is less than zero. [unsignedLessThanZero] gri-2.12.27/src/read.cc:124:17: performance: Assigning the result of c_str() to a std::string is slow and redundant. [stlcstrAssignment] gri-2.12.27/src/read.cc:940:17: style: Variable 'end_of_data' is assigned a value that is never used. [unreadVariable] gri-2.12.27/src/read.cc:1150:17: style: Variable 'end_of_data' is assigned a value that is never used. [unreadVariable] diff: head gri-2.12.27/src/GriColor.cc:118:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rgb [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/GriColor.cc:128:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rgb [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/GriColor.cc:157:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/GriColor.cc:196:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/GriColor.cc:208:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rgb [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/GriColor.cc:49:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/GriColor.cc:77:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/GriPath.cc:111:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/GriPath.cc:152:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/GriPath.cc:211:11: style: Condition '0&&iteration0' is always true [knownConditionTrueFalse] gri-2.12.27/src/show.cc:295:14: note: Assuming that condition 'xlength<1' is not redundant gri-2.12.27/src/show.cc:341:16: note: Condition 'xlength>0' is always true head gri-2.12.27/src/source.cc:77:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cl [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/startup.cc:279:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/startup.cc:932:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_GRI_DIR [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/utility.cc:1500:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/utility.cc:1733:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] 2.13.0 gri-2.12.27/src/utility.cc:1733:7: style: Local variable 'find_target' shadows outer function [shadowFunction] gri-2.12.27/src/utility.cc:1809:1: note: Shadowed declaration gri-2.12.27/src/utility.cc:1733:7: note: Shadow variable 2.13.0 gri-2.12.27/src/utility.cc:2280:7: warning: Either the condition 'c.size()>0' is redundant or expression 'c[0]' cause access out of bounds. [containerOutOfBounds] gri-2.12.27/src/utility.cc:2275:18: note: Assuming that condition 'c.size()>0' is not redundant gri-2.12.27/src/utility.cc:2280:7: note: Access out of bounds head gri-2.12.27/src/utility.cc:2280:7: warning: Either the condition 'c.size()>0' is redundant or expression 'c[0]' causes access out of bounds. [containerOutOfBounds] gri-2.12.27/src/utility.cc:2275:18: note: Assuming that condition 'c.size()>0' is not redundant gri-2.12.27/src/utility.cc:2280:7: note: Access out of bounds head gri-2.12.27/src/utility.cc:2417:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/utility.cc:592:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/utility.cc:651:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/write.cc:177:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/write.cc:253:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/write.cc:303:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/write.cc:372:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/write.cc:434:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/write.cc:464:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head gri-2.12.27/src/write.cc:61:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] DONE