2025-05-06 13:20 ftp://ftp.de.debian.org/debian/pool/main/n/ncview/ncview_2.1.11+ds.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 40776f9 (2025-05-06 14:25:14 +0200) count: 964 960 elapsed-time: 13.8 14.8 head-timing-info: old-timing-info: head results: ncview-2.1.11/src/calcalcs.c:128:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/calcalcs.c:744:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/calcalcs.c:907:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/calcalcs.c:1348:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/do_print.c:215:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:244:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:311:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:369:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:535:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:799:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XYPixmap [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:924:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fid [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:976:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:1741:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:1787:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:2101:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/do_print.c:363:34: portability: Non reentrant function 'getlogin' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getlogin_r'. [prohibitedgetloginCalled] ncview-2.1.11/src/do_print.c:240:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:240:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:256:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:256:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:269:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:269:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:281:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:353:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:367:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:367:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:429:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:430:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:430:2: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:431:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:440:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:444:2: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:453:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:454:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:454:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:455:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:457:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:457:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:458:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:459:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:464:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:464:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/do_print.c:130:3: error: Resource leak: outfid [resourceLeak] ncview-2.1.11/src/do_print.c:196:25: style:inconclusive: Function 'print_other_info' argument 1 names different: declaration 'out_file' definition 'outf'. [funcArgNamesDifferent] ncview-2.1.11/src/do_print.c:58:37: note: Function 'print_other_info' argument 1 names different: declaration 'out_file' definition 'outf'. ncview-2.1.11/src/do_print.c:196:25: note: Function 'print_other_info' argument 1 names different: declaration 'out_file' definition 'outf'. ncview-2.1.11/src/do_print.c:437:21: style:inconclusive: Function 'print_header' argument 1 names different: declaration 'out_file' definition 'f'. [funcArgNamesDifferent] ncview-2.1.11/src/do_print.c:54:33: note: Function 'print_header' argument 1 names different: declaration 'out_file' definition 'f'. ncview-2.1.11/src/do_print.c:437:21: note: Function 'print_header' argument 1 names different: declaration 'out_file' definition 'f'. ncview-2.1.11/src/do_print.c:100:7: style: Variable 'outfname' can be declared as const array [constVariable] ncview-2.1.11/src/do_print.c:200:9: style: Variable 'units' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/do_print.c:200:30: style: Variable 'x_dim_longname' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/do_print.c:201:17: style: Variable 'y_dim_longname' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/do_print.c:201:34: style: Variable 'x_units' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/do_print.c:201:44: style: Variable 'y_units' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/do_print.c:202:29: style: Variable 'main_long_name' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/do_print.c:202:46: style: Variable 'main_units' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/do_print.c:203:15: style: Variable 'dim_longname' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/do_print.c:205:9: style: Variable 'd' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/do_print.c:401:29: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/do_print.c:140:5: error: Uninitialized variable: outfname [uninitvar] ncview-2.1.11/src/do_print.c:388:9: style: Variable 'istat' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/epic_time.c:61:34: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/epic_time.c:61:44: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/epic_time.c:73:37: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/epic_time.c:90:15: style: Variable 'months' can be declared as const array [constVariable] ncview-2.1.11/src/SciPlot.c:2000:46: warning: Invalid log10() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'. [invalidFunctionArg] ncview-2.1.11/src/SciPlot.c:2100:26: note: Calling function 'ComputeAxis', 2nd argument '(real)0.0' value is 0.0 ncview-2.1.11/src/SciPlot.c:2000:46: note: Invalid argument ncview-2.1.11/src/SciPlot.c:327:34: style: Expression is always false because 'else if' condition matches previous condition at line 324. [multiCondition] ncview-2.1.11/src/SciPlot.c:2124:22: style: Redundant condition: w->plot.XLog. '!w->plot.XLog || (w->plot.XLog && val>0.0)' is equivalent to '!w->plot.XLog || val>0.0' [redundantCondition] ncview-2.1.11/src/SciPlot.c:2138:22: style: Redundant condition: w->plot.YLog. '!w->plot.YLog || (w->plot.YLog && val>0.0)' is equivalent to '!w->plot.YLog || val>0.0' [redundantCondition] ncview-2.1.11/src/SciPlot.c:2195:8: style: Condition '!w->plot.YAutoScale' is always false [knownConditionTrueFalse] ncview-2.1.11/src/SciPlot.c:2185:8: note: Assuming that condition '!w->plot.YAutoScale' is not redundant ncview-2.1.11/src/SciPlot.c:2195:8: note: Condition '!w->plot.YAutoScale' is always false ncview-2.1.11/src/SciPlot.c:1298:10: style: Local variable 'i' shadows outer variable [shadowVariable] ncview-2.1.11/src/SciPlot.c:1232:5: note: Shadowed declaration ncview-2.1.11/src/SciPlot.c:1298:10: note: Shadow variable ncview-2.1.11/src/SciPlot.c:512:18: style: Variable 'pfd' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/SciPlot.c:1226:7: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/SciPlot.c:1233:13: style: Variable 'p' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/SciPlot.c:1296:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/SciPlot.c:1600:7: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/SciPlot.c:1644:7: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/SciPlot.c:1825:7: style: Parameter 'legend' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:65:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:1853:7: style: Parameter 'xlist' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:92:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:1853:14: style: Parameter 'ylist' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:121:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:1871:8: style: Parameter 'xlist' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:136:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:1871:15: style: Parameter 'ylist' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:151:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:1889:9: style: Parameter 'xlist' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:166:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:1889:16: style: Parameter 'ylist' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:185:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:200:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:217:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:235:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:252:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:269:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:286:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:2891:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/file.c:321:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:353:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:3006:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/file.c:394:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:408:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:494:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_DOUBLE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:556:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:575:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:611:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file.c:630:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/SciPlot.c:3408:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/SciPlot.c:3441:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/SciPlot.c:3065:4: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ncview-2.1.11/src/SciPlot.c:3091:4: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ncview-2.1.11/src/SciPlot.c:2000:29: error: Undefined behaviour: float (-inf) to integer conversion overflow. [floatConversionOverflow] ncview-2.1.11/src/SciPlot.c:2100:26: note: Calling function 'ComputeAxis', 2nd argument '(real)0.0' value is 0.0 ncview-2.1.11/src/SciPlot.c:2000:29: note: float to integer conversion ncview-2.1.11/src/SciPlot.c:442:11: style: Variable 'attrflag' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/SciPlot.c:2417:16: style: Variable 'axisYlabelsize' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/SciPlot.c:2697:8: style: Variable 'height' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file.c:196:33: style:inconclusive: Function 'fi_dim_units' argument 2 names different: declaration 'var_name' definition 'dim_name'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:58:44: note: Function 'fi_dim_units' argument 2 names different: declaration 'var_name' definition 'dim_name'. ncview-2.1.11/src/file.c:196:33: note: Function 'fi_dim_units' argument 2 names different: declaration 'var_name' definition 'dim_name'. ncview-2.1.11/src/file.c:213:16: style:inconclusive: Function 'fi_n_dims' argument 1 names different: declaration 'fileid' definition 'id'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:49:22: note: Function 'fi_n_dims' argument 1 names different: declaration 'fileid' definition 'id'. ncview-2.1.11/src/file.c:213:16: note: Function 'fi_n_dims' argument 1 names different: declaration 'fileid' definition 'id'. ncview-2.1.11/src/file.c:307:34: style:inconclusive: Function 'fi_get_data' argument 2 names different: declaration 'start_pos' definition 'virt_start_pos'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:51:46: note: Function 'fi_get_data' argument 2 names different: declaration 'start_pos' definition 'virt_start_pos'. ncview-2.1.11/src/file.c:307:34: note: Function 'fi_get_data' argument 2 names different: declaration 'start_pos' definition 'virt_start_pos'. ncview-2.1.11/src/file.c:456:22: style:inconclusive: Function 'fi_dim_value' argument 1 names different: declaration 'v' definition 'var'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:62:35: note: Function 'fi_dim_value' argument 1 names different: declaration 'v' definition 'var'. ncview-2.1.11/src/file.c:456:22: note: Function 'fi_dim_value' argument 1 names different: declaration 'v' definition 'var'. ncview-2.1.11/src/file.c:456:46: style:inconclusive: Function 'fi_dim_value' argument 3 names different: declaration 'place' definition 'virt_place'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:62:57: note: Function 'fi_dim_value' argument 3 names different: declaration 'place' definition 'virt_place'. ncview-2.1.11/src/file.c:456:46: note: Function 'fi_dim_value' argument 3 names different: declaration 'place' definition 'virt_place'. ncview-2.1.11/src/file.c:456:66: style:inconclusive: Function 'fi_dim_value' argument 4 names different: declaration 'ret_val_double' definition 'return_val_double'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:62:72: note: Function 'fi_dim_value' argument 4 names different: declaration 'ret_val_double' definition 'return_val_double'. ncview-2.1.11/src/file.c:456:66: note: Function 'fi_dim_value' argument 4 names different: declaration 'ret_val_double' definition 'return_val_double'. ncview-2.1.11/src/file.c:457:8: style:inconclusive: Function 'fi_dim_value' argument 5 names different: declaration 'ret_val_char' definition 'return_val_char'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:62:94: note: Function 'fi_dim_value' argument 5 names different: declaration 'ret_val_char' definition 'return_val_char'. ncview-2.1.11/src/file.c:457:8: note: Function 'fi_dim_value' argument 5 names different: declaration 'ret_val_char' definition 'return_val_char'. ncview-2.1.11/src/file.c:623:35: style:inconclusive: Function 'fi_fill_value' argument 2 names different: declaration 'fillval' definition 'fill_value'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:69:43: note: Function 'fi_fill_value' argument 2 names different: declaration 'fillval' definition 'fill_value'. ncview-2.1.11/src/file.c:623:35: note: Function 'fi_fill_value' argument 2 names different: declaration 'fillval' definition 'fill_value'. ncview-2.1.11/src/file.c:345:42: style: Parameter 'virt_start_pos' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:345:66: style: Parameter 'count' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:418:36: style: Parameter 'dimval' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:418:53: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:418:66: style: Parameter 'var' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:418:78: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file.c:458:37: style: Parameter 'complete_ndim_virt_place' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file_netcdf.c:70:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:83:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_WRITE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:97:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOWRITE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:113:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOERR [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:130:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOERR [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:168:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOERR [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:253:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOERR [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:298:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:349:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:380:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOERR [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:394:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:441:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:518:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:588:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:719:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOERR [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:736:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:830:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:859:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:889:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_VAR_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:914:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:956:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_GLOBAL [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1013:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1099:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1192:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOERR [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1234:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1383:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1514:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOERR [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1688:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1782:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_NOERR [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1798:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1874:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:1952:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:2021:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:2045:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:2119:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:2132:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/file_netcdf.c:2201:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_ENOGRP [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/handle_rc_file.c:63:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/handle_rc_file.c:152:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/handle_rc_file.c:106:3: error: Resource leak: outfid [resourceLeak] ncview-2.1.11/src/handle_rc_file.c:114:3: error: Resource leak: outf [resourceLeak] ncview-2.1.11/src/handle_rc_file.c:54:9: style: Variable 'homedir' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/handle_rc_file.c:146:9: style: Variable 'homedir' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/handle_rc_file.c:180:11: style: Variable 'err' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/interface/RadioWidget.c:56:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/RadioWidget.c:138:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNbitmap [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/RadioWidget.c:144:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNbitmap [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/RadioWidget.c:165:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/RadioWidget.c:59:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/RadioWidget.c:53:30: note: Assuming allocation function fails ncview-2.1.11/src/interface/RadioWidget.c:53:11: note: Assignment 'retval=(struct RadioWidgetStruct*)malloc(sizeof(struct RadioWidgetStruct))', assigned value is 0 ncview-2.1.11/src/interface/RadioWidget.c:55:11: note: Assuming condition is false ncview-2.1.11/src/interface/RadioWidget.c:59:2: note: Null pointer dereference ncview-2.1.11/src/interface/RadioWidget.c:44:53: style:inconclusive: Function 'RadioWidget_init' argument 2 names different: declaration 'fromvert' definition 'widget_fromvert'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/RadioWidget.h:42:53: note: Function 'RadioWidget_init' argument 2 names different: declaration 'fromvert' definition 'widget_fromvert'. ncview-2.1.11/src/interface/RadioWidget.c:44:53: note: Function 'RadioWidget_init' argument 2 names different: declaration 'fromvert' definition 'widget_fromvert'. ncview-2.1.11/src/interface/RadioWidget.c:119:17: style: Variable 'label_widget' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file_netcdf.c:1290:28: style: The statement 'if (*(ret_val_char+i-1)!='\0') *(ret_val_char+i-1)='\0'' is logically equivalent to '*(ret_val_char+i-1)='\0''. [duplicateConditionalAssign] ncview-2.1.11/src/file_netcdf.c:1291:25: note: Assignment '*(ret_val_char+i-1)='\0'' ncview-2.1.11/src/file_netcdf.c:1290:28: note: Condition '*(ret_val_char+i-1)!='\0'' is redundant ncview-2.1.11/src/file_netcdf.c:400:11: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:398:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:400:11: note: Condition 'debug==1' is always false ncview-2.1.11/src/file_netcdf.c:493:17: style: Condition 'groupname==NULL' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:522:12: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:520:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:522:12: note: Condition 'debug==1' is always false ncview-2.1.11/src/file_netcdf.c:541:12: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:520:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:536:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:541:12: note: Condition 'debug==1' is always false ncview-2.1.11/src/file_netcdf.c:555:12: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:520:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:536:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:555:12: note: Condition 'debug==1' is always false ncview-2.1.11/src/file_netcdf.c:594:11: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:592:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:594:11: note: Condition 'debug==1' is always false ncview-2.1.11/src/file_netcdf.c:608:11: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:592:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:598:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:608:11: note: Condition 'debug==1' is always false ncview-2.1.11/src/file_netcdf.c:740:6: style: Condition 'debug' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:738:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:740:6: note: Condition 'debug' is always false ncview-2.1.11/src/file_netcdf.c:749:6: style: Condition 'debug' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:738:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:749:6: note: Condition 'debug' is always false ncview-2.1.11/src/file_netcdf.c:759:6: style: Condition 'debug' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:738:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:752:17: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:759:6: note: Condition 'debug' is always false ncview-2.1.11/src/file_netcdf.c:1244:6: style: Condition 'debug' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:1242:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:1244:6: note: Condition 'debug' is always false ncview-2.1.11/src/file_netcdf.c:1804:12: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:1802:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:1804:12: note: Condition 'debug==1' is always false ncview-2.1.11/src/file_netcdf.c:1817:12: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:1802:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:1812:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:1817:12: note: Condition 'debug==1' is always false ncview-2.1.11/src/file_netcdf.c:2049:6: style: Condition 'debug' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:2047:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2049:6: note: Condition 'debug' is always false ncview-2.1.11/src/file_netcdf.c:2056:7: style: Condition 'debug' is always false [knownConditionTrueFalse] ncview-2.1.11/src/file_netcdf.c:2047:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2056:7: note: Condition 'debug' is always false ncview-2.1.11/src/file_netcdf.c:219:8: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:427:18: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:608:17: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:611:18: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:611:18: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:611:18: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:611:18: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:620:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:620:4: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:620:4: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:629:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:629:4: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:629:4: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:1244:14: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:1571:4: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/file_netcdf.c:185:3: warning: If memory allocation fails, then there is a possible null pointer dereference: grp_var_name [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:184:32: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:184:18: note: Assignment 'grp_var_name=(char*)malloc(sizeof(char)*(strlen(var_name)+strlen(groupname)+10))', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:185:3: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:264:35: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: grp_id [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:261:24: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:261:11: note: Assignment 'grp_id=(int*)malloc(sizeof(int)*n_groups)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:264:35: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:1879:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ret_string [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:1878:32: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:1878:18: note: Assignment 'ret_string=(char*)malloc(retval_len)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:1879:12: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:1880:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: ret_string [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:1878:32: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:1878:18: note: Assignment 'ret_string=(char*)malloc(retval_len)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:1880:2: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:1964:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret_string [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:1963:33: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:1963:19: note: Assignment 'ret_string=(char*)malloc(2)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:1964:3: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:1969:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ret_string [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:1968:32: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:1968:18: note: Assignment 'ret_string=(char*)malloc(sizeof(char)*retval_len)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:1969:12: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:1970:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: ret_string [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:1968:32: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:1968:18: note: Assignment 'ret_string=(char*)malloc(sizeof(char)*retval_len)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:1970:2: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:2174:30: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: gid [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:2167:21: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:2167:8: note: Assignment 'gid=(int*)malloc(sizeof(int)*ng)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2174:30: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:2176:31: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: gid [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:2167:21: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:2167:8: note: Assignment 'gid=(int*)malloc(sizeof(int)*ng)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2176:31: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:2179:18: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: gid [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:2167:21: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:2167:8: note: Assignment 'gid=(int*)malloc(sizeof(int)*ng)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2179:18: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:2182:8: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: gid [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:2167:21: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:2167:8: note: Assignment 'gid=(int*)malloc(sizeof(int)*ng)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2182:8: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:2182:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: group_name [nullPointerOutOfMemory] ncview-2.1.11/src/file_netcdf.c:2175:22: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:2175:22: note: Assignment 'group_name=malloc(sizeof(char)*(gnl+2))', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2182:17: note: Null pointer dereference ncview-2.1.11/src/file_netcdf.c:475:23: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/file_netcdf.c:466:24: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:466:11: note: Assignment 'dim=(int*)malloc(n_dims*sizeof(int))', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:469:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:475:23: note: Null pointer addition ncview-2.1.11/src/file_netcdf.c:975:15: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/file_netcdf.c:970:26: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:970:12: note: Assignment 'ret_val=(char*)malloc(title_len+1)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:972:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:975:15: note: Null pointer addition ncview-2.1.11/src/file_netcdf.c:2074:25: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/file_netcdf.c:2067:36: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:2067:22: note: Assignment 'bounds_dimvarname=(char*)malloc(name_length+1)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2069:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:2074:25: note: Null pointer addition ncview-2.1.11/src/file_netcdf.c:1934:53: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] ncview-2.1.11/src/file_netcdf.c:1935:53: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] ncview-2.1.11/src/file_netcdf.c:2003:53: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] ncview-2.1.11/src/file_netcdf.c:2004:53: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] ncview-2.1.11/src/file_netcdf.c:775:9: style: Variable 'ierr' is reassigned a value before the old one has been used. [redundantAssignment] ncview-2.1.11/src/file_netcdf.c:771:9: note: ierr is assigned ncview-2.1.11/src/file_netcdf.c:775:9: note: ierr is overwritten ncview-2.1.11/src/file_netcdf.c:789:9: style: Variable 'ierr' is reassigned a value before the old one has been used. [redundantAssignment] ncview-2.1.11/src/file_netcdf.c:775:9: note: ierr is assigned ncview-2.1.11/src/file_netcdf.c:789:9: note: ierr is overwritten ncview-2.1.11/src/file_netcdf.c:1135:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] ncview-2.1.11/src/file_netcdf.c:1130:7: note: err is assigned ncview-2.1.11/src/file_netcdf.c:1135:11: note: err is overwritten ncview-2.1.11/src/file_netcdf.c:2168:7: style: Variable 'ierr' is reassigned a value before the old one has been used. [redundantAssignment] ncview-2.1.11/src/file_netcdf.c:2160:7: note: ierr is assigned ncview-2.1.11/src/file_netcdf.c:2168:7: note: ierr is overwritten ncview-2.1.11/src/file_netcdf.c:2176:8: style: Variable 'ierr' is reassigned a value before the old one has been used. [redundantAssignment] ncview-2.1.11/src/file_netcdf.c:2174:8: note: ierr is assigned ncview-2.1.11/src/file_netcdf.c:2176:8: note: ierr is overwritten ncview-2.1.11/src/file_netcdf.c:2179:8: style: Variable 'ierr' is reassigned a value before the old one has been used. [redundantAssignment] ncview-2.1.11/src/file_netcdf.c:2176:8: note: ierr is assigned ncview-2.1.11/src/file_netcdf.c:2179:8: note: ierr is overwritten ncview-2.1.11/src/file_netcdf.c:2204:9: style: Variable 'cursor' is reassigned a value before the old one has been used. [redundantAssignment] ncview-2.1.11/src/file_netcdf.c:2198:9: note: cursor is assigned ncview-2.1.11/src/file_netcdf.c:2204:9: note: cursor is overwritten ncview-2.1.11/src/file_netcdf.c:1074:43: style:inconclusive: Function 'netcdf_dim_units' argument 2 names different: declaration 'var_name' definition 'dim_name'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:93:51: note: Function 'netcdf_dim_units' argument 2 names different: declaration 'var_name' definition 'dim_name'. ncview-2.1.11/src/file_netcdf.c:1074:43: note: Function 'netcdf_dim_units' argument 2 names different: declaration 'var_name' definition 'dim_name'. ncview-2.1.11/src/file_netcdf.c:1231:8: style:inconclusive: Function 'netcdf_dim_value' argument 7 names different: declaration 'has_bounds' definition 'return_has_bounds'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:97:31: note: Function 'netcdf_dim_value' argument 7 names different: declaration 'has_bounds' definition 'return_has_bounds'. ncview-2.1.11/src/file_netcdf.c:1231:8: note: Function 'netcdf_dim_value' argument 7 names different: declaration 'has_bounds' definition 'return_has_bounds'. ncview-2.1.11/src/file_netcdf.c:1685:79: style:inconclusive: Function 'netcdf_fill_value' argument 4 names different: declaration 'opts' definition 'aux_data'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:105:81: note: Function 'netcdf_fill_value' argument 4 names different: declaration 'opts' definition 'aux_data'. ncview-2.1.11/src/file_netcdf.c:1685:79: note: Function 'netcdf_fill_value' argument 4 names different: declaration 'opts' definition 'aux_data'. ncview-2.1.11/src/file_netcdf.c:50:54: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file_netcdf.c:159:70: style: Parameter 'groupname' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file_netcdf.c:165:10: style: Variable 'size' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/file_netcdf.c:911:49: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file_netcdf.c:1096:41: style: Parameter 'dim_name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file_netcdf.c:1502:51: style: Parameter 'var_name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file_netcdf.c:1632:18: style: Variable 'netcdf' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/file_netcdf.c:1659:18: style: Variable 'netcdf' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/file_netcdf.c:1685:79: style: Parameter 'aux_data' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file_netcdf.c:1795:37: style: Parameter 'dim_name1' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/file_netcdf.c:74:7: style: Variable 'ierr' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file_netcdf.c:84:11: style: Variable 'dummyerr' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file_netcdf.c:164:24: style: Unused variable: n_groups [unusedVariable] ncview-2.1.11/src/file_netcdf.c:425:7: style: Variable 'err' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file_netcdf.c:1099:72: style: Unused variable: gn_slash [unusedVariable] ncview-2.1.11/src/file_netcdf.c:1103:5: style: Unused variable: parent_id [unusedVariable] ncview-2.1.11/src/file_netcdf.c:1104:5: style: Unused variable: id1 [unusedVariable] ncview-2.1.11/src/file_netcdf.c:1104:10: style: Unused variable: id2 [unusedVariable] ncview-2.1.11/src/file_netcdf.c:1104:15: style: Unused variable: id3 [unusedVariable] ncview-2.1.11/src/file_netcdf.c:1284:9: style: Variable 'err' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file_netcdf.c:1309:9: style: Variable 'err' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file_netcdf.c:1797:6: style: Unused variable: n_vars [unusedVariable] ncview-2.1.11/src/file_netcdf.c:1799:6: style: Unused variable: n_gatts [unusedVariable] ncview-2.1.11/src/file_netcdf.c:1799:15: style: Unused variable: rec_dim [unusedVariable] ncview-2.1.11/src/file_netcdf.c:2123:7: style: Variable 'ierr' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file_netcdf.c:2136:7: style: Variable 'ierr' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file_netcdf.c:2134:9: style: Unused variable: tlen [unusedVariable] ncview-2.1.11/src/file_netcdf.c:2168:7: style: Variable 'ierr' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/file_netcdf.c:2179:8: style: Variable 'ierr' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/interface/cbar.c:96:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/cbar.c:113:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/cbar.c:212:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/cbar.c:234:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/cbar.c:598:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/cbar.c:645:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/cbar.c:797:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/cbar.c:816:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:64:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:120:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:157:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:201:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:233:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:396:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:554:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:626:90: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XColor [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:642:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:670:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/colormap_funcs.c:741:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/calcalcs.c:1154:7: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] ncview-2.1.11/src/calcalcs.c:1206:7: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] ncview-2.1.11/src/calcalcs.c:1323:7: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] ncview-2.1.11/src/calcalcs.c:1087:51: style: Condition '(err=c_isleap_gregorian_y0(year,&leap))!=0' is always false [knownConditionTrueFalse] ncview-2.1.11/src/calcalcs.c:1087:34: note: Calling function 'c_isleap_gregorian_y0' returns 0 ncview-2.1.11/src/calcalcs.c:1087:51: note: Condition '(err=c_isleap_gregorian_y0(year,&leap))!=0' is always false ncview-2.1.11/src/calcalcs.c:1194:53: style: Condition '(ierr=c_isleap_gregorian_y0(*year,&leap))!=0' is always false [knownConditionTrueFalse] ncview-2.1.11/src/calcalcs.c:1194:35: note: Calling function 'c_isleap_gregorian_y0' returns 0 ncview-2.1.11/src/calcalcs.c:1194:53: note: Condition '(ierr=c_isleap_gregorian_y0(*year,&leap))!=0' is always false ncview-2.1.11/src/calcalcs.c:1536:52: style: Condition '(ierr=c_isleap_gregorian_y0(year,&leap))!=0' is always false [knownConditionTrueFalse] ncview-2.1.11/src/calcalcs.c:1536:35: note: Calling function 'c_isleap_gregorian_y0' returns 0 ncview-2.1.11/src/calcalcs.c:1536:52: note: Condition '(ierr=c_isleap_gregorian_y0(year,&leap))!=0' is always false ncview-2.1.11/src/calcalcs.c:1337:39: style:inconclusive: Function 'ccs_free_calendar' argument 1 names different: declaration 'calendar' definition 'cc'. [funcArgNamesDifferent] ncview-2.1.11/src/calcalcs.h:81:39: note: Function 'ccs_free_calendar' argument 1 names different: declaration 'calendar' definition 'cc'. ncview-2.1.11/src/calcalcs.c:1337:39: note: Function 'ccs_free_calendar' argument 1 names different: declaration 'calendar' definition 'cc'. ncview-2.1.11/src/calcalcs.c:741:40: style: Parameter 'code' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/calcalcs.c:741:52: style: Parameter 'longname' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/calcalcs.c:1009:16: style: Variable 'dpm2use' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/calcalcs.c:1071:16: style: Variable 'dpm2use' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/calcalcs.c:1119:20: style: Variable 'dpm2use' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/calcalcs.c:1175:20: style: Variable 'dpm2use' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/calcalcs.c:1230:16: style: Variable 'dpm2use' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/calcalcs.c:1289:20: style: Variable 'dpm2use' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/colormap_funcs.c:544:6: style: Condition 'dump_cmap_list' is always false [knownConditionTrueFalse] ncview-2.1.11/src/interface/colormap_funcs.c:542:19: note: Assignment 'dump_cmap_list=0', assigned value is 0 ncview-2.1.11/src/interface/colormap_funcs.c:544:6: note: Condition 'dump_cmap_list' is always false ncview-2.1.11/src/interface/colormap_funcs.c:626:3: warning: If memory allocation fails, then there is a possible null pointer dereference: *cml [nullPointerOutOfMemory] ncview-2.1.11/src/interface/colormap_funcs.c:625:29: note: Assuming allocation function fails ncview-2.1.11/src/interface/colormap_funcs.c:625:11: note: Assignment '(*cml)=(struct Cmaplist*)malloc(sizeof(struct Cmaplist))', assigned value is 0 ncview-2.1.11/src/interface/colormap_funcs.c:626:3: note: Null pointer dereference ncview-2.1.11/src/interface/colormap_funcs.c:112:51: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/colormap_funcs.c:360:31: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/colormap_funcs.c:639:33: style: Parameter 'cml' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/colormap_funcs.c:701:28: style: Variable 'prev' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/dataedit.c:62:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transientShellWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/dataedit.c:166:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNshown [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/dataedit.c:180:8: style:inconclusive: Function 'dataedit_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/dataedit.c:49:32: note: Function 'dataedit_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/dataedit.c:180:8: note: Function 'dataedit_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/dataedit.c:218:8: style:inconclusive: Function 'dataedit_dump_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/dataedit.c:47:37: note: Function 'dataedit_dump_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/dataedit.c:218:8: note: Function 'dataedit_dump_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/dataedit.c:227:8: style:inconclusive: Function 'dataedit_done_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/dataedit.c:48:37: note: Function 'dataedit_done_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/dataedit.c:227:8: note: Function 'dataedit_done_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/dataedit.c:236:8: style:inconclusive: Function 'dataedit_set_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/dataedit.c:50:36: note: Function 'dataedit_set_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/dataedit.c:236:8: note: Function 'dataedit_set_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/cbar.c:755:2: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:755:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:755:16: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:755:16: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:755:30: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:755:30: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:755:44: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:755:44: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:771:16: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:771:16: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:771:38: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:771:38: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:853:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:853:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:854:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:854:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:855:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:855:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:856:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:856:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:858:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:858:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:859:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:859:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:860:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:860:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:861:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:861:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:862:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:862:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:864:2: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:864:2: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:865:3: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:865:3: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:867:14: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:867:14: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:868:9: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:868:9: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:872:14: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:872:14: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:873:9: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:873:9: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:877:14: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:877:14: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:878:9: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:878:9: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:882:14: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:882:14: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:883:9: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:851:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:851:11: note: Assignment 'retval=(struct my_Font*)malloc(sizeof(struct my_Font))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:883:9: note: Null pointer dereference ncview-2.1.11/src/interface/cbar.c:868:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:868:21: note: Null pointer addition ncview-2.1.11/src/interface/cbar.c:873:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:873:21: note: Null pointer addition ncview-2.1.11/src/interface/cbar.c:878:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:878:21: note: Null pointer addition ncview-2.1.11/src/interface/cbar.c:883:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:883:21: note: Null pointer addition ncview-2.1.11/src/interface/display_info.c:65:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transientShellWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/display_info.c:126:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/cbar.c:563:8: style: Variable 's2' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/cbar.c:805:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/display_info.c:118:31: style:inconclusive: Function 'display_close_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/display_info.c:33:37: note: Function 'display_close_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/display_info.c:118:31: note: Function 'display_close_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/display_info.c:52:33: style: Parameter 'var_name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/filesel.c:73:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fs_double_click [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/filesel.c:215:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XAW_LIST_NONE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/filesel.c:231:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XAW_LIST_NONE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/filesel.c:290:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/interface.c:103:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/interface.c:323:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/filesel.c:351:22: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] ncview-2.1.11/src/interface/filesel.c:351:31: warning: If resource allocation fails, then there is a possible null pointer dereference: cwd [nullPointerOutOfResources] ncview-2.1.11/src/interface/filesel.c:350:15: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:350:15: note: Assignment 'cwd=opendir(".")', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:351:31: note: Null pointer dereference ncview-2.1.11/src/interface/filesel.c:357:15: warning: If memory allocation fails, then there is a possible null pointer dereference: tchar [nullPointerOutOfMemory] ncview-2.1.11/src/interface/filesel.c:356:27: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:356:13: note: Assignment 'tchar=(char*)malloc(sizeof(char)*slen)', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:357:15: note: Null pointer dereference ncview-2.1.11/src/interface/filesel.c:409:6: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/filesel.c:405:22: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:405:6: note: Assignment 's=(String*)malloc(sizeof(String*)*(n+1))', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:409:6: note: Null pointer addition ncview-2.1.11/src/interface/filesel.c:410:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/filesel.c:405:22: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:405:6: note: Assignment 's=(String*)malloc(sizeof(String*)*(n+1))', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:410:14: note: Null pointer addition ncview-2.1.11/src/interface/filesel.c:413:5: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/filesel.c:405:22: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:405:6: note: Assignment 's=(String*)malloc(sizeof(String*)*(n+1))', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:413:5: note: Null pointer addition ncview-2.1.11/src/interface/filesel.c:274:37: style:inconclusive: Function 'file_select' argument 2 names different: declaration 'orig_dir' definition 'init_dir'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:334:42: note: Function 'file_select' argument 2 names different: declaration 'orig_dir' definition 'init_dir'. ncview-2.1.11/src/interface/filesel.c:274:37: note: Function 'file_select' argument 2 names different: declaration 'orig_dir' definition 'init_dir'. ncview-2.1.11/src/interface/filesel.c:274:37: style: Parameter 'init_dir' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/filesel.c:387:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/filesel.c:405:2: warning: Size of pointer 's' used instead of size of its data. [pointerSize] ncview-2.1.11/src/interface/interface.c:167:27: style:inconclusive: Function 'in_create_colormap' argument 1 names different: declaration 'name' definition 'colormap_name'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:164:33: note: Function 'in_create_colormap' argument 1 names different: declaration 'name' definition 'colormap_name'. ncview-2.1.11/src/interface/interface.c:167:27: note: Function 'in_create_colormap' argument 1 names different: declaration 'name' definition 'colormap_name'. ncview-2.1.11/src/interface/interface.c:178:31: style:inconclusive: Function 'in_install_next_colormap' argument 1 names different: declaration 'do_widgets_flag' definition 'do_widgets'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:165:37: note: Function 'in_install_next_colormap' argument 1 names different: declaration 'do_widgets_flag' definition 'do_widgets'. ncview-2.1.11/src/interface/interface.c:178:31: note: Function 'in_install_next_colormap' argument 1 names different: declaration 'do_widgets_flag' definition 'do_widgets'. ncview-2.1.11/src/interface/interface.c:337:47: style:inconclusive: Function 'in_set_scan_dims' argument 2 names different: declaration 'x_axis' definition 'x_axis_name'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:178:53: note: Function 'in_set_scan_dims' argument 2 names different: declaration 'x_axis' definition 'x_axis_name'. ncview-2.1.11/src/interface/interface.c:337:47: note: Function 'in_set_scan_dims' argument 2 names different: declaration 'x_axis' definition 'x_axis_name'. ncview-2.1.11/src/interface/interface.c:337:66: style:inconclusive: Function 'in_set_scan_dims' argument 3 names different: declaration 'y_axis' definition 'y_axis_name'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:178:67: note: Function 'in_set_scan_dims' argument 3 names different: declaration 'y_axis' definition 'y_axis_name'. ncview-2.1.11/src/interface/interface.c:337:66: note: Function 'in_set_scan_dims' argument 3 names different: declaration 'y_axis' definition 'y_axis_name'. ncview-2.1.11/src/interface/interface.c:433:29: style:inconclusive: Function 'in_set_cur_dim_value' argument 1 names different: declaration 'name' definition 'dim_name'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:175:35: note: Function 'in_set_cur_dim_value' argument 1 names different: declaration 'name' definition 'dim_name'. ncview-2.1.11/src/interface/interface.c:433:29: note: Function 'in_set_cur_dim_value' argument 1 names different: declaration 'name' definition 'dim_name'. ncview-2.1.11/src/interface/make_tc_data.c:59:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/make_tc_data.c:162:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSBFirst [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_range.c:73:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_range.c:110:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TrueColor [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_range.c:110:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] ncview-2.1.11/src/interface/plot_range.c:116:2: note: Found duplicate branches for 'if' and 'else'. ncview-2.1.11/src/interface/plot_range.c:110:2: note: Found duplicate branches for 'if' and 'else'. ncview-2.1.11/src/interface/plot_range.c:47:8: style: struct member 'Min_Max_Struct::min' is never used. [unusedStructMember] ncview-2.1.11/src/interface/plot_range.c:47:13: style: struct member 'Min_Max_Struct::max' is never used. [unusedStructMember] ncview-2.1.11/src/interface/make_tc_data.c:68:84: style: Parameter 'color_list' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/make_tc_data.c:106:84: style: Parameter 'color_list' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/make_tc_data.c:146:84: style: Parameter 'color_list' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/plot_xy.c:120:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:413:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:428:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:466:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:496:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:516:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:553:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstate [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:590:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:607:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:636:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:665:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:684:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:700:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/printer_options.c:103:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNsensitive [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/printer_options.c:220:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transientShellWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/printer_options.c:554:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNsensitive [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/printer_options.c:568:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNsensitive [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:99:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:150:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TrueColor [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:326:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:345:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:365:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:376:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:388:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:398:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:429:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:443:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:450:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstate [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:460:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:474:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstate [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:484:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstring [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/range.c:150:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] ncview-2.1.11/src/interface/range.c:156:2: note: Found duplicate branches for 'if' and 'else'. ncview-2.1.11/src/interface/range.c:150:2: note: Found duplicate branches for 'if' and 'else'. ncview-2.1.11/src/interface/range.c:321:35: style:inconclusive: Function 'range_min_import_callback' argument 1 names different: declaration 'widget' definition 'w'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/range.c:65:41: note: Function 'range_min_import_callback' argument 1 names different: declaration 'widget' definition 'w'. ncview-2.1.11/src/interface/range.c:321:35: note: Function 'range_min_import_callback' argument 1 names different: declaration 'widget' definition 'w'. ncview-2.1.11/src/interface/range.c:340:35: style:inconclusive: Function 'range_max_import_callback' argument 1 names different: declaration 'widget' definition 'w'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/range.c:62:41: note: Function 'range_max_import_callback' argument 1 names different: declaration 'widget' definition 'w'. ncview-2.1.11/src/interface/range.c:340:35: note: Function 'range_max_import_callback' argument 1 names different: declaration 'widget' definition 'w'. ncview-2.1.11/src/interface/range.c:380:35: style:inconclusive: Function 'range_min_export_callback' argument 1 names different: declaration 'widget' definition 'w'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/range.c:64:41: note: Function 'range_min_export_callback' argument 1 names different: declaration 'widget' definition 'w'. ncview-2.1.11/src/interface/range.c:380:35: note: Function 'range_min_export_callback' argument 1 names different: declaration 'widget' definition 'w'. ncview-2.1.11/src/interface/range.c:435:35: style:inconclusive: Function 'range_max_export_callback' argument 1 names different: declaration 'widget' definition 'w'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/range.c:61:41: note: Function 'range_max_export_callback' argument 1 names different: declaration 'widget' definition 'w'. ncview-2.1.11/src/interface/range.c:435:35: note: Function 'range_max_export_callback' argument 1 names different: declaration 'widget' definition 'w'. ncview-2.1.11/src/interface/range.c:359:34: style: Parameter 'length' can be declared as pointer to const. However it seems that 'min_paste_cb' is a callback function, if 'length' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ncview-2.1.11/src/interface/range.c:333:3: note: You might need to cast the function pointer here ncview-2.1.11/src/interface/range.c:359:34: note: Parameter 'length' can be declared as pointer to const ncview-2.1.11/src/interface/range.c:370:34: style: Parameter 'length' can be declared as pointer to const. However it seems that 'max_paste_cb' is a callback function, if 'length' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ncview-2.1.11/src/interface/range.c:352:3: note: You might need to cast the function pointer here ncview-2.1.11/src/interface/range.c:370:34: note: Parameter 'length' can be declared as pointer to const ncview-2.1.11/src/interface/utils.c:57:23: style: Comparing expression of type 'unsigned char' against value 255. Condition is always false. [compareValueOutOfTypeRangeError] ncview-2.1.11/src/interface/plot_xy.c:463:33: warning: Either the condition 'i==10' is redundant or the array 'plot_dump_button_widget[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] ncview-2.1.11/src/interface/plot_xy.c:465:8: note: Assuming that condition 'i==10' is not redundant ncview-2.1.11/src/interface/plot_xy.c:463:33: note: Array index out of bounds ncview-2.1.11/src/interface/plot_xy.c:493:34: warning: Either the condition 'i==10' is redundant or the array 'plot_print_button_widget[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] ncview-2.1.11/src/interface/plot_xy.c:495:8: note: Assuming that condition 'i==10' is not redundant ncview-2.1.11/src/interface/plot_xy.c:493:34: note: Array index out of bounds ncview-2.1.11/src/interface/plot_xy.c:513:34: warning: Either the condition 'i==10' is redundant or the array 'plot_close_button_widget[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] ncview-2.1.11/src/interface/plot_xy.c:515:8: note: Assuming that condition 'i==10' is not redundant ncview-2.1.11/src/interface/plot_xy.c:513:34: note: Array index out of bounds ncview-2.1.11/src/interface/plot_xy.c:604:36: warning: Either the condition 'i==10' is redundant or the array 'plot_XY_xaxis_range_widget[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] ncview-2.1.11/src/interface/plot_xy.c:606:8: note: Assuming that condition 'i==10' is not redundant ncview-2.1.11/src/interface/plot_xy.c:604:36: note: Array index out of bounds ncview-2.1.11/src/interface/plot_xy.c:633:36: warning: Either the condition 'i==10' is redundant or the array 'plot_XY_yaxis_range_widget[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] ncview-2.1.11/src/interface/plot_xy.c:635:8: note: Assuming that condition 'i==10' is not redundant ncview-2.1.11/src/interface/plot_xy.c:633:36: note: Array index out of bounds ncview-2.1.11/src/interface/plot_xy.c:662:34: warning: Either the condition 'i==10' is redundant or the array 'plot_XY_xaxis_log_widget[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] ncview-2.1.11/src/interface/plot_xy.c:664:8: note: Assuming that condition 'i==10' is not redundant ncview-2.1.11/src/interface/plot_xy.c:662:34: note: Array index out of bounds ncview-2.1.11/src/interface/plot_xy.c:681:34: warning: Either the condition 'i==10' is redundant or the array 'plot_XY_yaxis_log_widget[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] ncview-2.1.11/src/interface/plot_xy.c:683:8: note: Assuming that condition 'i==10' is not redundant ncview-2.1.11/src/interface/plot_xy.c:681:34: note: Array index out of bounds ncview-2.1.11/src/interface/plot_xy.c:697:24: warning: Either the condition 'i==10' is redundant or the array 'plot_XY_widget[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] ncview-2.1.11/src/interface/plot_xy.c:699:8: note: Assuming that condition 'i==10' is not redundant ncview-2.1.11/src/interface/plot_xy.c:697:24: note: Array index out of bounds ncview-2.1.11/src/interface/plot_xy.c:463:33: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] ncview-2.1.11/src/interface/plot_xy.c:493:34: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] ncview-2.1.11/src/interface/plot_xy.c:513:34: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] ncview-2.1.11/src/interface/plot_xy.c:604:36: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] ncview-2.1.11/src/interface/plot_xy.c:633:36: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] ncview-2.1.11/src/interface/plot_xy.c:662:34: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] ncview-2.1.11/src/interface/plot_xy.c:681:34: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] ncview-2.1.11/src/interface/plot_xy.c:697:24: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] ncview-2.1.11/src/interface/set_options.c:154:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNx [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:286:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transientShellWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:603:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:618:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:631:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNsensitive [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:643:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNsensitive [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:675:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstate [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:696:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstate [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:809:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:875:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Expose [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:898:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PseudoColor [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/set_options.c:992:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/plot_xy.c:420:32: style:inconclusive: Function 'plot_XY_locked_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/plot_xy.c:78:45: note: Function 'plot_XY_locked_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/plot_xy.c:420:32: note: Function 'plot_XY_locked_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/plot_xy.c:456:30: style:inconclusive: Function 'plot_XY_dump_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/plot_xy.c:77:43: note: Function 'plot_XY_dump_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/plot_xy.c:456:30: note: Function 'plot_XY_dump_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/plot_xy.c:486:31: style:inconclusive: Function 'plot_XY_print_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/plot_xy.c:76:44: note: Function 'plot_XY_print_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/plot_xy.c:486:31: note: Function 'plot_XY_print_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/plot_xy.c:508:31: style:inconclusive: Function 'plot_XY_close_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/plot_xy.c:75:44: note: Function 'plot_XY_close_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/plot_xy.c:508:31: note: Function 'plot_XY_close_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/set_options.c:603:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/interface/set_options.c:908:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/set_options.c:905:38: note: Assuming allocation function fails ncview-2.1.11/src/interface/set_options.c:905:15: note: Assignment 'cbar_data=(unsigned char*)malloc(sizeof(unsigned char)*options.n_colors*28)', assigned value is 0 ncview-2.1.11/src/interface/set_options.c:908:15: note: Null pointer addition ncview-2.1.11/src/interface/set_options.c:889:24: style: Local variable 'cbar_data' shadows outer function [shadowFunction] ncview-2.1.11/src/ncview.protos.h:399:7: note: Shadowed declaration ncview-2.1.11/src/interface/set_options.c:889:24: note: Shadow variable ncview-2.1.11/src/interface/set_options.c:867:67: style: Parameter 'event' can be declared as pointer to const. However it seems that 'expose_cbsel_cbar' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ncview-2.1.11/src/interface/set_options.c:546:22: note: You might need to cast the function pointer here ncview-2.1.11/src/interface/set_options.c:867:67: note: Parameter 'event' can be declared as pointer to const ncview-2.1.11/src/interface/set_options.c:944:11: style: Variable 'screen' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/set_options.c:444:3: warning: Size of pointer 'opt_cbsel_cmap_entry_widget' used instead of size of its data. [pointerSize] ncview-2.1.11/src/interface/set_options.c:445:3: warning: Size of pointer 'opt_cbsel_enable_widget' used instead of size of its data. [pointerSize] ncview-2.1.11/src/interface/set_options.c:446:3: warning: Size of pointer 'opt_cbsel_top_widget' used instead of size of its data. [pointerSize] ncview-2.1.11/src/interface/set_options.c:447:3: warning: Size of pointer 'opt_cbsel_up_widget' used instead of size of its data. [pointerSize] ncview-2.1.11/src/interface/set_options.c:448:3: warning: Size of pointer 'opt_cbsel_down_widget' used instead of size of its data. [pointerSize] ncview-2.1.11/src/interface/set_options.c:449:3: warning: Size of pointer 'opt_cbsel_bottom_widget' used instead of size of its data. [pointerSize] ncview-2.1.11/src/interface/set_options.c:450:3: warning: Size of pointer 'opt_cbsel_name_widget' used instead of size of its data. [pointerSize] ncview-2.1.11/src/interface/set_options.c:451:3: warning: Size of pointer 'opt_cbsel_cbar_widget' used instead of size of its data. [pointerSize] ncview-2.1.11/src/interface/set_options.c:962:10: style: Variable 'screen' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/interface/x_interface.c:471:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNtitle [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:618:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmap_mod3 [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:738:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PseudoColor [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:842:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable labelWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:906:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable boxWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1049:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable boxWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1271:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable menuButtonWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1356:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1413:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable boxWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1491:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1615:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1635:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable boxWidgetClass [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1701:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PseudoColor [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1854:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1881:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TrueColor [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:1981:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNheight [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2091:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2100:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2225:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2247:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2269:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2291:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2446:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2524:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNlabel [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2561:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2604:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNsensitive [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2676:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNstate [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2714:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TrueColor [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2871:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2923:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2979:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TrueColor [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3098:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3154:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3181:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNwidth [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3422:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNwidth [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3451:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNwidth [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3472:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Expose [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3486:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Expose [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3531:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3562:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:3668:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XtNwidth [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/interface/x_interface.c:2445:29: warning: Comparison is wrong. Result of 'varlist_widget+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] ncview-2.1.11/src/interface/x_interface.c:1210:3: warning: If memory allocation fails, then there is a possible null pointer dereference: names [nullPointerOutOfMemory] ncview-2.1.11/src/interface/x_interface.c:1208:26: note: Assuming allocation function fails ncview-2.1.11/src/interface/x_interface.c:1208:11: note: Assignment 'names=(char**)malloc(nmax*sizeof(char*))', assigned value is 0 ncview-2.1.11/src/interface/x_interface.c:1210:3: note: Null pointer dereference ncview-2.1.11/src/interface/x_interface.c:1277:3: warning: If memory allocation fails, then there is a possible null pointer dereference: var_menu_2use [nullPointerOutOfMemory] ncview-2.1.11/src/interface/x_interface.c:1381:34: note: Assuming allocation function fails ncview-2.1.11/src/interface/x_interface.c:1381:18: note: Assignment 'var_menu_grp=(Widget*)malloc(sizeof(Widget))', assigned value is 0 ncview-2.1.11/src/interface/x_interface.c:1386:80: note: Calling function 'x_init_widgets_varsel_menu_inner', 5th argument 'var_menu_grp' value is 0 ncview-2.1.11/src/interface/x_interface.c:1277:3: note: Null pointer dereference ncview-2.1.11/src/interface/x_interface.c:1327:3: warning: If memory allocation fails, then there is a possible null pointer dereference: my_grp_num [nullPointerOutOfMemory] ncview-2.1.11/src/interface/x_interface.c:1324:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/x_interface.c:1324:15: note: Assignment 'my_grp_num=(int*)malloc(sizeof(int)*nvars)', assigned value is 0 ncview-2.1.11/src/interface/x_interface.c:1327:3: note: Null pointer dereference ncview-2.1.11/src/interface/x_interface.c:1355:7: warning: If memory allocation fails, then there is a possible null pointer dereference: my_grp_num [nullPointerOutOfMemory] ncview-2.1.11/src/interface/x_interface.c:1324:28: note: Assuming allocation function fails ncview-2.1.11/src/interface/x_interface.c:1324:15: note: Assignment 'my_grp_num=(int*)malloc(sizeof(int)*nvars)', assigned value is 0 ncview-2.1.11/src/interface/x_interface.c:1355:7: note: Null pointer dereference ncview-2.1.11/src/interface/x_interface.c:691:37: style:inconclusive: Function 'x_query_pointer_position' argument 1 names different: declaration 'x' definition 'ret_x'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:249:38: note: Function 'x_query_pointer_position' argument 1 names different: declaration 'x' definition 'ret_x'. ncview-2.1.11/src/interface/x_interface.c:691:37: note: Function 'x_query_pointer_position' argument 1 names different: declaration 'x' definition 'ret_x'. ncview-2.1.11/src/interface/x_interface.c:691:49: style:inconclusive: Function 'x_query_pointer_position' argument 2 names different: declaration 'y' definition 'ret_y'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:249:46: note: Function 'x_query_pointer_position' argument 2 names different: declaration 'y' definition 'ret_y'. ncview-2.1.11/src/interface/x_interface.c:691:49: note: Function 'x_query_pointer_position' argument 2 names different: declaration 'y' definition 'ret_y'. ncview-2.1.11/src/interface/x_interface.c:2132:27: style:inconclusive: Function 'options_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:399:28: note: Function 'options_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2132:27: note: Function 'options_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2138:25: style:inconclusive: Function 'range_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:398:26: note: Function 'range_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2138:25: note: Function 'range_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2144:36: style:inconclusive: Function 'print_button_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:395:36: note: Function 'print_button_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2144:36: note: Function 'print_button_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2150:31: style:inconclusive: Function 'blowup_type_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:396:31: note: Function 'blowup_type_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2150:31: note: Function 'blowup_type_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2156:42: style:inconclusive: Function 'range_mod3' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:400:43: note: Function 'range_mod3' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2156:42: note: Function 'range_mod3' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2156:57: style:inconclusive: Function 'range_mod3' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:400:54: note: Function 'range_mod3' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2156:57: note: Function 'range_mod3' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2156:75: style:inconclusive: Function 'range_mod3' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:400:67: note: Function 'range_mod3' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2156:75: note: Function 'range_mod3' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2162:26: style:inconclusive: Function 'dimset_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:401:27: note: Function 'dimset_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2162:26: note: Function 'dimset_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2168:24: style:inconclusive: Function 'quit_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:402:25: note: Function 'quit_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2168:24: note: Function 'quit_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2174:24: style:inconclusive: Function 'cmap_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:403:25: note: Function 'cmap_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2174:24: note: Function 'cmap_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2180:41: style:inconclusive: Function 'cmap_mod3' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:404:42: note: Function 'cmap_mod3' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2180:41: note: Function 'cmap_mod3' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2180:56: style:inconclusive: Function 'cmap_mod3' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:404:53: note: Function 'cmap_mod3' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2180:56: note: Function 'cmap_mod3' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2180:74: style:inconclusive: Function 'cmap_mod3' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:404:66: note: Function 'cmap_mod3' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2180:74: note: Function 'cmap_mod3' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2186:42: style:inconclusive: Function 'do_plot_xy' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:434:43: note: Function 'do_plot_xy' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2186:42: note: Function 'do_plot_xy' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2186:57: style:inconclusive: Function 'do_plot_xy' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:434:54: note: Function 'do_plot_xy' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2186:57: note: Function 'do_plot_xy' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2186:75: style:inconclusive: Function 'do_plot_xy' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:434:67: note: Function 'do_plot_xy' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2186:75: note: Function 'do_plot_xy' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2192:53: style:inconclusive: Function 'do_set_dataedit_place' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:436:55: note: Function 'do_set_dataedit_place' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2192:53: note: Function 'do_set_dataedit_place' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2192:68: style:inconclusive: Function 'do_set_dataedit_place' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:436:66: note: Function 'do_set_dataedit_place' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2192:68: note: Function 'do_set_dataedit_place' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2192:86: style:inconclusive: Function 'do_set_dataedit_place' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:436:79: note: Function 'do_set_dataedit_place' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2192:86: note: Function 'do_set_dataedit_place' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2198:43: style:inconclusive: Function 'do_quit_app' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:435:55: note: Function 'do_quit_app' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2198:43: note: Function 'do_quit_app' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2198:58: style:inconclusive: Function 'do_quit_app' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:435:66: note: Function 'do_quit_app' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2198:58: note: Function 'do_quit_app' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2198:76: style:inconclusive: Function 'do_quit_app' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:435:79: note: Function 'do_quit_app' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2198:76: note: Function 'do_quit_app' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2204:55: style:inconclusive: Function 'do_set_min_from_curdata' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:437:55: note: Function 'do_set_min_from_curdata' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2204:55: note: Function 'do_set_min_from_curdata' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2204:70: style:inconclusive: Function 'do_set_min_from_curdata' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:437:66: note: Function 'do_set_min_from_curdata' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2204:70: note: Function 'do_set_min_from_curdata' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2204:88: style:inconclusive: Function 'do_set_min_from_curdata' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:437:79: note: Function 'do_set_min_from_curdata' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2204:88: note: Function 'do_set_min_from_curdata' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2210:55: style:inconclusive: Function 'do_set_max_from_curdata' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:438:55: note: Function 'do_set_max_from_curdata' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2210:55: note: Function 'do_set_max_from_curdata' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2210:70: style:inconclusive: Function 'do_set_max_from_curdata' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:438:66: note: Function 'do_set_max_from_curdata' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2210:70: note: Function 'do_set_max_from_curdata' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2210:88: style:inconclusive: Function 'do_set_max_from_curdata' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:438:79: note: Function 'do_set_max_from_curdata' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2210:88: note: Function 'do_set_max_from_curdata' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2216:31: style:inconclusive: Function 'diminfo_cur_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:429:31: note: Function 'diminfo_cur_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2216:31: note: Function 'diminfo_cur_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2237:31: style:inconclusive: Function 'diminfo_cur_mod2' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:430:31: note: Function 'diminfo_cur_mod2' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2237:31: note: Function 'diminfo_cur_mod2' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2237:53: style:inconclusive: Function 'diminfo_cur_mod2' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:430:48: note: Function 'diminfo_cur_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2237:53: note: Function 'diminfo_cur_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2237:68: style:inconclusive: Function 'diminfo_cur_mod2' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:430:59: note: Function 'diminfo_cur_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2237:68: note: Function 'diminfo_cur_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2238:18: style:inconclusive: Function 'diminfo_cur_mod2' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:430:72: note: Function 'diminfo_cur_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2238:18: note: Function 'diminfo_cur_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2259:31: style:inconclusive: Function 'diminfo_cur_mod3' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:431:31: note: Function 'diminfo_cur_mod3' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2259:31: note: Function 'diminfo_cur_mod3' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2259:53: style:inconclusive: Function 'diminfo_cur_mod3' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:431:48: note: Function 'diminfo_cur_mod3' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2259:53: note: Function 'diminfo_cur_mod3' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2259:68: style:inconclusive: Function 'diminfo_cur_mod3' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:431:59: note: Function 'diminfo_cur_mod3' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2259:68: note: Function 'diminfo_cur_mod3' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2260:18: style:inconclusive: Function 'diminfo_cur_mod3' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:431:72: note: Function 'diminfo_cur_mod3' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2260:18: note: Function 'diminfo_cur_mod3' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2281:31: style:inconclusive: Function 'diminfo_cur_mod4' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:432:31: note: Function 'diminfo_cur_mod4' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2281:31: note: Function 'diminfo_cur_mod4' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2281:53: style:inconclusive: Function 'diminfo_cur_mod4' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:432:48: note: Function 'diminfo_cur_mod4' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2281:53: note: Function 'diminfo_cur_mod4' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2281:68: style:inconclusive: Function 'diminfo_cur_mod4' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:432:59: note: Function 'diminfo_cur_mod4' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2281:68: note: Function 'diminfo_cur_mod4' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2282:18: style:inconclusive: Function 'diminfo_cur_mod4' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:432:72: note: Function 'diminfo_cur_mod4' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2282:18: note: Function 'diminfo_cur_mod4' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2303:27: style:inconclusive: Function 'restart_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:405:28: note: Function 'restart_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2303:27: note: Function 'restart_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2309:27: style:inconclusive: Function 'reverse_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:406:28: note: Function 'reverse_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2309:27: note: Function 'reverse_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2315:44: style:inconclusive: Function 'reverse_mod2' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:407:48: note: Function 'reverse_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2315:44: note: Function 'reverse_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2315:59: style:inconclusive: Function 'reverse_mod2' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:407:59: note: Function 'reverse_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2315:59: note: Function 'reverse_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2315:77: style:inconclusive: Function 'reverse_mod2' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:407:72: note: Function 'reverse_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2315:77: note: Function 'reverse_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2321:41: style:inconclusive: Function 'back_mod2' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:409:46: note: Function 'back_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2321:41: note: Function 'back_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2321:56: style:inconclusive: Function 'back_mod2' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:409:57: note: Function 'back_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2321:56: note: Function 'back_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2321:74: style:inconclusive: Function 'back_mod2' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:409:70: note: Function 'back_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2321:74: note: Function 'back_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2327:24: style:inconclusive: Function 'back_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:408:25: note: Function 'back_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2327:24: note: Function 'back_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2333:25: style:inconclusive: Function 'pause_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:410:26: note: Function 'pause_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2333:25: note: Function 'pause_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2339:27: style:inconclusive: Function 'forward_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:411:28: note: Function 'forward_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2339:27: note: Function 'forward_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2345:44: style:inconclusive: Function 'forward_mod2' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:412:46: note: Function 'forward_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2345:44: note: Function 'forward_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2345:59: style:inconclusive: Function 'forward_mod2' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:412:57: note: Function 'forward_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2345:59: note: Function 'forward_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2345:77: style:inconclusive: Function 'forward_mod2' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:412:70: note: Function 'forward_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2345:77: note: Function 'forward_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2351:24: style:inconclusive: Function 'edit_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:414:25: note: Function 'edit_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2351:24: note: Function 'edit_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2357:24: style:inconclusive: Function 'info_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:415:25: note: Function 'info_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2357:24: note: Function 'info_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2363:22: style:inconclusive: Function 'ff_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:413:24: note: Function 'ff_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2363:22: note: Function 'ff_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2369:48: style:inconclusive: Function 'fastforward_mod2' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:416:49: note: Function 'fastforward_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2369:48: note: Function 'fastforward_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2369:63: style:inconclusive: Function 'fastforward_mod2' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:416:60: note: Function 'fastforward_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2369:63: note: Function 'fastforward_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2369:81: style:inconclusive: Function 'fastforward_mod2' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:416:73: note: Function 'fastforward_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2369:81: note: Function 'fastforward_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2375:26: style:inconclusive: Function 'invert_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:417:27: note: Function 'invert_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2375:26: note: Function 'invert_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2381:32: style:inconclusive: Function 'invert_color_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:418:33: note: Function 'invert_color_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2381:32: note: Function 'invert_color_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2387:26: style:inconclusive: Function 'blowup_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:419:27: note: Function 'blowup_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2387:26: note: Function 'blowup_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2393:43: style:inconclusive: Function 'blowup_mod4' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:422:44: note: Function 'blowup_mod4' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2393:43: note: Function 'blowup_mod4' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2393:58: style:inconclusive: Function 'blowup_mod4' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:422:55: note: Function 'blowup_mod4' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2393:58: note: Function 'blowup_mod4' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2393:76: style:inconclusive: Function 'blowup_mod4' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:422:68: note: Function 'blowup_mod4' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2393:76: note: Function 'blowup_mod4' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2399:43: style:inconclusive: Function 'blowup_mod3' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:421:44: note: Function 'blowup_mod3' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2399:43: note: Function 'blowup_mod3' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2399:58: style:inconclusive: Function 'blowup_mod3' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:421:55: note: Function 'blowup_mod3' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2399:58: note: Function 'blowup_mod3' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2399:76: style:inconclusive: Function 'blowup_mod3' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:421:68: note: Function 'blowup_mod3' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2399:76: note: Function 'blowup_mod3' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2405:43: style:inconclusive: Function 'blowup_mod2' argument 2 names different: declaration 'e' definition 'event'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:420:44: note: Function 'blowup_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2405:43: note: Function 'blowup_mod2' argument 2 names different: declaration 'e' definition 'event'. ncview-2.1.11/src/interface/x_interface.c:2405:58: style:inconclusive: Function 'blowup_mod2' argument 3 names different: declaration 'p' definition 'params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:420:55: note: Function 'blowup_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2405:58: note: Function 'blowup_mod2' argument 3 names different: declaration 'p' definition 'params'. ncview-2.1.11/src/interface/x_interface.c:2405:76: style:inconclusive: Function 'blowup_mod2' argument 4 names different: declaration 'n' definition 'num_params'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:420:68: note: Function 'blowup_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2405:76: note: Function 'blowup_mod2' argument 4 names different: declaration 'n' definition 'num_params'. ncview-2.1.11/src/interface/x_interface.c:2411:29: style:inconclusive: Function 'transform_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:426:30: note: Function 'transform_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2411:29: note: Function 'transform_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2421:27: style:inconclusive: Function 'varlist_mod1' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:423:28: note: Function 'varlist_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2421:27: note: Function 'varlist_mod1' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2706:50: style:inconclusive: Function 'x_set_scan_dims' argument 2 names different: declaration 'x_axis' definition 'x_axis_name'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:244:55: note: Function 'x_set_scan_dims' argument 2 names different: declaration 'x_axis' definition 'x_axis_name'. ncview-2.1.11/src/interface/x_interface.c:2706:50: note: Function 'x_set_scan_dims' argument 2 names different: declaration 'x_axis' definition 'x_axis_name'. ncview-2.1.11/src/interface/x_interface.c:2706:69: style:inconclusive: Function 'x_set_scan_dims' argument 3 names different: declaration 'y_axis' definition 'y_axis_name'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:244:69: note: Function 'x_set_scan_dims' argument 3 names different: declaration 'y_axis' definition 'y_axis_name'. ncview-2.1.11/src/interface/x_interface.c:2706:69: note: Function 'x_set_scan_dims' argument 3 names different: declaration 'y_axis' definition 'y_axis_name'. ncview-2.1.11/src/interface/x_interface.c:2845:30: style:inconclusive: Function 'dimsel_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:427:31: note: Function 'dimsel_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:2845:30: note: Function 'dimsel_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:3081:35: style:inconclusive: Function 'error_popup_callback' argument 1 names different: declaration 'w' definition 'widget'. [funcArgNamesDifferent] ncview-2.1.11/src/interface/x_interface.c:428:35: note: Function 'error_popup_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:3081:35: note: Function 'error_popup_callback' argument 1 names different: declaration 'w' definition 'widget'. ncview-2.1.11/src/interface/x_interface.c:3149:33: style:inconclusive: Function 'x_set_cur_dim_value' argument 1 names different: declaration 'name' definition 'dim_name'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:243:38: note: Function 'x_set_cur_dim_value' argument 1 names different: declaration 'name' definition 'dim_name'. ncview-2.1.11/src/interface/x_interface.c:3149:33: note: Function 'x_set_cur_dim_value' argument 1 names different: declaration 'name' definition 'dim_name'. ncview-2.1.11/src/interface/x_interface.c:3174:35: style:inconclusive: Function 'x_init_dim_info' argument 1 names different: declaration 'dim_list' definition 'dims'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:241:37: note: Function 'x_init_dim_info' argument 1 names different: declaration 'dim_list' definition 'dims'. ncview-2.1.11/src/interface/x_interface.c:3174:35: note: Function 'x_init_dim_info' argument 1 names different: declaration 'dim_list' definition 'dims'. ncview-2.1.11/src/interface/x_interface.c:454:10: style: Variable 'visual' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/x_interface.c:456:17: style: Variable 'ximage' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/x_interface.c:1252:84: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2156:42: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2156:57: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2156:75: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2180:41: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2180:56: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2180:74: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2186:42: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2186:57: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2186:75: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2192:53: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2192:68: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2192:86: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2198:43: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2198:58: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2198:76: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2204:55: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2204:70: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2204:88: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2210:55: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2210:70: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2210:88: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2219:10: style: Variable 'w' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/x_interface.c:2241:10: style: Variable 'w' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/x_interface.c:2263:10: style: Variable 'w' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/x_interface.c:2285:10: style: Variable 'w' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/interface/x_interface.c:2315:44: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2315:59: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2315:77: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2321:41: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2321:56: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2321:74: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2345:44: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2345:59: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2345:77: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2369:48: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2369:63: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2369:81: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2393:43: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2393:58: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2393:76: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2399:43: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2399:58: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2399:76: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2405:43: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2405:58: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2405:76: style: Parameter 'num_params' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2439:35: style: Parameter 'varname' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2856:73: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:2857:55: style: Parameter 'selected_name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:3470:70: style: Parameter 'event' can be declared as pointer to const. However it seems that 'expose_ccontour' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ncview-2.1.11/src/interface/x_interface.c:810:19: note: You might need to cast the function pointer here ncview-2.1.11/src/interface/x_interface.c:3470:70: note: Parameter 'event' can be declared as pointer to const ncview-2.1.11/src/interface/x_interface.c:3484:70: style: Parameter 'event' can be declared as pointer to const. However it seems that 'expose_colorbar' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ncview-2.1.11/src/interface/x_interface.c:1754:20: note: You might need to cast the function pointer here ncview-2.1.11/src/interface/x_interface.c:3484:70: note: Parameter 'event' can be declared as pointer to const ncview-2.1.11/src/interface/x_interface.c:3515:37: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:3515:48: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:3515:61: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/interface/x_interface.c:1972:12: style: Variable 'sb_width' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/interface/x_interface.c:1974:12: style: Variable 'sb_width' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/ncview.c:109:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/ncview.c:167:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/ncview.c:604:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/ncview.c:790:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/ncview.c:839:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:61:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:116:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:175:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:260:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:298:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:346:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:377:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:431:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:456:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:511:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:563:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:649:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:684:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:818:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:942:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:1008:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:1061:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:1108:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:1153:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:1191:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/stringlist.c:573:6: style: Condition 'debug' is always false [knownConditionTrueFalse] ncview-2.1.11/src/stringlist.c:571:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/stringlist.c:573:6: note: Condition 'debug' is always false ncview-2.1.11/src/stringlist.c:582:7: style: Condition 'debug' is always false [knownConditionTrueFalse] ncview-2.1.11/src/stringlist.c:571:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/stringlist.c:582:7: note: Condition 'debug' is always false ncview-2.1.11/src/stringlist.c:695:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/stringlist.c:775:4: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/stringlist.c:1153:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/stringlist.c:1191:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/stringlist.c:533:2: warning: Either the condition 'new_el==NULL' is redundant or there is possible null pointer dereference: new_el. [nullPointerRedundantCheck] ncview-2.1.11/src/stringlist.c:534:13: note: Assuming that condition 'new_el==NULL' is not redundant ncview-2.1.11/src/stringlist.c:533:2: note: Null pointer dereference ncview-2.1.11/src/stringlist.c:1146:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/stringlist.c:1145:26: note: Assuming allocation function fails ncview-2.1.11/src/stringlist.c:1145:12: note: Assignment 'retval=(char*)malloc(sizeof(char))', assigned value is 0 ncview-2.1.11/src/stringlist.c:1146:4: note: Null pointer dereference ncview-2.1.11/src/stringlist.c:1184:4: warning: If memory allocation fails, then there is a possible null pointer dereference: retval [nullPointerOutOfMemory] ncview-2.1.11/src/stringlist.c:1183:26: note: Assuming allocation function fails ncview-2.1.11/src/stringlist.c:1183:12: note: Assignment 'retval=(char*)malloc(sizeof(char))', assigned value is 0 ncview-2.1.11/src/stringlist.c:1184:4: note: Null pointer dereference ncview-2.1.11/src/stringlist.c:665:61: style:inconclusive: Function 'stringlist_line_to_sl' argument 3 names different: declaration 'sl' definition 'retval'. [funcArgNamesDifferent] ncview-2.1.11/src/stringlist.c:21:72: note: Function 'stringlist_line_to_sl' argument 3 names different: declaration 'sl' definition 'retval'. ncview-2.1.11/src/stringlist.c:665:61: note: Function 'stringlist_line_to_sl' argument 3 names different: declaration 'sl' definition 'retval'. ncview-2.1.11/src/stringlist.c:29:56: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/stringlist.c:452:49: style: Parameter 'new_string' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/stringlist.c:452:67: style: Parameter 'aux' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/stringlist.c:508:49: style: Parameter 'new_string' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/stringlist.c:801:35: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/stringlist.c:1138:35: style: Parameter 'ss' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/stringlist.c:1176:33: style: Parameter 'ss' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/stringlist.c:60:11: style: Variable 'err' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/stringlist.c:115:11: style: Variable 'err' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/stringlist.c:579:17: style: Variable 'version_number' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/udu.c:309:24: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/udu.c:314:25: style: Parameter 'dimname' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/udu.c:314:40: style: Parameter 'units' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/udu.c:319:40: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/udu.c:34:8: style: struct member 'UniqList::name' is never used. [unusedStructMember] ncview-2.1.11/src/udu.c:35:8: style: struct member 'UniqList::next' is never used. [unusedStructMember] ncview-2.1.11/src/utCalendar2_cal.c:116:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/utCalendar2_cal.c:414:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UT_ASCII [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/utCalendar2_cal.c:505:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UT_ASCII [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/utCalendar2_cal.c:535:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UT_ASCII [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/utCalendar2_cal.c:574:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UT_ASCII [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/utCalendar2_cal.c:623:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ut_ignore [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/utCalendar2_cal.c:700:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/utCalendar2_cal.c:820:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/utCalendar2_cal.c:867:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/utCalendar2_cal.c:857:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ncview-2.1.11/src/utCalendar2_cal.c:872:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ncview-2.1.11/src/utCalendar2_cal.c:137:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/utCalendar2_cal.c:253:11: warning: If memory allocation fails, then there is a possible null pointer dereference: prev_calendar [nullPointerOutOfMemory] ncview-2.1.11/src/utCalendar2_cal.c:252:33: note: Assuming allocation function fails ncview-2.1.11/src/utCalendar2_cal.c:252:19: note: Assignment 'prev_calendar=(char*)malloc(sizeof(char)*(strlen(cal2use->name)+1))', assigned value is 0 ncview-2.1.11/src/utCalendar2_cal.c:253:11: note: Null pointer dereference ncview-2.1.11/src/utCalendar2_cal.c:256:11: warning: If memory allocation fails, then there is a possible null pointer dereference: prev_dataunits_str [nullPointerOutOfMemory] ncview-2.1.11/src/utCalendar2_cal.c:255:38: note: Assuming allocation function fails ncview-2.1.11/src/utCalendar2_cal.c:255:24: note: Assignment 'prev_dataunits_str=(char*)malloc(sizeof(char)*(strlen(dataunits_str)+1))', assigned value is 0 ncview-2.1.11/src/utCalendar2_cal.c:256:11: note: Null pointer dereference ncview-2.1.11/src/utCalendar2_cal.c:450:11: warning: If memory allocation fails, then there is a possible null pointer dereference: prev_calendar [nullPointerOutOfMemory] ncview-2.1.11/src/utCalendar2_cal.c:449:33: note: Assuming allocation function fails ncview-2.1.11/src/utCalendar2_cal.c:449:19: note: Assignment 'prev_calendar=(char*)malloc(sizeof(char)*(strlen(cal2use->name)+1))', assigned value is 0 ncview-2.1.11/src/utCalendar2_cal.c:450:11: note: Null pointer dereference ncview-2.1.11/src/utCalendar2_cal.c:453:11: warning: If memory allocation fails, then there is a possible null pointer dereference: prev_user_unit_str [nullPointerOutOfMemory] ncview-2.1.11/src/utCalendar2_cal.c:452:38: note: Assuming allocation function fails ncview-2.1.11/src/utCalendar2_cal.c:452:24: note: Assignment 'prev_user_unit_str=(char*)malloc(sizeof(char)*(strlen(user_unit_str)+1))', assigned value is 0 ncview-2.1.11/src/utCalendar2_cal.c:453:11: note: Null pointer dereference ncview-2.1.11/src/utCalendar2_cal.c:793:11: warning: If memory allocation fails, then there is a possible null pointer dereference: year_digits [nullPointerOutOfMemory] ncview-2.1.11/src/utCalendar2_cal.c:792:30: note: Assuming allocation function fails ncview-2.1.11/src/utCalendar2_cal.c:792:16: note: Assignment 'year_digits=(char*)malloc(sizeof(char)*nyd)', assigned value is 0 ncview-2.1.11/src/utCalendar2_cal.c:793:11: note: Null pointer dereference ncview-2.1.11/src/utCalendar2_cal.c:850:10: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] ncview-2.1.11/src/utCalendar2_cal.c:849:26: note: Assuming allocation function fails ncview-2.1.11/src/utCalendar2_cal.c:849:12: note: Assignment 's=(char*)malloc(strlen(units_orig)+1)', assigned value is 0 ncview-2.1.11/src/utCalendar2_cal.c:850:10: note: Null pointer dereference ncview-2.1.11/src/utCalendar2_cal.c:90:46: style:inconclusive: Function 'utCalendar2_cal' argument 2 names different: declaration 'dataunits_str' definition 'dataunits_str_orig'. [funcArgNamesDifferent] ncview-2.1.11/src/utCalendar2_cal.h:30:46: note: Function 'utCalendar2_cal' argument 2 names different: declaration 'dataunits_str' definition 'dataunits_str_orig'. ncview-2.1.11/src/utCalendar2_cal.c:90:46: note: Function 'utCalendar2_cal' argument 2 names different: declaration 'dataunits_str' definition 'dataunits_str_orig'. ncview-2.1.11/src/utCalendar2_cal.c:99:7: style: Variable 'fuckyou' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/utCalendar2_cal.c:678:33: style: Parameter 'calendar_name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/utCalendar2_cal.c:848:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/util.c:231:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:432:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:525:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:664:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:838:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:912:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:943:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:1081:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:1552:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:1628:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:1712:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:2144:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_DOUBLE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:2181:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:2300:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:2331:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:2377:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:2441:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_NAME [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/util.c:972:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ncview-2.1.11/src/util.c:1028:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] ncview-2.1.11/src/util.c:676:7: style: Condition 'verbose' is always true [knownConditionTrueFalse] ncview-2.1.11/src/util.c:671:12: note: Assignment 'verbose=1', assigned value is 1 ncview-2.1.11/src/util.c:676:7: note: Condition 'verbose' is always true ncview-2.1.11/src/util.c:687:7: style: Condition 'verbose' is always true [knownConditionTrueFalse] ncview-2.1.11/src/util.c:671:12: note: Assignment 'verbose=1', assigned value is 1 ncview-2.1.11/src/util.c:675:18: note: Assuming condition is false ncview-2.1.11/src/util.c:687:7: note: Condition 'verbose' is always true ncview-2.1.11/src/util.c:719:8: style: Condition 'verbose' is always true [knownConditionTrueFalse] ncview-2.1.11/src/util.c:712:14: note: Assignment 'verbose=1', assigned value is 1 ncview-2.1.11/src/util.c:719:8: note: Condition 'verbose' is always true ncview-2.1.11/src/util.c:731:8: style: Condition 'verbose' is always true [knownConditionTrueFalse] ncview-2.1.11/src/util.c:724:14: note: Assignment 'verbose=1', assigned value is 1 ncview-2.1.11/src/util.c:731:8: note: Condition 'verbose' is always true ncview-2.1.11/src/util.c:742:8: style: Condition 'verbose' is always true [knownConditionTrueFalse] ncview-2.1.11/src/util.c:736:14: note: Assignment 'verbose=1', assigned value is 1 ncview-2.1.11/src/util.c:742:8: note: Condition 'verbose' is always true ncview-2.1.11/src/util.c:1323:12: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/util.c:1321:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/util.c:1323:12: note: Condition 'debug==1' is always false ncview-2.1.11/src/util.c:1329:13: style: Condition 'debug==1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/util.c:1321:10: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/util.c:1329:13: note: Condition 'debug==1' is always false ncview-2.1.11/src/util.c:1366:18: style: Condition 'cursor!=NULL' is always true [knownConditionTrueFalse] ncview-2.1.11/src/util.c:1862:13: style: Condition 'il==nxl-1' is always false [knownConditionTrueFalse] ncview-2.1.11/src/util.c:1849:16: note: Assuming that condition 'ildim+i)=(struct NCDim*)malloc(sizeof(struct NCDim))', assigned value is 0 ncview-2.1.11/src/util.c:1332:18: note: d is assigned '*(v->dim+i)' here. ncview-2.1.11/src/util.c:1333:4: note: Null pointer dereference ncview-2.1.11/src/util.c:1334:4: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:1331:35: note: Assuming allocation function fails ncview-2.1.11/src/util.c:1331:20: note: Assignment '*(v->dim+i)=(struct NCDim*)malloc(sizeof(struct NCDim))', assigned value is 0 ncview-2.1.11/src/util.c:1332:18: note: d is assigned '*(v->dim+i)' here. ncview-2.1.11/src/util.c:1334:4: note: Null pointer dereference ncview-2.1.11/src/util.c:1335:4: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:1331:35: note: Assuming allocation function fails ncview-2.1.11/src/util.c:1331:20: note: Assignment '*(v->dim+i)=(struct NCDim*)malloc(sizeof(struct NCDim))', assigned value is 0 ncview-2.1.11/src/util.c:1332:18: note: d is assigned '*(v->dim+i)' here. ncview-2.1.11/src/util.c:1335:4: note: Null pointer dereference ncview-2.1.11/src/util.c:1336:4: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:1331:35: note: Assuming allocation function fails ncview-2.1.11/src/util.c:1331:20: note: Assignment '*(v->dim+i)=(struct NCDim*)malloc(sizeof(struct NCDim))', assigned value is 0 ncview-2.1.11/src/util.c:1332:18: note: d is assigned '*(v->dim+i)' here. ncview-2.1.11/src/util.c:1336:4: note: Null pointer dereference ncview-2.1.11/src/util.c:1337:4: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:1331:35: note: Assuming allocation function fails ncview-2.1.11/src/util.c:1331:20: note: Assignment '*(v->dim+i)=(struct NCDim*)malloc(sizeof(struct NCDim))', assigned value is 0 ncview-2.1.11/src/util.c:1332:18: note: d is assigned '*(v->dim+i)' here. ncview-2.1.11/src/util.c:1337:4: note: Null pointer dereference ncview-2.1.11/src/util.c:1338:4: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:1331:35: note: Assuming allocation function fails ncview-2.1.11/src/util.c:1331:20: note: Assignment '*(v->dim+i)=(struct NCDim*)malloc(sizeof(struct NCDim))', assigned value is 0 ncview-2.1.11/src/util.c:1332:18: note: d is assigned '*(v->dim+i)' here. ncview-2.1.11/src/util.c:1338:4: note: Null pointer dereference ncview-2.1.11/src/util.c:1339:4: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:1331:35: note: Assuming allocation function fails ncview-2.1.11/src/util.c:1331:20: note: Assignment '*(v->dim+i)=(struct NCDim*)malloc(sizeof(struct NCDim))', assigned value is 0 ncview-2.1.11/src/util.c:1332:18: note: d is assigned '*(v->dim+i)' here. ncview-2.1.11/src/util.c:1339:4: note: Null pointer dereference ncview-2.1.11/src/util.c:1340:4: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:1331:35: note: Assuming allocation function fails ncview-2.1.11/src/util.c:1331:20: note: Assignment '*(v->dim+i)=(struct NCDim*)malloc(sizeof(struct NCDim))', assigned value is 0 ncview-2.1.11/src/util.c:1332:18: note: d is assigned '*(v->dim+i)' here. ncview-2.1.11/src/util.c:1340:4: note: Null pointer dereference ncview-2.1.11/src/util.c:2227:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s1_lc [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:2223:24: note: Assuming allocation function fails ncview-2.1.11/src/util.c:2223:10: note: Assignment 's1_lc=(char*)malloc(strlen(s1)+1)', assigned value is 0 ncview-2.1.11/src/util.c:2227:3: note: Null pointer dereference ncview-2.1.11/src/util.c:2228:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s1_lc [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:2223:24: note: Assuming allocation function fails ncview-2.1.11/src/util.c:2223:10: note: Assignment 's1_lc=(char*)malloc(strlen(s1)+1)', assigned value is 0 ncview-2.1.11/src/util.c:2228:2: note: Null pointer dereference ncview-2.1.11/src/util.c:2230:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s2_lc [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:2224:24: note: Assuming allocation function fails ncview-2.1.11/src/util.c:2224:10: note: Assignment 's2_lc=(char*)malloc(strlen(s2)+1)', assigned value is 0 ncview-2.1.11/src/util.c:2230:3: note: Null pointer dereference ncview-2.1.11/src/util.c:2231:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s2_lc [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:2224:24: note: Assuming allocation function fails ncview-2.1.11/src/util.c:2224:10: note: Assignment 's2_lc=(char*)malloc(strlen(s2)+1)', assigned value is 0 ncview-2.1.11/src/util.c:2231:2: note: Null pointer dereference ncview-2.1.11/src/util.c:2233:20: warning: If memory allocation fails, then there is a possible null pointer dereference: s1_lc [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:2223:24: note: Assuming allocation function fails ncview-2.1.11/src/util.c:2223:10: note: Assignment 's1_lc=(char*)malloc(strlen(s1)+1)', assigned value is 0 ncview-2.1.11/src/util.c:2233:20: note: Null pointer dereference ncview-2.1.11/src/util.c:2233:27: warning: If memory allocation fails, then there is a possible null pointer dereference: s2_lc [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:2224:24: note: Assuming allocation function fails ncview-2.1.11/src/util.c:2224:10: note: Assignment 's2_lc=(char*)malloc(strlen(s2)+1)', assigned value is 0 ncview-2.1.11/src/util.c:2233:27: note: Null pointer dereference ncview-2.1.11/src/util.c:2257:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:2254:20: note: Assuming allocation function fails ncview-2.1.11/src/util.c:2254:6: note: Assignment 's=(char*)malloc(sizeof(char)*(n+2))', assigned value is 0 ncview-2.1.11/src/util.c:2257:3: note: Null pointer dereference ncview-2.1.11/src/util.c:2262:26: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] ncview-2.1.11/src/util.c:2254:20: note: Assuming allocation function fails ncview-2.1.11/src/util.c:2254:6: note: Assignment 's=(char*)malloc(sizeof(char)*(n+2))', assigned value is 0 ncview-2.1.11/src/util.c:2262:26: note: Null pointer dereference ncview-2.1.11/src/util.c:102:38: style:inconclusive: Function 'add_to_varlist' argument 2 names different: declaration 'new_var' definition 'new_el'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:120:48: note: Function 'add_to_varlist' argument 2 names different: declaration 'new_var' definition 'new_el'. ncview-2.1.11/src/util.c:102:38: note: Function 'add_to_varlist' argument 2 names different: declaration 'new_var' definition 'new_el'. ncview-2.1.11/src/util.c:882:16: style:inconclusive: Function 'clip_f' argument 1 names different: declaration 'val' definition 'data'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:122:26: note: Function 'clip_f' argument 1 names different: declaration 'val' definition 'data'. ncview-2.1.11/src/util.c:882:16: note: Function 'clip_f' argument 1 names different: declaration 'val' definition 'data'. ncview-2.1.11/src/util.c:184:21: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:421:53: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:864:16: style: Parameter 'var_name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:901:43: style: Parameter 'virt_pl' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:943:43: style: Variable 'coord_var_size' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/util.c:1077:62: style: Parameter 'coord_att' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:1077:81: style: Parameter 'coord_var_eff_size' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:1078:34: style: Parameter 'orig_coord_att' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:1317:19: style: Variable 'tmp_units' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/util.c:1319:11: style: Variable 'cursor' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/util.c:1384:22: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:1401:19: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:1455:19: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:1500:50: style: Parameter 'dsrc' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:2085:27: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:2215:23: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:2215:33: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:2246:30: style: Parameter 's_in' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:2310:27: style: Parameter 's' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:2375:29: style: Parameter 'varname' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/util.c:107:4: style: Variable 'i' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/util.c:1412:6: style: Variable 'sum' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/util.c:1573:12: style: Variable 'type' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/util.c:2337:8: style: Variable 'ierr' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/util.c:2340:12: style: Variable 'n_so_far' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/util.c:2351:9: style: Variable 'ierr' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/util.c:2332:7: style: Unused variable: i [unusedVariable] ncview-2.1.11/src/util.c:2441:9: style: Unused variable: i0 [unusedVariable] ncview-2.1.11/src/util.c:2441:13: style: Unused variable: i1 [unusedVariable] ncview-2.1.11/src/util.c:2442:7: style: Unused variable: ts [unusedVariable] ncview-2.1.11/src/view.c:113:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:438:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:524:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:642:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILL_FLOAT [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:754:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1024:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1211:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1296:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_DOUBLE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1331:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1415:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1488:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1632:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1672:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1723:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:1798:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:2080:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NC_DOUBLE [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:2148:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:2534:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:2604:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:2683:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:2740:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:3099:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILL_FLOAT [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:3124:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:3144:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/view.c:2214:3: warning:inconclusive: The buffer 'xdim_str' may not be null-terminated after the call to strncpy(). [terminateStrncpy] ncview-2.1.11/src/view.c:2225:3: warning:inconclusive: The buffer 'ydim_str' may not be null-terminated after the call to strncpy(). [terminateStrncpy] ncview-2.1.11/src/view.c:2197:8: style: Condition '1||x_is_mapped' is always true [knownConditionTrueFalse] ncview-2.1.11/src/view.c:116:4: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:526:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:526:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:534:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:534:2: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:668:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:668:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:672:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:856:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:891:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1141:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1147:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1490:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1490:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1506:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1506:3: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1673:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1674:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1675:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:1678:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2227:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2227:2: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2507:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2507:2: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2657:4: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2745:4: portability: %ld in format string (no. 2) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2745:4: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2752:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2758:4: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2792:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2803:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:2810:3: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/view.c:144:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:141:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:141:12: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:144:12: note: Null pointer addition ncview-2.1.11/src/view.c:145:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:142:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:142:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:145:12: note: Null pointer addition ncview-2.1.11/src/view.c:147:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:142:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:142:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:147:11: note: Null pointer addition ncview-2.1.11/src/view.c:204:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:201:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:201:12: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:204:12: note: Null pointer addition ncview-2.1.11/src/view.c:205:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:202:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:202:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:205:12: note: Null pointer addition ncview-2.1.11/src/view.c:207:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:202:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:202:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:207:11: note: Null pointer addition ncview-2.1.11/src/view.c:1132:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:1128:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:1128:10: note: Assignment 'count=(unsigned long*)malloc(v->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:1132:10: note: Null pointer addition ncview-2.1.11/src/view.c:1135:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:1128:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:1128:10: note: Assignment 'count=(unsigned long*)malloc(v->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:1135:9: note: Null pointer addition ncview-2.1.11/src/view.c:1136:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:1128:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:1128:10: note: Assignment 'count=(unsigned long*)malloc(v->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:1136:9: note: Null pointer addition ncview-2.1.11/src/view.c:2640:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2640:10: note: Null pointer addition ncview-2.1.11/src/view.c:2641:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2630:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2630:10: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2641:10: note: Null pointer addition ncview-2.1.11/src/view.c:2643:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2643:10: note: Null pointer addition ncview-2.1.11/src/view.c:2644:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2644:10: note: Null pointer addition ncview-2.1.11/src/view.c:2655:64: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2655:64: note: Null pointer addition ncview-2.1.11/src/view.c:2661:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2661:9: note: Null pointer addition ncview-2.1.11/src/view.c:2662:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2630:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2630:10: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2662:9: note: Null pointer addition ncview-2.1.11/src/view.c:2711:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2703:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2703:10: note: Assignment 'start=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2711:11: note: Null pointer addition ncview-2.1.11/src/view.c:2712:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2704:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2704:10: note: Assignment 'count=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2712:11: note: Null pointer addition ncview-2.1.11/src/view.c:2714:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2703:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2703:10: note: Assignment 'start=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2714:10: note: Null pointer addition ncview-2.1.11/src/view.c:2715:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2704:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2704:10: note: Assignment 'count=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2715:10: note: Null pointer addition ncview-2.1.11/src/view.c:2770:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2704:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2704:10: note: Assignment 'count=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2718:22: note: Calling function 'plot_XY_sc', 2nd argument 'count' value is 0 ncview-2.1.11/src/view.c:2770:14: note: Null pointer addition ncview-2.1.11/src/view.c:879:7: style: Variable 'ierr' is reassigned a value before the old one has been used. [redundantAssignment] ncview-2.1.11/src/view.c:780:7: note: ierr is assigned ncview-2.1.11/src/view.c:879:7: note: ierr is overwritten ncview-2.1.11/src/view.c:599:16: style:inconclusive: Function 'view_draw' argument 1 names different: declaration 'allow_saveframes_useage' definition 'allow_framestore_usage'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:281:32: note: Function 'view_draw' argument 1 names different: declaration 'allow_saveframes_useage' definition 'allow_framestore_usage'. ncview-2.1.11/src/view.c:599:16: note: Function 'view_draw' argument 1 names different: declaration 'allow_saveframes_useage' definition 'allow_framestore_usage'. ncview-2.1.11/src/view.c:3003:66: style:inconclusive: Function 'view_plot_XY_fmt_x_val' argument 4 names different: declaration 'slen' definition 's_len'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:300:71: note: Function 'view_plot_XY_fmt_x_val' argument 4 names different: declaration 'slen' definition 's_len'. ncview-2.1.11/src/view.c:3003:66: note: Function 'view_plot_XY_fmt_x_val' argument 4 names different: declaration 'slen' definition 's_len'. ncview-2.1.11/src/view.c:110:9: style: Variable 'xdim' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:110:16: style: Variable 'ydim' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:110:23: style: Variable 'xdim_old' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:110:34: style: Variable 'xdim_new' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:110:45: style: Variable 'ydim_old' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:110:56: style: Variable 'ydim_new' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:364:25: style: Parameter 'local_view' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/view.c:1874:44: style: Parameter 'var' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/view.c:1917:25: style: Parameter 'view' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/view.c:1917:38: style: Parameter 'var' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/view.c:2033:8: style: Variable 'cur_y_name' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:2119:9: style: Variable 'y_dim' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:2237:11: style: Variable 'fdb' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:2241:8: style: Variable 'funits' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:2736:20: style: Variable 'file_title' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:2736:62: style: Variable 'units' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:2736:70: style: Variable 'long_name' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/view.c:3161:32: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/view.c:3174:32: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/view.c:879:7: style: Variable 'ierr' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/view.c:1450:11: style: Variable 'new_id' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/overlay.c:111:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/overlay.c:170:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/overlay.c:187:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_NC_DIMS [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/overlay.c:526:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncview-2.1.11/src/ncview.c:503:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] ncview-2.1.11/src/ncview.c:512:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] ncview-2.1.11/src/ncview.c:688:5: portability: %ld in format string (no. 5) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/ncview.c:402:9: warning: If memory allocation fails, then there is a possible null pointer dereference: options.overlay [nullPointerOutOfMemory] ncview-2.1.11/src/ncview.c:401:53: note: Assuming allocation function fails ncview-2.1.11/src/ncview.c:401:29: note: Assignment 'options.overlay=(struct OverlayOptions*)malloc(sizeof(struct OverlayOptions))', assigned value is 0 ncview-2.1.11/src/ncview.c:402:9: note: Null pointer dereference ncview-2.1.11/src/ncview.c:588:11: warning: If memory allocation fails, then there is a possible null pointer dereference: colormap_name [nullPointerOutOfMemory] ncview-2.1.11/src/ncview.c:587:32: note: Assuming allocation function fails ncview-2.1.11/src/ncview.c:587:18: note: Assignment 'colormap_name=(char*)malloc(strlen(file_name)-(n_suffix-1))', assigned value is 0 ncview-2.1.11/src/ncview.c:588:11: note: Null pointer dereference ncview-2.1.11/src/ncview.c:602:12: warning: If memory allocation fails, then there is a possible null pointer dereference: long_file_name [nullPointerOutOfMemory] ncview-2.1.11/src/ncview.c:601:33: note: Assuming allocation function fails ncview-2.1.11/src/ncview.c:601:19: note: Assignment 'long_file_name=(char*)malloc(sizeof(char)*slen)', assigned value is 0 ncview-2.1.11/src/ncview.c:602:12: note: Null pointer dereference ncview-2.1.11/src/ncview.c:603:26: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: long_file_name [nullPointerOutOfMemory] ncview-2.1.11/src/ncview.c:601:33: note: Assuming allocation function fails ncview-2.1.11/src/ncview.c:601:19: note: Assignment 'long_file_name=(char*)malloc(sizeof(char)*slen)', assigned value is 0 ncview-2.1.11/src/ncview.c:603:26: note: Null pointer dereference ncview-2.1.11/src/ncview.c:589:18: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/ncview.c:587:32: note: Assuming allocation function fails ncview-2.1.11/src/ncview.c:587:18: note: Assignment 'colormap_name=(char*)malloc(strlen(file_name)-(n_suffix-1))', assigned value is 0 ncview-2.1.11/src/ncview.c:589:18: note: Null pointer addition ncview-2.1.11/src/ncview.c:746:12: style:inconclusive: Function 'check' argument 1 names different: declaration 'value' definition 'val'. [funcArgNamesDifferent] ncview-2.1.11/src/ncview.protos.h:36:23: note: Function 'check' argument 1 names different: declaration 'value' definition 'val'. ncview-2.1.11/src/ncview.c:746:12: note: Function 'check' argument 1 names different: declaration 'value' definition 'val'. ncview-2.1.11/src/ncview.c:159:20: style: Variable 'comma_ptr' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/ncview.c:555:48: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/ncview.c:574:28: style: Parameter 'dir_name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/ncview.c:574:44: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/ncview.c:421:18: style: Variable 'n_colormaps' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/ncview.c:452:15: style: Variable 'n_colormaps' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/ncview.c:454:14: style: Variable 'n_colormaps' is assigned a value that is never used. [unreadVariable] ncview-2.1.11/src/ncview.c:659:6: style: Unused variable: i [unusedVariable] ncview-2.1.11/src/overlay.c:484:6: style: Condition 'debug' is always false [knownConditionTrueFalse] ncview-2.1.11/src/overlay.c:479:11: note: Assignment 'debug=0', assigned value is 0 ncview-2.1.11/src/overlay.c:484:6: note: Condition 'debug' is always false ncview-2.1.11/src/overlay.c:614:4: portability: %ld in format string (no. 3) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/overlay.c:614:4: portability: %ld in format string (no. 4) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] ncview-2.1.11/src/overlay.c:334:3: error: Resource leak: f [resourceLeak] ncview-2.1.11/src/overlay.c:258:50: style:inconclusive: Function 'gen_overlay_internal' argument 3 names different: declaration 'n' definition 'nvals'. [funcArgNamesDifferent] ncview-2.1.11/src/overlay.c:49:63: note: Function 'gen_overlay_internal' argument 3 names different: declaration 'n' definition 'nvals'. ncview-2.1.11/src/overlay.c:258:50: note: Function 'gen_overlay_internal' argument 3 names different: declaration 'n' definition 'nvals'. ncview-2.1.11/src/overlay.c:153:8: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/overlay.c:184:46: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/overlay.c:310:29: style: Parameter 'overlay_fname' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/overlay.c:313:34: style: Variable 'id_string' can be declared as pointer to const [constVariablePointer] ncview-2.1.11/src/overlay.c:471:33: style: Parameter 'xvals' can be declared as pointer to const [constParameterPointer] ncview-2.1.11/src/overlay.c:471:47: style: Parameter 'yvals' can be declared as pointer to const [constParameterPointer] diff: 2.17.0 ncview-2.1.11/src/file_netcdf.c:2074:25: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/file_netcdf.c:2067:36: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:2067:22: note: Assignment 'bounds_dimvarname=(char*)malloc(name_length+1)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2069:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:2074:25: note: Null pointer addition head ncview-2.1.11/src/file_netcdf.c:2074:25: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/file_netcdf.c:2067:36: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:2067:22: note: Assignment 'bounds_dimvarname=(char*)malloc(name_length+1)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:2069:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:2074:25: note: Null pointer addition 2.17.0 ncview-2.1.11/src/file_netcdf.c:475:23: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/file_netcdf.c:466:24: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:466:11: note: Assignment 'dim=(int*)malloc(n_dims*sizeof(int))', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:469:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:475:23: note: Null pointer addition head ncview-2.1.11/src/file_netcdf.c:475:23: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/file_netcdf.c:466:24: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:466:11: note: Assignment 'dim=(int*)malloc(n_dims*sizeof(int))', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:469:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:475:23: note: Null pointer addition 2.17.0 ncview-2.1.11/src/file_netcdf.c:975:15: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/file_netcdf.c:970:26: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:970:12: note: Assignment 'ret_val=(char*)malloc(title_len+1)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:972:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:975:15: note: Null pointer addition head ncview-2.1.11/src/file_netcdf.c:975:15: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/file_netcdf.c:970:26: note: Assuming allocation function fails ncview-2.1.11/src/file_netcdf.c:970:12: note: Assignment 'ret_val=(char*)malloc(title_len+1)', assigned value is 0 ncview-2.1.11/src/file_netcdf.c:972:10: note: Assuming condition is false ncview-2.1.11/src/file_netcdf.c:975:15: note: Null pointer addition head ncview-2.1.11/src/interface/cbar.c:755:16: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:755:16: note: Null pointer dereference head ncview-2.1.11/src/interface/cbar.c:755:30: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:755:30: note: Null pointer dereference head ncview-2.1.11/src/interface/cbar.c:755:44: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:755:44: note: Null pointer dereference head ncview-2.1.11/src/interface/cbar.c:771:38: warning: If memory allocation fails, then there is a possible null pointer dereference: trial [nullPointerOutOfMemory] ncview-2.1.11/src/interface/cbar.c:754:24: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:754:11: note: Assignment 'trial=(int*)malloc(sizeof(int)*ntrial)', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:771:38: note: Null pointer dereference 2.17.0 ncview-2.1.11/src/interface/cbar.c:868:21: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:868:21: note: Null pointer addition head ncview-2.1.11/src/interface/cbar.c:868:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:868:21: note: Null pointer addition 2.17.0 ncview-2.1.11/src/interface/cbar.c:873:21: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:873:21: note: Null pointer addition head ncview-2.1.11/src/interface/cbar.c:873:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:873:21: note: Null pointer addition 2.17.0 ncview-2.1.11/src/interface/cbar.c:878:21: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:878:21: note: Null pointer addition head ncview-2.1.11/src/interface/cbar.c:878:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:878:21: note: Null pointer addition 2.17.0 ncview-2.1.11/src/interface/cbar.c:883:21: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:883:21: note: Null pointer addition head ncview-2.1.11/src/interface/cbar.c:883:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/cbar.c:864:43: note: Assuming allocation function fails ncview-2.1.11/src/interface/cbar.c:864:16: note: Assignment 'retval->chr=(struct chr_struct*)malloc(retval->n_chars*sizeof(struct chr_struct))', assigned value is 0 ncview-2.1.11/src/interface/cbar.c:883:21: note: Null pointer addition 2.17.0 ncview-2.1.11/src/interface/filesel.c:409:6: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/filesel.c:405:22: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:405:6: note: Assignment 's=(String*)malloc(sizeof(String*)*(n+1))', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:409:6: note: Null pointer addition head ncview-2.1.11/src/interface/filesel.c:409:6: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/filesel.c:405:22: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:405:6: note: Assignment 's=(String*)malloc(sizeof(String*)*(n+1))', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:409:6: note: Null pointer addition 2.17.0 ncview-2.1.11/src/interface/filesel.c:410:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/filesel.c:405:22: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:405:6: note: Assignment 's=(String*)malloc(sizeof(String*)*(n+1))', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:410:14: note: Null pointer addition head ncview-2.1.11/src/interface/filesel.c:410:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/filesel.c:405:22: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:405:6: note: Assignment 's=(String*)malloc(sizeof(String*)*(n+1))', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:410:14: note: Null pointer addition 2.17.0 ncview-2.1.11/src/interface/filesel.c:413:5: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/filesel.c:405:22: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:405:6: note: Assignment 's=(String*)malloc(sizeof(String*)*(n+1))', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:413:5: note: Null pointer addition head ncview-2.1.11/src/interface/filesel.c:413:5: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/filesel.c:405:22: note: Assuming allocation function fails ncview-2.1.11/src/interface/filesel.c:405:6: note: Assignment 's=(String*)malloc(sizeof(String*)*(n+1))', assigned value is 0 ncview-2.1.11/src/interface/filesel.c:413:5: note: Null pointer addition 2.17.0 ncview-2.1.11/src/interface/set_options.c:908:15: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/set_options.c:905:38: note: Assuming allocation function fails ncview-2.1.11/src/interface/set_options.c:905:15: note: Assignment 'cbar_data=(unsigned char*)malloc(sizeof(unsigned char)*options.n_colors*28)', assigned value is 0 ncview-2.1.11/src/interface/set_options.c:908:15: note: Null pointer addition head ncview-2.1.11/src/interface/set_options.c:908:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/interface/set_options.c:905:38: note: Assuming allocation function fails ncview-2.1.11/src/interface/set_options.c:905:15: note: Assignment 'cbar_data=(unsigned char*)malloc(sizeof(unsigned char)*options.n_colors*28)', assigned value is 0 ncview-2.1.11/src/interface/set_options.c:908:15: note: Null pointer addition 2.17.0 ncview-2.1.11/src/ncview.c:589:18: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/ncview.c:587:32: note: Assuming allocation function fails ncview-2.1.11/src/ncview.c:587:18: note: Assignment 'colormap_name=(char*)malloc(strlen(file_name)-(n_suffix-1))', assigned value is 0 ncview-2.1.11/src/ncview.c:589:18: note: Null pointer addition head ncview-2.1.11/src/ncview.c:589:18: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/ncview.c:587:32: note: Assuming allocation function fails ncview-2.1.11/src/ncview.c:587:18: note: Assignment 'colormap_name=(char*)malloc(strlen(file_name)-(n_suffix-1))', assigned value is 0 ncview-2.1.11/src/ncview.c:589:18: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:1132:10: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:1128:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:1128:10: note: Assignment 'count=(unsigned long*)malloc(v->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:1132:10: note: Null pointer addition head ncview-2.1.11/src/view.c:1132:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:1128:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:1128:10: note: Assignment 'count=(unsigned long*)malloc(v->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:1132:10: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:1135:9: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:1128:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:1128:10: note: Assignment 'count=(unsigned long*)malloc(v->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:1135:9: note: Null pointer addition head ncview-2.1.11/src/view.c:1135:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:1128:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:1128:10: note: Assignment 'count=(unsigned long*)malloc(v->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:1135:9: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:1136:9: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:1128:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:1128:10: note: Assignment 'count=(unsigned long*)malloc(v->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:1136:9: note: Null pointer addition head ncview-2.1.11/src/view.c:1136:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:1128:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:1128:10: note: Assignment 'count=(unsigned long*)malloc(v->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:1136:9: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:144:12: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:141:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:141:12: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:144:12: note: Null pointer addition head ncview-2.1.11/src/view.c:144:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:141:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:141:12: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:144:12: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:145:12: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:142:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:142:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:145:12: note: Null pointer addition head ncview-2.1.11/src/view.c:145:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:142:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:142:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:145:12: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:147:11: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:142:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:142:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:147:11: note: Null pointer addition head ncview-2.1.11/src/view.c:147:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:142:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:142:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:147:11: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:204:12: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:201:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:201:12: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:204:12: note: Null pointer addition head ncview-2.1.11/src/view.c:204:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:201:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:201:12: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:204:12: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:205:12: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:202:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:202:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:205:12: note: Null pointer addition head ncview-2.1.11/src/view.c:205:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:202:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:202:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:205:12: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:207:11: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:202:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:202:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:207:11: note: Null pointer addition head ncview-2.1.11/src/view.c:207:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:202:28: note: Assuming allocation function fails ncview-2.1.11/src/view.c:202:12: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:207:11: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2640:10: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2640:10: note: Null pointer addition head ncview-2.1.11/src/view.c:2640:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2640:10: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2641:10: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2630:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2630:10: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2641:10: note: Null pointer addition head ncview-2.1.11/src/view.c:2641:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2630:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2630:10: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2641:10: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2643:10: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2643:10: note: Null pointer addition head ncview-2.1.11/src/view.c:2643:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2643:10: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2644:10: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2644:10: note: Null pointer addition head ncview-2.1.11/src/view.c:2644:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2644:10: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2655:64: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2655:64: note: Null pointer addition head ncview-2.1.11/src/view.c:2655:64: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2655:64: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2661:9: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2661:9: note: Null pointer addition head ncview-2.1.11/src/view.c:2661:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2629:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2629:10: note: Assignment 'start=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2661:9: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2662:9: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2630:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2630:10: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2662:9: note: Null pointer addition head ncview-2.1.11/src/view.c:2662:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2630:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2630:10: note: Assignment 'count=(unsigned long*)malloc(view->variable->n_dims*sizeof(unsigned long))', assigned value is 0 ncview-2.1.11/src/view.c:2662:9: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2711:11: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2703:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2703:10: note: Assignment 'start=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2711:11: note: Null pointer addition head ncview-2.1.11/src/view.c:2711:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2703:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2703:10: note: Assignment 'start=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2711:11: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2712:11: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2704:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2704:10: note: Assignment 'count=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2712:11: note: Null pointer addition head ncview-2.1.11/src/view.c:2712:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2704:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2704:10: note: Assignment 'count=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2712:11: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2714:10: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2703:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2703:10: note: Assignment 'start=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2714:10: note: Null pointer addition head ncview-2.1.11/src/view.c:2714:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2703:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2703:10: note: Assignment 'start=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2714:10: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2715:10: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2704:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2704:10: note: Assignment 'count=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2715:10: note: Null pointer addition head ncview-2.1.11/src/view.c:2715:10: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2704:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2704:10: note: Assignment 'count=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2715:10: note: Null pointer addition 2.17.0 ncview-2.1.11/src/view.c:2770:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2704:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2704:10: note: Assignment 'count=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2718:22: note: Calling function 'plot_XY_sc', 2nd argument 'count' value is 0 ncview-2.1.11/src/view.c:2770:14: note: Null pointer addition head ncview-2.1.11/src/view.c:2770:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] ncview-2.1.11/src/view.c:2704:26: note: Assuming allocation function fails ncview-2.1.11/src/view.c:2704:10: note: Assignment 'count=(unsigned long*)malloc(sizeof(unsigned long)*view->variable->n_dims)', assigned value is 0 ncview-2.1.11/src/view.c:2718:22: note: Calling function 'plot_XY_sc', 2nd argument 'count' value is 0 ncview-2.1.11/src/view.c:2770:14: note: Null pointer addition DONE