2025-06-27 18:23 ftp://ftp.de.debian.org/debian/pool/main/g/grads/grads_2.2.1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --library=cairo --library=python --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: b6dd286 (2025-06-27 13:53:34 +0200) count: 808 808 elapsed-time: 891.9 966.6 head-timing-info: old-timing-info: head results: grads-2.2.1/data/tables/convert.c:7:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] grads-2.2.1/src/gabufrtbl.c:144:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gabufrtbl.c:201:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grads-2.2.1/src/bufrscan.c:14:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] grads-2.2.1/src/bufrscan.c:29:18: style: Variable 'varinf' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/dodstn.c:282:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GADAP_SUCCESS [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gacfg.c:126:71: error: There is an unknown macro here somewhere. Configuration is required. If GRADS_VERSION is a macro then please configure it. [unknownMacro] grads-2.2.1/src/gabufr.c:87:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gabufr.c:339:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MIN [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gabufr.c:564:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MIN [valueFlowBailoutIncompleteVar] grads-2.2.1/data/tables/convert.c:74:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] grads-2.2.1/data/tables/convert.c:84:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] grads-2.2.1/data/tables/convert.c:96:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] grads-2.2.1/data/tables/convert.c:109:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] grads-2.2.1/data/tables/convert.c:118:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] grads-2.2.1/data/tables/convert.c:128:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] grads-2.2.1/data/tables/convert.c:139:26: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] grads-2.2.1/data/tables/convert.c:116:22: style: The if condition is the same as the previous if condition [duplicateCondition] grads-2.2.1/data/tables/convert.c:107:21: note: First condition grads-2.2.1/data/tables/convert.c:116:22: note: Second condition grads-2.2.1/data/tables/convert.c:98:15: warning: %Li in format string (no. 1) requires 'long long' but the argument type is 'signed int'. [invalidPrintfArgType_sint] grads-2.2.1/data/tables/convert.c:98:15: error: printf format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum] grads-2.2.1/data/tables/convert.c:149:34: warning: Either the condition '(units=strtok(NULL," \t\n"))==NULL' is redundant or there is possible null pointer dereference: units. [nullPointerRedundantCheck] grads-2.2.1/data/tables/convert.c:139:51: note: Assuming that condition '(units=strtok(NULL," \t\n"))==NULL' is not redundant grads-2.2.1/data/tables/convert.c:149:34: note: Null pointer dereference grads-2.2.1/data/tables/convert.c:149:26: warning: Either the condition '(units=strtok(NULL," \t\n"))==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] grads-2.2.1/data/tables/convert.c:139:51: note: Assuming that condition '(units=strtok(NULL," \t\n"))==NULL' is not redundant grads-2.2.1/data/tables/convert.c:149:26: note: Null pointer addition grads-2.2.1/data/tables/convert.c:142:21: warning:inconclusive: Found suspicious equality comparison. Did you intend to assign a value instead? [constStatement] grads-2.2.1/data/tables/convert.c:7:23: style: Parameter 'argv' can be declared as const array [constParameter] grads-2.2.1/data/tables/convert.c:17:11: style: Variable 'description' can be declared as pointer to const [constVariablePointer] grads-2.2.1/data/tables/convert.c:10:17: style: Unused variable: i [unusedVariable] grads-2.2.1/src/gabufr.c:112:27: style: Condition 'bytesleft' is always true [knownConditionTrueFalse] grads-2.2.1/src/gabufr.c:102:20: note: Assuming that condition 'bytesleft>0' is not redundant grads-2.2.1/src/gabufr.c:105:15: note: Assuming condition is false grads-2.2.1/src/gabufr.c:112:27: note: Condition 'bytesleft' is always true grads-2.2.1/src/gabufr.c:99:5: error: Resource leak: datafile [resourceLeak] grads-2.2.1/src/gabufr.c:130:40: style: Parameter 'varid' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gabufr.c:132:19: style: Variable 'varinf' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gabufr.c:187:35: style: Variable 'end' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gabufr.c:189:19: style: Variable 'varinf' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gabufr.c:327:19: style: Variable 'varinf' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gabufr.c:471:19: style: Variable 'varinf' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gabufr.c:775:28: style: Variable 'end' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gabufr.c:778:16: style: Variable 'current' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gabufr.c:778:27: style: Variable 'next' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gabufr.c:816:28: style: Variable 'end' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gabufr.c:266:13: warning: Shifting 32-bit value by 65 bits is undefined behaviour. See condition at line 271. [shiftTooManyBits] grads-2.2.1/src/gabufr.c:271:29: note: Assuming that condition 'bitcnt>sizeof(long)*8' is not redundant grads-2.2.1/src/gabufr.c:274:28: note: Calling function 'gabufr_all_ones', 1st argument 'bitcnt' value is 65 grads-2.2.1/src/gabufr.c:266:13: note: Shift grads-2.2.1/src/gabufrtbl.c:280:5: error: Memory leak: tbl_b_path [memleak] grads-2.2.1/src/gabufrtbl.c:451:3: error: Memory leak: new_entry.description [memleak] grads-2.2.1/src/gabufrtbl.c:62:40: style:inconclusive: Function 'gabufr_free_varids' argument 1 names different: declaration 'list' definition 'entry'. [funcArgNamesDifferent] grads-2.2.1/src/gabufr.h:127:40: note: Function 'gabufr_free_varids' argument 1 names different: declaration 'list' definition 'entry'. grads-2.2.1/src/gabufrtbl.c:62:40: note: Function 'gabufr_free_varids' argument 1 names different: declaration 'list' definition 'entry'. grads-2.2.1/src/gabufrtbl.c:58:40: style: Parameter 'tbl_inf' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gabufrtbl.c:256:41: style: Parameter 'tbl_inf' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/dodstn.c:303:18: warning: Either the condition 'len<16' is redundant or the array 'pvar->abbrv[16]' is accessed at index 16, which is out of bounds. [arrayIndexOutOfBoundsCond] grads-2.2.1/src/dodstn.c:299:33: note: Assuming that condition 'len<16' is not redundant grads-2.2.1/src/dodstn.c:303:18: note: Array index out of bounds grads-2.2.1/src/dodstn.c:458:18: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] grads-2.2.1/src/dodstn.c:277:10: style: Variable 'name' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/dodstn.c:276:10: note: name is assigned grads-2.2.1/src/dodstn.c:277:10: note: name is overwritten grads-2.2.1/src/dodstn.c:351:9: style: Variable 'dt1' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/dodstn.c:350:9: note: dt1 is assigned grads-2.2.1/src/dodstn.c:351:9: note: dt1 is overwritten grads-2.2.1/src/dodstn.c:58:42: style: Parameter 'pfi' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/dodstn.c:151:16: style: Variable 'stid' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/dodstn.c:207:9: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/dodstn.c:189:10: style: Variable 'next' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gagui.c:226:38: error: There is an unknown macro here somewhere. Configuration is required. If GRADS_VERSION is a macro then please configure it. [unknownMacro] grads-2.2.1/src/gagx.c:4186:58: error: There is an unknown macro here somewhere. Configuration is required. If GRADS_VERSION is a macro then please configure it. [unknownMacro] grads-2.2.1/src/gagmap.c:588:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gagmap.c:1667:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gagmap.c:1763:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gaddes.c:253:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTEORDER [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gaddes.c:3057:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTEORDER [valueFlowBailoutIncompleteVar] grads-2.2.1/src/bufrstn.c:335:10: warning: Either the condition '!val' is redundant or there is possible null pointer dereference: val. [nullPointerRedundantCheck] grads-2.2.1/src/bufrstn.c:162:10: note: Assuming that condition '!val' is not redundant grads-2.2.1/src/bufrstn.c:335:10: note: Null pointer dereference grads-2.2.1/src/bufrstn.c:542:5: warning: Possible null pointer dereference: tail [nullPointer] grads-2.2.1/src/bufrstn.c:488:12: note: Assignment 'tail=NULL', assigned value is 0 grads-2.2.1/src/bufrstn.c:542:5: note: Null pointer dereference grads-2.2.1/src/bufrstn.c:351:49: style: Parameter 'last' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/bufrstn.c:351:72: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/galloc.c:89:9: style: Condition '!buferr' is always true [knownConditionTrueFalse] grads-2.2.1/src/galloc.c:79:7: note: Assuming that condition 'buferr' is not redundant grads-2.2.1/src/galloc.c:89:9: note: Condition '!buferr' is always true grads-2.2.1/src/galloc.c:181:7: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] grads-2.2.1/src/galloc.c:63:32: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/galloc.c:108:29: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/galloc.c:111:7: style: Variable 'mmm' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/galloc.c:173:7: style: Variable 'mmm' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/galloc.c:201:7: style: Variable 'mmm' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gamach.c:262:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTEORDER [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gamach.c:309:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTEORDER [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gamach.c:372:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTEORDER [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gamach.c:423:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTEORDER [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gamach.c:369:16: style: Variable 'ch1' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gatxt.c:99:18: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gatxt.c:136:31: style: Parameter 'color' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:242:9: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/gaio.c:241:19: note: Calling function 'gancsetup' returns 0 grads-2.2.1/src/gaio.c:241:19: note: Assignment 'rc=gancsetup()', assigned value is 0 grads-2.2.1/src/gaio.c:242:9: note: Condition 'rc' is always false grads-2.2.1/src/gaio.c:245:11: style: Condition 'rc<0' is always false [knownConditionTrueFalse] grads-2.2.1/src/gaio.c:244:18: note: Calling function 'gancgrid' returns 1 grads-2.2.1/src/gaio.c:244:18: note: Assignment 'rc=gancgrid(gr,gru,id,jd)', assigned value is 1 grads-2.2.1/src/gaio.c:245:11: note: Condition 'rc<0' is always false grads-2.2.1/src/gaio.c:540:9: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/gaio.c:539:19: note: Calling function 'gancsetup' returns 0 grads-2.2.1/src/gaio.c:539:19: note: Assignment 'rc=gancsetup()', assigned value is 0 grads-2.2.1/src/gaio.c:540:9: note: Condition 'rc' is always false grads-2.2.1/src/gaio.c:2240:12: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/gaio.c:2239:22: note: Calling function 'gancsetup' returns 0 grads-2.2.1/src/gaio.c:2239:22: note: Assignment 'rc=gancsetup()', assigned value is 0 grads-2.2.1/src/gaio.c:2240:12: note: Condition 'rc' is always false grads-2.2.1/src/gaio.c:2308:8: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/gaio.c:2307:18: note: Calling function 'gancsetup' returns 0 grads-2.2.1/src/gaio.c:2307:18: note: Assignment 'rc=gancsetup()', assigned value is 0 grads-2.2.1/src/gaio.c:2308:8: note: Condition 'rc' is always false grads-2.2.1/src/gaio.c:5031:11: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/gaio.c:5030:19: note: Calling function 'gaopnc' returns 0 grads-2.2.1/src/gaio.c:5030:19: note: Assignment 'rc=gaopnc(pfi,1,0)', assigned value is 0 grads-2.2.1/src/gaio.c:5031:11: note: Condition 'rc' is always false grads-2.2.1/src/gaio.c:5036:11: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/gaio.c:5035:20: note: Calling function 'gaophdf' returns 0 grads-2.2.1/src/gaio.c:5035:20: note: Assignment 'rc=gaophdf(pfi,1,0)', assigned value is 0 grads-2.2.1/src/gaio.c:5036:11: note: Condition 'rc' is always false grads-2.2.1/src/gaio.c:5041:11: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/gaio.c:5040:19: note: Calling function 'gaoph5' returns 0 grads-2.2.1/src/gaio.c:5040:19: note: Assignment 'rc=gaoph5(pfi,1,0)', assigned value is 0 grads-2.2.1/src/gaio.c:5041:11: note: Condition 'rc' is always false grads-2.2.1/src/gaio.c:763:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] grads-2.2.1/src/gaio.c:884:34: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaio.c:936:18: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gaio.c:939:18: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gaio.c:955:38: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaio.c:974:32: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gaio.c:1000:38: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gaio.c:1018:36: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaio.c:644:8: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] grads-2.2.1/src/gaio.c:647:3: note: Found duplicate branches for 'if' and 'else'. grads-2.2.1/src/gaio.c:644:8: note: Found duplicate branches for 'if' and 'else'. grads-2.2.1/src/gaio.c:1279:13: style: Variable 'pgr->isiz' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gaio.c:1245:17: note: pgr->isiz is assigned grads-2.2.1/src/gaio.c:1279:13: note: pgr->isiz is overwritten grads-2.2.1/src/gaio.c:1280:13: style: Variable 'pgr->jsiz' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gaio.c:1253:17: note: pgr->jsiz is assigned grads-2.2.1/src/gaio.c:1280:13: note: pgr->jsiz is overwritten grads-2.2.1/src/gaio.c:1511:9: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gaio.c:1510:9: note: rc is assigned grads-2.2.1/src/gaio.c:1511:9: note: rc is overwritten grads-2.2.1/src/gaio.c:2157:10: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gaio.c:2156:10: note: rc is assigned grads-2.2.1/src/gaio.c:2157:10: note: rc is overwritten grads-2.2.1/src/gaio.c:2174:8: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gaio.c:2173:8: note: rc is assigned grads-2.2.1/src/gaio.c:2174:8: note: rc is overwritten grads-2.2.1/src/gaio.c:385:47: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:452:17: style: Variable 'ens' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gaio.c:1059:41: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:1158:20: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:1158:31: style: Parameter 'rdat' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:2530:27: style: Parameter 'gr' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:2530:37: style: Parameter 'gru' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:2968:82: style: Parameter 'gr' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:2968:92: style: Parameter 'gru' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:3071:81: style: Parameter 'gr' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:3071:91: style: Parameter 'gru' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:3613:82: style: Parameter 'gr' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:3613:92: style: Parameter 'gru' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:3911:33: style: Parameter 'vname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:3911:46: style: Parameter 'aname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:3911:63: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4047:35: style: Parameter 'attr_name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4047:56: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4203:34: style: Parameter 'varnam' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4203:48: style: Parameter 'abbrv' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4203:87: style: Parameter 'ftit' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4418:35: style: Parameter 'varname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4418:50: style: Parameter 'abbrv' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4418:89: style: Parameter 'ftit' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4672:33: style: Parameter 'vname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4672:46: style: Parameter 'abbrv' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4672:85: style: Parameter 'ftit' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4927:21: style: Parameter 'vname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4927:34: style: Parameter 'aname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:4957:15: style: Variable 'ens' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gaio.c:5076:30: style: Parameter 'pfil' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:5105:31: style: Parameter 'pfil' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:5133:30: style: Parameter 'pfil' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:5173:33: style: Parameter 'pfi' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:5195:34: style: Parameter 'pfi' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:5209:33: style: Parameter 'pfi' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaio.c:1431:17: style: Unused variable: seek [unusedVariable] grads-2.2.1/src/gaddes.c:1708:41: warning: Comparison is wrong. Result of 'pindx->hipnt+4' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] grads-2.2.1/src/gaddes.c:1683:25: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaddes.c:1697:25: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaddes.c:1855:11: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaddes.c:1856:11: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaddes.c:1864:11: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaddes.c:1865:11: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaddes.c:3135:9: portability: Casting between signed int * and float * which have an incompatible binary data representation. [invalidPointerCast] grads-2.2.1/src/gaddes.c:50:18: style: Variable 'attrib' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gaddes.c:65:9: style: Variable 'varname' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gaddes.c:65:18: style: Variable 'attrname' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gaddes.c:65:28: style: Variable 'attrtype' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gaddes.c:67:16: style: Variable 'errs' can be declared as const array [constVariable] grads-2.2.1/src/gaddes.c:2628:14: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gaddes.c:3389:23: style: Parameter 'vals' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaddes.c:3512:43: style: Parameter 'vals' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaddes.c:3592:44: style: Parameter 'vals' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaddes.c:3659:23: style: Parameter 'vals' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaddes.c:3841:26: style: Parameter 'vals' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaddes.c:49:20: style: Unused variable: g2indx [unusedVariable] grads-2.2.1/src/gaddes.c:3450:7: style: Variable 'pi2' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gaddes.c:3451:7: style: Variable 'pi4' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gaddes.c:3453:7: style: Variable 'r2d' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gaddes.c:3455:10: style: Variable 'omega4' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gaddes.c:3555:7: style: Variable 'r2d' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gaddes.c:3556:10: style: Variable 'earthr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gaddes.c:3560:9: style: Variable 'dlam' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gaddes.c:3561:9: style: Variable 'dphi' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grads.c:611:54: error: There is an unknown macro here somewhere. Configuration is required. If GRADS_VERSION is a macro then please configure it. [unknownMacro] grads-2.2.1/src/gradspy.c:28:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gradspy.c:63:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gradspy.c:103:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gradspy.c:249:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gagmap.c:664:2: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] grads-2.2.1/src/gagmap.c:1763:21: error: Resource leak: mfile [resourceLeak] grads-2.2.1/src/gagmap.c:1769:23: error: Resource leak: mfile [resourceLeak] grads-2.2.1/src/gagmap.c:1776:23: error: Resource leak: mfile [resourceLeak] grads-2.2.1/src/gagmap.c:1783:23: error: Resource leak: mfile [resourceLeak] grads-2.2.1/src/gagmap.c:1790:23: error: Resource leak: mfile [resourceLeak] grads-2.2.1/src/gagmap.c:1797:23: error: Resource leak: mfile [resourceLeak] grads-2.2.1/src/gagmap.c:1192:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gagmap.c:1163:5: note: rc is assigned grads-2.2.1/src/gagmap.c:1192:5: note: rc is overwritten grads-2.2.1/src/gagmap.c:1365:5: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gagmap.c:1360:7: note: rc is assigned grads-2.2.1/src/gagmap.c:1365:5: note: rc is overwritten grads-2.2.1/src/gagmap.c:1555:7: style: Variable 'iz' is assigned an expression that holds the same value. [redundantAssignment] grads-2.2.1/src/gagmap.c:1552:8: note: iz is assigned '(gaint)(z+0.5)' here. grads-2.2.1/src/gagmap.c:1555:7: note: Variable 'iz' is assigned an expression that holds the same value. grads-2.2.1/src/gagmap.c:74:8: style: Local variable 'ch' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:97:23: note: Shadowed declaration grads-2.2.1/src/gagmap.c:74:8: note: Shadow variable grads-2.2.1/src/gagmap.c:76:8: style: Local variable 'rc' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:94:17: note: Shadowed declaration grads-2.2.1/src/gagmap.c:76:8: note: Shadow variable grads-2.2.1/src/gagmap.c:76:11: style: Local variable 'i' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:94:20: note: Shadowed declaration grads-2.2.1/src/gagmap.c:76:11: note: Shadow variable grads-2.2.1/src/gagmap.c:76:36: style: Local variable 'told' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:94:36: note: Shadowed declaration grads-2.2.1/src/gagmap.c:76:36: note: Shadow variable grads-2.2.1/src/gagmap.c:76:41: style: Local variable 'tcur' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:94:31: note: Shadowed declaration grads-2.2.1/src/gagmap.c:76:41: note: Shadow variable grads-2.2.1/src/gagmap.c:79:17: style: Local variable 'pfi' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:89:22: note: Shadowed declaration grads-2.2.1/src/gagmap.c:79:17: note: Shadow variable grads-2.2.1/src/gagmap.c:80:12: style: Local variable 'dtim' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:93:17: note: Shadowed declaration grads-2.2.1/src/gagmap.c:80:12: note: Shadow variable grads-2.2.1/src/gagmap.c:80:17: style: Local variable 'dtimi' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:93:23: note: Shadowed declaration grads-2.2.1/src/gagmap.c:80:17: note: Shadow variable grads-2.2.1/src/gagmap.c:1151:16: style: Local variable 'rec' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:96:21: note: Shadowed declaration grads-2.2.1/src/gagmap.c:1151:16: note: Shadow variable grads-2.2.1/src/gagmap.c:1151:28: style: Local variable 'ch' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:97:23: note: Shadowed declaration grads-2.2.1/src/gagmap.c:1151:28: note: Shadow variable grads-2.2.1/src/gagmap.c:1152:8: style: Local variable 'i' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:94:20: note: Shadowed declaration grads-2.2.1/src/gagmap.c:1152:8: note: Shadow variable grads-2.2.1/src/gagmap.c:1152:10: style: Local variable 'len' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:99:13: note: Shadowed declaration grads-2.2.1/src/gagmap.c:1152:10: note: Shadow variable grads-2.2.1/src/gagmap.c:1152:15: style: Local variable 'rc' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:94:17: note: Shadowed declaration grads-2.2.1/src/gagmap.c:1152:15: note: Shadow variable grads-2.2.1/src/gagmap.c:1410:8: style: Local variable 'i' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:94:20: note: Shadowed declaration grads-2.2.1/src/gagmap.c:1410:8: note: Shadow variable grads-2.2.1/src/gagmap.c:1646:7: style: Local variable 'i' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:94:20: note: Shadowed declaration grads-2.2.1/src/gagmap.c:1646:7: note: Shadow variable grads-2.2.1/src/gagmap.c:1750:9: style: Local variable 'mfile' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:10:13: note: Shadowed declaration grads-2.2.1/src/gagmap.c:1750:9: note: Shadow variable grads-2.2.1/src/gagmap.c:1751:9: style: Local variable 'rc' shadows outer variable [shadowVariable] grads-2.2.1/src/gagmap.h:94:17: note: Shadowed declaration grads-2.2.1/src/gagmap.c:1751:9: note: Shadow variable grads-2.2.1/src/gagmap.c:81:16: style: Variable 'ens' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gagmap.c:1409:16: style: Variable 'pvar' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gagmap.c:1593:78: style: Parameter 'ghdr' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gagmap.c:1621:27: style: Parameter 'ghdr' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gagmap.c:1749:30: style: Parameter 'pfi' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gagmap.c:1749:50: style: Parameter 'pindx' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gagmap.c:1749:73: style: Parameter 'pindxb' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gagmap.c:281:8: error: Uninitialized variable: oldver [legacyUninitvar] grads-2.2.1/src/gagmap.c:281:17: error: Uninitialized variable: newver [legacyUninitvar] grads-2.2.1/src/gagmap.c:76:26: style: Variable 'tmin' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gagmap.c:76:33: style: Variable 'tmax' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gagmap.c:75:8: style: Unused variable: ret [unusedVariable] grads-2.2.1/src/gagmap.c:75:12: style: Unused variable: ierr [unusedVariable] grads-2.2.1/src/gagmap.c:75:27: style: Unused variable: record [unusedVariable] grads-2.2.1/src/gagmap.c:77:8: style: Unused variable: sp [unusedVariable] grads-2.2.1/src/gagmap.c:77:11: style: Unused variable: sp2 [unusedVariable] grads-2.2.1/src/gagmap.c:77:39: style: Unused variable: it [unusedVariable] grads-2.2.1/src/gribmap.c:215:45: error: There is an unknown macro here somewhere. Configuration is required. If GRADS_VERSION is a macro then please configure it. [unknownMacro] grads-2.2.1/src/gribscan.c:1251:46: error: There is an unknown macro here somewhere. Configuration is required. If GRADS_VERSION is a macro then please configure it. [unknownMacro] grads-2.2.1/src/gscrpt.c:1144:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] grads-2.2.1/src/grib2scan.c:526:18: style:inconclusive: Boolean expression 'numtr>1' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] grads-2.2.1/src/grib2scan.c:655:21: style:inconclusive: Boolean expression 'pg2->pdt==6' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] grads-2.2.1/src/grib2scan.c:199:8: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/grib2scan.c:198:14: note: Calling function 'sect1' returns 0 grads-2.2.1/src/grib2scan.c:198:14: note: Assignment 'rc=sect1(s1,&g2)', assigned value is 0 grads-2.2.1/src/grib2scan.c:199:8: note: Condition 'rc' is always false grads-2.2.1/src/grib2scan.c:224:12: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/grib2scan.c:223:18: note: Calling function 'sect3' returns 0 grads-2.2.1/src/grib2scan.c:223:18: note: Assignment 'rc=sect3(s3,&g2)', assigned value is 0 grads-2.2.1/src/grib2scan.c:224:12: note: Condition 'rc' is always false grads-2.2.1/src/grib2scan.c:240:10: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/grib2scan.c:239:16: note: Calling function 'sect4' returns 0 grads-2.2.1/src/grib2scan.c:239:16: note: Assignment 'rc=sect4(s4,&g2)', assigned value is 0 grads-2.2.1/src/grib2scan.c:240:10: note: Condition 'rc' is always false grads-2.2.1/src/grib2scan.c:252:10: style: Condition 'rc' is always false [knownConditionTrueFalse] grads-2.2.1/src/grib2scan.c:251:16: note: Calling function 'sect5' returns 0 grads-2.2.1/src/grib2scan.c:251:16: note: Assignment 'rc=sect5(s5,&g2)', assigned value is 0 grads-2.2.1/src/grib2scan.c:252:10: note: Condition 'rc' is always false grads-2.2.1/src/grib2scan.c:123:9: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/grib2scan.c:122:9: note: rc is assigned grads-2.2.1/src/grib2scan.c:123:9: note: rc is overwritten grads-2.2.1/src/grib2scan.c:145:7: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/grib2scan.c:144:7: note: rc is assigned grads-2.2.1/src/grib2scan.c:145:7: note: rc is overwritten grads-2.2.1/src/grib2scan.c:183:7: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/grib2scan.c:182:7: note: rc is assigned grads-2.2.1/src/grib2scan.c:183:7: note: rc is overwritten grads-2.2.1/src/grib2scan.c:78:8: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/grib2scan.c:80:45: style: Variable 's8' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/grib2scan.c:863:29: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/grib2scan.c:866:20: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/grib2scan.c:397:14: style: Variable 'll' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:397:19: style: Variable 'ul' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:398:23: style: Variable 'lev2' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:461:14: style: Variable 'versiont.hr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:462:14: style: Variable 'versiont.mn' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:496:17: style: Variable 'versiont.hr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:497:17: style: Variable 'versiont.mn' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:512:12: style: Variable 'var1' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:515:12: style: Variable 'var4' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:516:12: style: Variable 'var5' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:600:23: style: Variable 'enstotal' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:746:14: style: Variable 'r' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:747:14: style: Variable 'e' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:748:14: style: Variable 'd' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:749:14: style: Variable 'nbits' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/grib2scan.c:750:14: style: Variable 'otype' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gsgui.c:453:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WHITE [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gsgui.c:700:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ORIGINAL_WINDOW [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gautil.c:50:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gautil.c:2118:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gsgui.c:284:18: error: Array 'Widgets[22]' accessed at index 511, which is out of bounds. [arrayIndexOutOfBounds] grads-2.2.1/src/gsgui.c:283:13: note: Assuming that condition 'i<512' is not redundant grads-2.2.1/src/gsgui.c:284:18: note: Array index out of bounds grads-2.2.1/src/gsgui.c:534:15: error: Resource leak: script [resourceLeak] grads-2.2.1/src/gsgui.c:534:15: error: Memory leak: p [memleak] grads-2.2.1/src/gsgui.c:725:14: warning: Either the condition 'p' is redundant or there is possible null pointer dereference: p. [nullPointerRedundantCheck] grads-2.2.1/src/gsgui.c:730:8: note: Assuming that condition 'p' is not redundant grads-2.2.1/src/gsgui.c:725:14: note: Null pointer dereference grads-2.2.1/src/gsgui.c:723:10: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] grads-2.2.1/src/gsgui.c:197:22: style: Parameter 's' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gsgui.c:279:23: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gsgui.c:299:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gsgui.c:318:21: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gsgui.c:344:22: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gsgui.c:389:20: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gsgui.c:419:20: style: Parameter 'fontname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gsgui.c:439:21: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gsgui.c:488:21: style: Parameter 'colorname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gsgui.c:514:20: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gstmp.c:26:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] grads-2.2.1/src/gstmp.c:35:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pcmn [nullPointerOutOfMemory] grads-2.2.1/src/gstmp.c:32:32: note: Assuming allocation function fails grads-2.2.1/src/gstmp.c:32:10: note: Assignment 'pcmn=(struct gscmn*)malloc(sizeof(struct gscmn))', assigned value is 0 grads-2.2.1/src/gstmp.c:35:3: note: Null pointer dereference grads-2.2.1/src/gstmp.c:36:25: warning: If memory allocation fails, then there is a possible null pointer dereference: pcmn [nullPointerOutOfMemory] grads-2.2.1/src/gstmp.c:32:32: note: Assuming allocation function fails grads-2.2.1/src/gstmp.c:32:10: note: Assignment 'pcmn=(struct gscmn*)malloc(sizeof(struct gscmn))', assigned value is 0 grads-2.2.1/src/gstmp.c:36:25: note: Null pointer dereference grads-2.2.1/src/gstmp.c:71:18: warning: If memory allocation fails, then there is a possible null pointer dereference: pcmn [nullPointerOutOfMemory] grads-2.2.1/src/gstmp.c:32:32: note: Assuming allocation function fails grads-2.2.1/src/gstmp.c:32:10: note: Assignment 'pcmn=(struct gscmn*)malloc(sizeof(struct gscmn))', assigned value is 0 grads-2.2.1/src/gstmp.c:37:18: note: Calling function 'gsonam', 1st argument 'pcmn' value is 0 grads-2.2.1/src/gstmp.c:71:18: note: Null pointer dereference grads-2.2.1/src/gstmp.c:27:7: style: Variable 'ifile' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gstmp.c:180:21: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gstmp.c:214:20: style: Parameter 'ch1' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gstmp.c:214:31: style: Parameter 'ch2' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gstmp.c:30:5: style: Unused variable: rc [unusedVariable] grads-2.2.1/src/gxC.c:122:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_LINE_CAP_ROUND [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxC.c:195:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxC.c:366:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxC.c:462:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_OPERATOR_OVER [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxC.c:627:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_EXTEND_REPEAT [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxC.c:749:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_ANTIALIAS_NONE [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxC.c:787:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_ANTIALIAS_NONE [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxC.c:809:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_ANTIALIAS_DEFAULT [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxC.c:918:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FONT_WEIGHT_NORMAL [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxC.c:1001:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gaexpr.c:403:11: style: Variable 'val1' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gaexpr.c:408:7: style: Variable 'uval1' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gaexpr.c:1379:31: style: Parameter 'vnam' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gaexpr.c:100:13: style: Variable 'i' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxGD.c:193:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdPoint [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxGD.c:238:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxGD.c:254:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxGD.c:290:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxGD.c:388:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GD_VERSION_STRING [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxGD.c:337:22: style: Parameter 'fnout' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxGD.c:337:35: style: Parameter 'bgImage' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxC.c:625:18: warning: Either the condition 'dbq.tile>-900' is redundant or the array 'pattern[2048]' is accessed at index -899, which is out of bounds. [negativeIndex] grads-2.2.1/src/gxC.c:623:18: note: Assuming that condition 'dbq.tile>-900' is not redundant grads-2.2.1/src/gxC.c:625:18: note: Negative array index grads-2.2.1/src/gxX.c:79:37: error: There is an unknown macro here somewhere. Configuration is required. If GRADS_VERSION is a macro then please configure it. [unknownMacro] grads-2.2.1/src/gxC.c:1125:11: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxX11.c:114:37: error: There is an unknown macro here somewhere. Configuration is required. If GRADS_VERSION is a macro then please configure it. [unknownMacro] grads-2.2.1/src/gxchpl.c:289:5: error: Resource leak: ifile [resourceLeak] grads-2.2.1/src/gxchpl.c:295:5: error: Resource leak: ifile [resourceLeak] grads-2.2.1/src/gxchpl.c:301:5: error: Resource leak: ifile [resourceLeak] grads-2.2.1/src/gxchpl.c:301:5: error: Memory leak: coff [memleak] grads-2.2.1/src/gxchpl.c:307:5: error: Resource leak: ifile [resourceLeak] grads-2.2.1/src/gxchpl.c:307:5: error: Memory leak: coff [memleak] grads-2.2.1/src/gxchpl.c:307:5: error: Memory leak: clen [memleak] grads-2.2.1/src/gxchpl.c:307:5: error: Memory leak: fdat [memleak] grads-2.2.1/src/gxchpl.c:124:7: style: Variable 'cdat' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxchpl.c:241:6: style: Variable 'clen' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxchpl.c:241:13: style: Variable 'coff' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxcntr.c:538:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] grads-2.2.1/src/gxcntr.c:539:3: note: Found duplicate branches for 'if' and 'else'. grads-2.2.1/src/gxcntr.c:538:3: note: Found duplicate branches for 'if' and 'else'. grads-2.2.1/src/gxcntr.c:104:15: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxcntr.c:104:19: style: Variable 'p4' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxcntr.c:107:12: style: Variable 'p2u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxcntr.c:107:17: style: Variable 'p4u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxcntr.c:250:15: style: Variable 'xyllim' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxcntr.c:250:24: style: Variable 'xyulim' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxcntr.c:1029:86: style: Parameter 'pcntr' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxcntr.c:703:5: style: Variable 'd0' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxcntr.c:704:5: style: Variable 'x0' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxcntr.c:705:5: style: Variable 'y0' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxcntr.c:820:9: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxdummy.c:11:19: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:12:19: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:16:33: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:16:46: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:16:56: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:16:66: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:16:76: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:16:89: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:23:24: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:25:20: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:26:48: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:26:58: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:27:21: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:28:27: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:31:34: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:36:34: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:48:31: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:55:22: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:55:67: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:55:76: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdummy.c:61:27: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:70:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AllPlanes [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxdxwd.c:101:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxdxwd.c:249:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxdxwd.c:260:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxdxwd.c:279:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZPixmap [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxdxwd.c:304:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XColor [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxdxwd.c:387:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gxdxwd.c:73:19: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] grads-2.2.1/src/gxdxwd.c:160:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] grads-2.2.1/src/gxdxwd.c:160:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] grads-2.2.1/src/gxdxwd.c:184:16: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] grads-2.2.1/src/gxdxwd.c:258:8: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:277:14: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:384:12: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:385:12: style: Parameter 'arg0' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:385:19: style: Parameter 'arg1' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:385:26: style: Parameter 'arg2' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:385:33: style: Parameter 'arg3' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:385:40: style: Parameter 'arg4' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:385:47: style: Parameter 'arg5' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:385:54: style: Parameter 'arg6' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdxwd.c:117:8: style: Variable 'bw' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxdxwd.c:170:17: style: Variable 'buffer_size' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxdb.c:122:33: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdb.c:216:26: style: Parameter 'itt' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxdb.c:216:37: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxshad.c:45:57: style: Parameter 'vs' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxshad.c:45:68: style: Parameter 'clrs' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxshad.c:46:19: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:46:23: style: Variable 'p4' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:50:17: style: Variable 'p3u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:50:22: style: Variable 'p4u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:306:19: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:1200:21: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:1200:26: style: Variable 'p4' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:1201:19: style: Variable 'p3u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:1201:25: style: Variable 'p4u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:1257:35: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:1286:8: style: Variable 'f1' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:1286:12: style: Variable 'f4' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxshad.c:1278:7: error: Undefined behaviour: float (9.9e+33) to integer conversion overflow. [floatConversionOverflow] grads-2.2.1/src/gxshad.c:1269:12: note: Assignment 'xsave=9.9e33', assigned value is 9.9e+33 grads-2.2.1/src/gxshad.c:1270:14: note: Assuming condition is false grads-2.2.1/src/gxshad.c:1278:7: note: float to integer conversion grads-2.2.1/src/gxshad.c:1210:6: style: Variable 'p4' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gscrpt.c:2030:16: style: Array index 'len' is used before limits check. [arrayIndexThenCheck] grads-2.2.1/src/gscrpt.c:2237:10: style: Condition '*ch<'0'' is always false [knownConditionTrueFalse] grads-2.2.1/src/gscrpt.c:2222:10: note: Assuming that condition '*ch<'0'' is not redundant grads-2.2.1/src/gscrpt.c:2237:10: note: Condition '*ch<'0'' is always false grads-2.2.1/src/gscrpt.c:2237:21: style: Condition '*ch>'9'' is always false [knownConditionTrueFalse] grads-2.2.1/src/gscrpt.c:2222:21: note: Assuming that condition '*ch>'9'' is not redundant grads-2.2.1/src/gscrpt.c:2237:21: note: Condition '*ch>'9'' is always false grads-2.2.1/src/gscrpt.c:31:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:562:60: style: Parameter 'ifblk' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gscrpt.c:693:15: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:1132:13: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:1533:7: style: Variable 's1' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:1533:12: style: Variable 's2' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:2005:12: style: Variable 'src' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:2049:41: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gscrpt.c:2209:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:2365:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:2446:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:2525:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:2834:7: style: Variable 'name' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:2979:15: style: Variable 'pvar' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:3118:15: style: Variable 'pvar' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:3202:7: style: Variable 'mathmsg' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gscrpt.c:3558:62: style: Parameter 'pfnc' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gscrpt.c:3659:21: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gscrpt.c:3694:20: style: Parameter 'ch1' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gscrpt.c:3694:31: style: Parameter 'ch2' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gscrpt.c:3263:7: error: Uninitialized variable: v [legacyUninitvar] grads-2.2.1/src/gxmeta.c:94:8: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:114:8: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:136:8: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:140:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:158:8: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:182:8: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:186:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:189:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:208:8: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:212:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:215:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:218:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:237:8: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:241:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:244:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:247:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:250:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:253:9: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:271:8: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:302:9: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:424:12: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:460:15: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:472:15: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:484:15: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:486:15: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:488:15: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:490:15: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:492:15: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:523:15: portability: Casting from float * to signed int * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:614:14: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:616:15: portability:inconclusive: Casting from float * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:634:7: portability:inconclusive: Casting from float * to signed char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] grads-2.2.1/src/gxmeta.c:397:6: style: Variable 'iii' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxmeta.c:401:14: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxmeta.c:402:11: style: Variable 'uch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxmeta.c:625:6: style: Variable 'r' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxmeta.c:627:6: style: Variable 'r' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxsubs.c:150:3: warning: Return value of function dlerror() is not used. [ignoredReturnValue] grads-2.2.1/src/gxsubs.c:190:3: warning: Return value of function dlerror() is not used. [ignoredReturnValue] grads-2.2.1/src/gxsubs.c:199:3: warning: Return value of function dlerror() is not used. [ignoredReturnValue] grads-2.2.1/src/gxsubs.c:188:5: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:195:5: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:201:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:201:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:203:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:203:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:205:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:205:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:207:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:207:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:209:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:209:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:211:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:211:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:213:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:213:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:215:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:215:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:217:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:217:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:219:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:219:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:221:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:221:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:223:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:223:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:225:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:225:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:227:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:227:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:229:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:229:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:231:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:231:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:233:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:233:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:235:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:235:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:237:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:237:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:241:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:241:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:243:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:243:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:245:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:245:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:247:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:247:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:249:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:249:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:251:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:251:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:253:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:253:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:255:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:255:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:257:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:257:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:259:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:259:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:261:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:261:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:263:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:263:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:265:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:265:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:267:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:267:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:269:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:269:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:271:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:271:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:273:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:273:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:275:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:275:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:277:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:277:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:279:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:279:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:281:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:281:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:283:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:283:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:285:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:285:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:287:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:287:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:289:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:289:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:291:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:291:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:293:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:293:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:295:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:295:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:297:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:297:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:299:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:299:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:301:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:301:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:303:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:303:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:305:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:305:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:307:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:307:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:309:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:309:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:311:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:311:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:313:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:313:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:315:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:315:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:317:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:317:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:319:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:319:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:321:68: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:321:68: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:322:3: error: Resource leak: phandle [resourceLeak] grads-2.2.1/src/gxsubs.c:322:3: error: Resource leak: dhandle [resourceLeak] grads-2.2.1/src/gxsubs.c:115:9: style: Variable 'cname' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxsubs.c:1315:20: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxsubs.c:1321:20: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxsubs.c:1322:20: style: Variable 'ddir' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxsubs.c:1166:13: warning: Uninitialized variable: *r [uninitvar] grads-2.2.1/src/gxsubs.c:1106:22: note: Assignment 'buff=xybuff', assigned value is grads-2.2.1/src/gxsubs.c:1165:7: note: Assignment 'r=buff', assigned value is grads-2.2.1/src/gxsubs.c:1166:13: note: Uninitialized variable: *r grads-2.2.1/src/gxwmap.c:1183:22: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxwmap.c:1183:34: style: Parameter 'opts' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxwmap.c:1187:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxwmap.c:1298:7: style: Variable 'cdat' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gxwmap.c:757:9: style: Variable 'radlon' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxwmap.c:916:9: style: Variable 'lonave' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxwmap.c:917:9: style: Variable 'dlat' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxwmap.c:917:37: style: Variable 'dlon' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxwmap.c:918:9: style: Variable 'dx' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gxwmap.c:918:35: style: Variable 'dy' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/stnmap.c:357:91: error: There is an unknown macro here somewhere. Configuration is required. If GRADS_VERSION is a macro then please configure it. [unknownMacro] grads-2.2.1/src/gxshad2.c:116:7: style: Condition 'bug' is always false [knownConditionTrueFalse] grads-2.2.1/src/gxshad2.c:115:7: note: Assignment 'bug=0', assigned value is 0 grads-2.2.1/src/gxshad2.c:116:7: note: Condition 'bug' is always false grads-2.2.1/src/gxshad2.c:111:84: style: Parameter 'clrs' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxshad2.c:180:85: style: Parameter 'clrs' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gxstrm.c:323:25: style: Parameter 'shdlvs' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gafunc.c:7221:5: warning: Return value of function dlerror() is not used. [ignoredReturnValue] grads-2.2.1/src/gafunc.c:1382:14: style: The if condition is the same as the previous if condition [duplicateCondition] grads-2.2.1/src/gafunc.c:1336:14: note: First condition grads-2.2.1/src/gafunc.c:1382:14: note: Second condition grads-2.2.1/src/gafunc.c:2264:11: style: Condition 'grid3' is always true [knownConditionTrueFalse] grads-2.2.1/src/gafunc.c:7219:7: error: Memory leak: pudpinfo [memleak] grads-2.2.1/src/gafunc.c:7226:7: error: Memory leak: pudpinfo [memleak] grads-2.2.1/src/gafunc.c:7226:7: error: Resource leak: handle [resourceLeak] grads-2.2.1/src/gafunc.c:7210:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pudpinfo [nullPointerOutOfMemory] grads-2.2.1/src/gafunc.c:7209:20: note: Assuming allocation function fails grads-2.2.1/src/gafunc.c:7209:20: note: Assignment 'pudpinfo=malloc(sizeof(struct gaudpinfo))', assigned value is 0 grads-2.2.1/src/gafunc.c:7210:3: note: Null pointer dereference grads-2.2.1/src/gafunc.c:7211:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pudpinfo [nullPointerOutOfMemory] grads-2.2.1/src/gafunc.c:7209:20: note: Assuming allocation function fails grads-2.2.1/src/gafunc.c:7209:20: note: Assignment 'pudpinfo=malloc(sizeof(struct gaudpinfo))', assigned value is 0 grads-2.2.1/src/gafunc.c:7211:3: note: Null pointer dereference grads-2.2.1/src/gafunc.c:2706:9: style: Variable 'resu' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gafunc.c:2699:9: note: resu is assigned grads-2.2.1/src/gafunc.c:2706:9: note: resu is overwritten grads-2.2.1/src/gafunc.c:2706:9: style: Variable 'resu' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gafunc.c:2703:9: note: resu is assigned grads-2.2.1/src/gafunc.c:2706:9: note: resu is overwritten grads-2.2.1/src/gafunc.c:3462:8: style: Variable 'wt' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gafunc.c:3458:6: note: wt is assigned grads-2.2.1/src/gafunc.c:3462:8: note: wt is overwritten grads-2.2.1/src/gafunc.c:3508:10: style: Variable 'wt' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gafunc.c:3504:8: note: wt is assigned grads-2.2.1/src/gafunc.c:3508:10: note: wt is overwritten grads-2.2.1/src/gafunc.c:352:7: style: Variable 'valu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:390:7: style: Variable 'valu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:428:7: style: Variable 'valu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:559:7: style: Variable 'valu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:597:7: style: Variable 'valu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:1851:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:1851:11: style: Variable 'fnam' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:1984:9: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:1984:13: style: Variable 'fnam' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:1985:13: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:1986:9: style: Variable 'gru' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2127:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2341:27: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2344:7: style: Variable 'gru' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2480:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2480:11: style: Variable 'fnam' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2480:61: style: Variable 'covu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2849:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2849:11: style: Variable 'fnam' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2849:29: style: Variable 'valu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:3402:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:3402:17: style: Variable 'valu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:3567:7: style: Variable 'gru' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:3886:11: style: Variable 'tv' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:3887:7: style: Variable 'tvu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4110:11: style: Variable 'ps' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4110:16: style: Variable 'var' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4115:7: style: Variable 'psu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4115:13: style: Variable 'varu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4310:20: style: Variable 'in' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4311:7: style: Variable 'inu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4486:20: style: Variable 'in' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4487:7: style: Variable 'inu' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4655:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4718:37: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4718:42: style: Variable 'p4' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4722:19: style: Variable 'p3u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4722:25: style: Variable 'p4u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4889:29: style: Variable 'grid' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4890:21: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4890:26: style: Variable 'p4' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4893:19: style: Variable 'p3u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:4893:25: style: Variable 'p4u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:5442:51: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:5442:56: style: Variable 'p3' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:5737:9: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6023:19: style: Variable 'val' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6026:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6331:9: style: Variable 'uval' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6396:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6493:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6493:11: style: Variable 'fnam' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6664:20: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6665:24: style: Variable 'gru' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6844:20: style: Variable 'gr1' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6844:26: style: Variable 'gr2' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6844:32: style: Variable 'grv' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6846:7: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6846:23: style: Variable 'gr1u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:6846:30: style: Variable 'gr2u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:7204:7: style: Variable 'error' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gafunc.c:2293:9: style: Variable 's1u' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:2294:9: style: Variable 's2u' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:2310:10: style: Variable 'covu' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:2358:9: style: Variable 'abs' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:2949:8: style: Variable 'ilin' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:3448:8: style: Variable 'ilin' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:4291:6: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:4784:9: style: Variable 'jconv' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:4841:14: style: Variable 'wm' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:5060:10: style: Variable 'grid' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:5099:5: style: Variable 'wm' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:5709:7: style: Variable 'gr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gafunc.c:5710:7: style: Variable 'gru' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:2383:3: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] grads-2.2.1/src/gautil.c:1014:7: style: Variable '*ch' is assigned an expression that holds the same value. [redundantAssignment] grads-2.2.1/src/gautil.c:1004:7: note: i is assigned '*ch' here. grads-2.2.1/src/gautil.c:1014:7: note: Variable '*ch' is assigned an expression that holds the same value. grads-2.2.1/src/gautil.c:169:18: style: Local variable 'mons' shadows outer variable [shadowVariable] grads-2.2.1/src/gautil.c:372:14: note: Shadowed declaration grads-2.2.1/src/gautil.c:169:18: note: Shadow variable grads-2.2.1/src/gautil.c:77:25: style: Parameter 'dtim' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:127:25: style: Parameter 'dtim' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:170:15: style: Variable 'moincr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gautil.c:170:23: style: Variable 'mnincr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gautil.c:220:11: style: Variable 'moincr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gautil.c:220:19: style: Variable 'mnincr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gautil.c:383:36: style: Parameter 'def' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:550:21: style: Parameter 'ch1' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:550:32: style: Parameter 'ch2' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:566:22: style: Parameter 'ch1' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:566:33: style: Parameter 'ch2' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:599:28: style: Parameter 'vals' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:731:21: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:745:21: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:790:15: style: Variable 'ens' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gautil.c:1038:31: style: Parameter 'ch2' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:1056:31: style: Parameter 'ch2' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:1070:21: style: Parameter 'ch2' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:1084:11: style: Variable 'r' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gautil.c:1086:7: style: Variable 'rmask' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gautil.c:1400:26: style: Parameter 'dtim' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:1438:20: style: Parameter 'str1' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:1438:32: style: Parameter 'str2' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:1492:31: style: Parameter 'in1' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:1493:7: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gautil.c:1493:28: style: Variable 'envr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gautil.c:1541:70: style: Parameter 'vals' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:2053:32: style: Parameter 'ibm' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:2158:33: style: Parameter 'ieee' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:2172:34: style: Parameter 'ieee' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:2255:29: style: Parameter 'vals' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gautil.c:195:10: style: Variable 'mons' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:388:7: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:510:7: style: Variable 'pos' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1059:6: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1611:12: style: Variable 'pchsub' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1827:15: style: Variable 'stim.yr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1828:15: style: Variable 'stim.mo' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1829:15: style: Variable 'stim.dy' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1830:15: style: Variable 'stim.hr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1831:15: style: Variable 'stim.mn' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1841:15: style: Variable 'stim.yr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1842:15: style: Variable 'stim.mo' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1843:15: style: Variable 'stim.dy' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1844:15: style: Variable 'stim.hr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1845:15: style: Variable 'stim.mn' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1857:15: style: Variable 'stim.yr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1858:15: style: Variable 'stim.mo' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1859:15: style: Variable 'stim.dy' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1860:15: style: Variable 'stim.hr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1861:15: style: Variable 'stim.mn' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1871:15: style: Variable 'stim.yr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1872:15: style: Variable 'stim.mo' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1873:15: style: Variable 'stim.dy' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1874:15: style: Variable 'stim.hr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1875:15: style: Variable 'stim.mn' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1887:15: style: Variable 'stim.yr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1888:15: style: Variable 'stim.mo' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1889:15: style: Variable 'stim.dy' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1890:15: style: Variable 'stim.hr' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gautil.c:1891:15: style: Variable 'stim.mn' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gauser.c:277:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTEORDER [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gauser.c:3452:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BYTEORDER [valueFlowBailoutIncompleteVar] grads-2.2.1/src/gauser.c:304:20: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] grads-2.2.1/src/gauser.c:302:34: note: outer condition: pfi->dnum[2]>1 grads-2.2.1/src/gauser.c:304:20: note: opposite inner condition: pfi->dnum[2]<=1 grads-2.2.1/src/gauser.c:718:45: style: The if condition is the same as the previous if condition [duplicateCondition] grads-2.2.1/src/gauser.c:707:45: note: First condition grads-2.2.1/src/gauser.c:718:45: note: Second condition grads-2.2.1/src/gauser.c:2619:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] grads-2.2.1/src/gauser.c:2627:7: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] grads-2.2.1/src/gauser.c:2703:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] grads-2.2.1/src/gauser.c:4133:9: portability: %d in format string (no. 1) requires 'int' but the argument type is 'gauint {aka unsigned int}'. [invalidPrintfArgType_sint] grads-2.2.1/src/gauser.c:4135:9: portability: %d in format string (no. 1) requires 'int' but the argument type is 'gauint {aka unsigned int}'. [invalidPrintfArgType_sint] grads-2.2.1/src/gauser.c:4137:9: portability: %d in format string (no. 1) requires 'int' but the argument type is 'gauint {aka unsigned int}'. [invalidPrintfArgType_sint] grads-2.2.1/src/gauser.c:487:11: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] grads-2.2.1/src/gauser.c:1170:17: warning: Either the condition 'btn.ch==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] grads-2.2.1/src/gauser.c:1171:19: note: Assuming that condition 'btn.ch==NULL' is not redundant grads-2.2.1/src/gauser.c:1170:17: note: Null pointer addition grads-2.2.1/src/gauser.c:686:15: style: Variable 'pos' is reassigned a value before the old one has been used. [redundantAssignment] grads-2.2.1/src/gauser.c:685:11: note: pos is assigned grads-2.2.1/src/gauser.c:686:15: note: pos is overwritten grads-2.2.1/src/gauser.c:74:79: style: Variable 'ioff' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:75:18: style: Variable 'dx' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:75:22: style: Variable 'dy' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:80:7: style: Variable 'formats' can be declared as const array [constVariable] grads-2.2.1/src/gauser.c:484:11: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:943:20: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:1124:40: style: Parameter 'pcm' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:2328:46: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:2332:13: style: Variable 'gru' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:2808:37: style: Variable 'name' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:2808:44: style: Variable 'name2' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:2809:7: style: Variable 'varnam' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:2810:8: style: Variable 'sptr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:2811:7: style: Variable 'lptr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:2812:10: style: Variable 'fptr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:2813:11: style: Variable 'dptr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:4658:21: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:4658:40: style: Parameter 'pcm' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:4938:21: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:5013:15: style: Variable 'ens' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:5028:14: style: Variable 'kwds' can be declared as const array [constVariable] grads-2.2.1/src/gauser.c:7833:45: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:7835:10: style: Variable 'sptr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:7836:9: style: Variable 'lptr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:7837:12: style: Variable 'fptr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:7838:13: style: Variable 'dptr' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:8044:30: style: Parameter 'pcm' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8044:54: style: Parameter 'varname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8044:69: style: Parameter 'attname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8044:84: style: Parameter 'attval' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8127:31: style: Parameter 'pfi' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8127:50: style: Parameter 'pcm' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8191:38: style: Parameter 'dimname' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8191:69: style: Parameter 'dimid' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8191:83: style: Parameter 'varid' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8239:22: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8239:41: style: Parameter 'pcm' can be declared as pointer to const [constParameterPointer] grads-2.2.1/src/gauser.c:8827:13: style: Variable 'u' can be declared as pointer to const [constVariablePointer] grads-2.2.1/src/gauser.c:5367:32: error: Uninitialized variable: itt2 [legacyUninitvar] grads-2.2.1/src/gauser.c:1899:10: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gauser.c:4591:11: style: Variable 'varnam' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gauser.c:4594:11: style: Variable 'varnam' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gauser.c:5664:10: style: Variable 'kwrd' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gauser.c:5801:10: style: Variable 'kwrd' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gauser.c:6899:10: style: Variable 'kwrd' is assigned a value that is never used. [unreadVariable] grads-2.2.1/src/gauser.c:8823:14: style: Unused variable: iconv [unusedVariable] grads-2.2.1/src/gauser.c:8824:14: style: Unused variable: jconv [unusedVariable] grads-2.2.1/src/gauser.c:8825:13: style: Unused variable: ivals [unusedVariable] grads-2.2.1/src/gauser.c:8825:21: style: Unused variable: jvals [unusedVariable] grads-2.2.1/src/gauser.c:8825:36: style: Unused variable: abs [unusedVariable] grads-2.2.1/src/gauser.c:8826:10: style: Unused variable: ccc [unusedVariable] grads-2.2.1/src/gauser.c:8826:16: style: Unused variable: j [unusedVariable] grads-2.2.1/src/gauser.c:8826:29: style: Variable 'verb' is assigned a value that is never used. [unreadVariable] diff: DONE