2025-05-09 14:05 ftp://ftp.de.debian.org/debian/pool/main/c/c2x/c2x_2.42+ds.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: d655a3a (2025-05-09 12:19:47 +0200) count: 686 686 elapsed-time: 120.4 126.2 head-timing-info: old-timing-info: head results: c2x_2.42/abinit_in_read.c:149:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/abinit_in_read.c:824:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/abinit_in_read.c:881:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/abinit_in_read.c:1026:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/abinit_in_read.c:79:9: style: Variable 'pass2' can be declared as const array [constVariable] c2x_2.42/abinit_in_read.c:931:9: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42/abinit_in_read.c:994:35: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42/abinit_read.c:86:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/abinit_read.c:278:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/abinit_read.c:438:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/abinit_read.c:528:15: style: Variable 'bytes_to_skip' is assigned a value that is never used. [unreadVariable] c2x_2.42/abinit_write.c:79:24: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/abinit_write.c:12:66: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42/abinit_write.c:15:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/band_plot.c:65:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/band_plot.c:353:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/band_plot.c:192:24: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_plot.c:193:18: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_plot.c:195:15: style: Parameter 'k_dist' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_plot.c:195:28: style: Parameter 'k_break' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_plot.c:197:9: style: Variable 'spin_style' can be declared as pointer to const [constVariablePointer] c2x_2.42/band_plot.c:197:32: style: Variable 'label' can be declared as pointer to const [constVariablePointer] c2x_2.42/band_plot.c:300:24: style: Parameter 'k1' can be declared as const array [constParameter] c2x_2.42/band_plot.c:300:38: style: Parameter 'k2' can be declared as const array [constParameter] c2x_2.42/band_plot.c:300:50: style: Parameter 'eq' can be declared as const array [constParameter] c2x_2.42/band_plot.c:301:11: style: Variable 'p' can be declared as const array [constVariable] c2x_2.42/band_plot.c:433:15: style: Parameter 'k_dist' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_plot.c:433:28: style: Parameter 'k_break' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_plot.c:435:9: style: Variable 'label' can be declared as pointer to const [constVariablePointer] c2x_2.42/band_plot.c:435:16: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/band_plot.c:61:21: style: Unused variable: s1 [unusedVariable] c2x_2.42/band_process.c:65:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/band_process.c:158:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/band_process.c:231:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/band_process.c:319:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/band_process.c:43:27: style: Parameter 'dptr' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_process.c:43:37: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42/band_process.c:43:50: style: Parameter 'pwgrid' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_process.c:116:18: style: Parameter 'i_grid' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_process.c:220:46: style: Parameter 'nfft' can be declared as const array [constParameter] c2x_2.42/band_process.c:220:62: style: Parameter 'kpoint' can be declared as const array [constParameter] c2x_2.42/band_process.c:297:46: style: Parameter 'elect' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_process.c:298:27: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42/band_process.c:373:21: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42/band_process.c:373:39: style: Parameter 'pwgrid' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_process.c:373:62: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42/band_process.c:374:22: style: Parameter 'kpt' can be declared as pointer to const [constParameterPointer] c2x_2.42/band_process.c:139:8: style: Variable 'scale' is assigned a value that is never used. [unreadVariable] c2x_2.42/bands_read.c:121:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/bands_read.c:201:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/bands_read.c:348:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/bands_read.c:26:29: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/bands_write.c:13:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/bands_write.c:8:51: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42/bands_write.c:9:31: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] c2x_2.42/basis.c:146:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/basis.c:250:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/basis.c:290:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tr [valueFlowBailoutIncompleteVar] c2x_2.42/basis.c:359:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dptr [valueFlowBailoutIncompleteVar] c2x_2.42/basis.c:567:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/basis.c:600:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/basis.c:629:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/basis.c:652:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/basis.c:37:33: style:inconclusive: Function 'real2rec' argument 1 names different: declaration 'cell' definition 'c'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:235:33: note: Function 'real2rec' argument 1 names different: declaration 'cell' definition 'c'. c2x_2.42/basis.c:37:33: note: Function 'real2rec' argument 1 names different: declaration 'cell' definition 'c'. c2x_2.42/basis.c:75:33: style:inconclusive: Function 'addfrac' argument 2 names different: declaration 'natoms' definition 'na'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:236:33: note: Function 'addfrac' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42/basis.c:75:33: note: Function 'addfrac' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42/basis.c:75:44: style:inconclusive: Function 'addfrac' argument 3 names different: declaration 'recip' definition 'rec'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:236:48: note: Function 'addfrac' argument 3 names different: declaration 'recip' definition 'rec'. c2x_2.42/basis.c:75:44: note: Function 'addfrac' argument 3 names different: declaration 'recip' definition 'rec'. c2x_2.42/basis.c:91:32: style:inconclusive: Function 'addabs' argument 2 names different: declaration 'natoms' definition 'na'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:237:32: note: Function 'addabs' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42/basis.c:91:32: note: Function 'addabs' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42/basis.c:91:43: style:inconclusive: Function 'addabs' argument 3 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:237:47: note: Function 'addabs' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42/basis.c:91:43: note: Function 'addabs' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42/basis.c:105:38: style:inconclusive: Function 'reduce_cell' argument 2 names different: declaration 'natoms' definition 'na'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:239:37: note: Function 'reduce_cell' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42/basis.c:105:38: note: Function 'reduce_cell' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42/basis.c:105:49: style:inconclusive: Function 'reduce_cell' argument 3 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:239:52: note: Function 'reduce_cell' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42/basis.c:105:49: note: Function 'reduce_cell' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42/basis.c:122:42: style:inconclusive: Function 'reduce_cell_tol' argument 2 names different: declaration 'natoms' definition 'na'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:240:41: note: Function 'reduce_cell_tol' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42/basis.c:122:42: note: Function 'reduce_cell_tol' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42/basis.c:122:53: style:inconclusive: Function 'reduce_cell_tol' argument 3 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:240:56: note: Function 'reduce_cell_tol' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42/basis.c:122:53: note: Function 'reduce_cell_tol' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42/basis.c:138:46: style:inconclusive: Function 'abc2cart' argument 2 names different: declaration 'cell' definition 'c'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:241:46: note: Function 'abc2cart' argument 2 names different: declaration 'cell' definition 'c'. c2x_2.42/basis.c:138:46: note: Function 'abc2cart' argument 2 names different: declaration 'cell' definition 'c'. c2x_2.42/basis.c:247:28: style:inconclusive: Function 'cart2abc' argument 4 names different: declaration 'g' definition 'gptr'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:244:28: note: Function 'cart2abc' argument 4 names different: declaration 'g' definition 'gptr'. c2x_2.42/basis.c:247:28: note: Function 'cart2abc' argument 4 names different: declaration 'g' definition 'gptr'. c2x_2.42/basis.c:287:18: style:inconclusive: Function 'cart2abc_sym' argument 4 names different: declaration 'g' definition 'gptr'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:246:32: note: Function 'cart2abc_sym' argument 4 names different: declaration 'g' definition 'gptr'. c2x_2.42/basis.c:287:18: note: Function 'cart2abc_sym' argument 4 names different: declaration 'g' definition 'gptr'. c2x_2.42/basis.c:339:23: style:inconclusive: Function 'basis2abc' argument 1 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:242:23: note: Function 'basis2abc' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42/basis.c:339:23: note: Function 'basis2abc' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42/basis.c:875:29: style:inconclusive: Function 'init_grid' argument 1 names different: declaration 'gptr' definition 'g'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:344:29: note: Function 'init_grid' argument 1 names different: declaration 'gptr' definition 'g'. c2x_2.42/basis.c:875:29: note: Function 'init_grid' argument 1 names different: declaration 'gptr' definition 'g'. c2x_2.42/basis.c:194:9: style: Local variable 'i' shadows outer variable [shadowVariable] c2x_2.42/basis.c:142:7: note: Shadowed declaration c2x_2.42/basis.c:194:9: note: Shadow variable c2x_2.42/basis.c:28:19: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42/basis.c:75:44: style: Parameter 'rec' can be declared as const array [constParameter] c2x_2.42/basis.c:91:43: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42/basis.c:138:23: style: Parameter 'abc' can be declared as pointer to const [constParameterPointer] c2x_2.42/basis.c:202:35: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42/basis.c:215:35: style: Parameter 'basis' can be declared as const array [constParameter] c2x_2.42/basis.c:339:23: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42/basis.c:519:31: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] c2x_2.42/basis.c:519:47: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] c2x_2.42/basis.c:558:68: style: Parameter 'new_abc' can be declared as const array [constParameter] c2x_2.42/basis.c:591:24: style: Parameter 'old_basis' can be declared as const array [constParameter] c2x_2.42/basis.c:591:47: style: Parameter 'new_recip' can be declared as const array [constParameter] c2x_2.42/basis.c:594:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/basis.c:790:21: style: Parameter 'a' can be declared as const array [constParameter] c2x_2.42/basis.c:790:34: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42/basis.c:617:10: style: Variable 'buff' is not assigned a value. [unassignedVariable] c2x_2.42/bravais_sc.c:356:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/bravais_sc.c:370:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/bravais_sc.c:315:6: style: Variable 'hit' is reassigned a value before the old one has been used. [redundantAssignment] c2x_2.42/bravais_sc.c:285:7: note: hit is assigned c2x_2.42/bravais_sc.c:315:6: note: hit is overwritten c2x_2.42/bravais_sc.c:352:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42/bravais_sc.c:364:9: style: Variable 'lat' can be declared as pointer to const [constVariablePointer] c2x_2.42/bravais_sc.c:104:7: style: Variable 'abc[1]' is assigned a value that is never used. [unreadVariable] c2x_2.42/bravais_sc.c:145:7: style: Variable 'abc2[1]' is assigned a value that is never used. [unreadVariable] c2x_2.42/bravais_sc.c:211:4: style: Variable 'abc2[1]' is assigned a value that is never used. [unreadVariable] c2x_2.42/bravais_sc.c:229:2: style: Variable 'abc[2]' is assigned a value that is never used. [unreadVariable] c2x_2.42/bravais_sc.c:321:5: style: Variable 'hit' is assigned a value that is never used. [unreadVariable] c2x_2.42/bxsf_write.c:51:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] c2x_2.42/c2x2spg.c:640:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/c2x2spg.c:647:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/c2x2spg.c:679:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/c2x2spg.c:872:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/c2x2spg.c:639:26: style:inconclusive: Function 'cspg_op' argument 4 names different: declaration 'k' definition 'kp'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:337:26: note: Function 'cspg_op' argument 4 names different: declaration 'k' definition 'kp'. c2x_2.42/c2x2spg.c:639:26: note: Function 'cspg_op' argument 4 names different: declaration 'k' definition 'kp'. c2x_2.42/c2x2spg.c:656:7: style: Variable 'doubles' can be declared as const array [constVariable] c2x_2.42/ccp4_write.c:101:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cell_read.c:56:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cell_read.c:146:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cell_read.c:811:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cell_read.c:853:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cell_read.c:723:31: style:inconclusive: Boolean expression '*p2!='\n'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] c2x_2.42/cell_read.c:397:14: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42/cell_read.c:400:20: warning:inconclusive: Width 12 given in format string (no. 1) is smaller than destination buffer 'sym[14]'. [invalidScanfFormatWidth_smaller] c2x_2.42/cell_read.c:561:9: error: Common realloc mistake: 'sym_mat' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42/cell_read.c:562:9: error: Common realloc mistake: 'sym_disp' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42/cell_read.c:704:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42/cell_read.c:42:14: note: Shadowed declaration c2x_2.42/cell_read.c:704:9: note: Shadow variable c2x_2.42/cell_read.c:86:34: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] c2x_2.42/cell_read.c:118:9: style: Variable 'cell_misc_lst' can be declared as const array [constVariable] c2x_2.42/cell_read.c:704:14: style: Variable 'success' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_read.c:750:7: warning: Uninitialized variable: ptr [uninitvar] c2x_2.42/cell_read.c:706:17: note: Assuming condition is false c2x_2.42/cell_read.c:750:7: note: Uninitialized variable: ptr c2x_2.42/cell_read.c:684:9: style: Variable 'nsym' is assigned a value that is never used. [unreadVariable] c2x_2.42/cell_write.c:82:29: style: Redundant condition: m->atoms[j].label. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] c2x_2.42/cell_write.c:75:19: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/cell_write.c:88:19: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/cell_write.c:54:63: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42/cell_write.c:97:70: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42/cell_write.c:99:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:122:59: style: Parameter 'abc' can be declared as pointer to const [constParameterPointer] c2x_2.42/cell_write.c:123:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:149:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:149:14: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:201:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:201:14: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:298:9: style: Variable 'fmt1' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:298:15: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:298:21: style: Variable 'fmt3' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:298:27: style: Variable 'fmt4' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:298:33: style: Variable 'fmt5' can be declared as pointer to const [constVariablePointer] c2x_2.42/cell_write.c:298:39: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/charge.c:35:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/charge.c:136:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/charge.c:194:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/charge.c:236:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/charge.c:247:9: style: Condition '!g->data' is always false [knownConditionTrueFalse] c2x_2.42/charge.c:30:10: style: Local variable 'dist' shadows outer function [shadowFunction] c2x_2.42/c2xsf.h:321:8: note: Shadowed declaration c2x_2.42/charge.c:30:10: note: Shadow variable c2x_2.42/charge.c:110:43: style: Parameter 'ctr' can be declared as pointer to const [constParameterPointer] c2x_2.42/charge.c:111:28: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/charge.c:168:32: style: Parameter 'ctr' can be declared as pointer to const [constParameterPointer] c2x_2.42/charge.c:169:28: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/chdiff_read.c:51:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/chdiff_read.c:33:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42/check2xsf.c:411:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/check2xsf.c:2167:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/check2xsf.c:1152:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/check2xsf.c:1162:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/check2xsf.c:1167:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/check2xsf.c:1538:17: style: Local variable 'kp2' shadows outer variable [shadowVariable] c2x_2.42/check2xsf.c:224:18: note: Shadowed declaration c2x_2.42/check2xsf.c:1538:17: note: Shadow variable c2x_2.42/check2xsf.c:216:56: style: Variable 'skpt' can be declared as pointer to const [constVariablePointer] c2x_2.42/check2xsf.c:2166:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] c2x_2.42/check2xsf.c:2172:41: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] c2x_2.42/check_read.c:135:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/check_read.c:1159:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/check_read.c:1365:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/check_read.c:1473:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/check_read.c:1344:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] c2x_2.42/check_read.c:936:7: style: The if condition is the same as the previous if condition [duplicateCondition] c2x_2.42/check_read.c:935:7: note: First condition c2x_2.42/check_read.c:936:7: note: Second condition c2x_2.42/check_read.c:944:7: style: The if condition is the same as the previous if condition [duplicateCondition] c2x_2.42/check_read.c:937:7: note: First condition c2x_2.42/check_read.c:944:7: note: Second condition c2x_2.42/check_read.c:1078:9: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] c2x_2.42/check_read.c:1079:9: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] c2x_2.42/check_read.c:1355:60: style:inconclusive: Function 'occ_read' argument 3 names different: declaration 'kpt' definition 'kp'. [funcArgNamesDifferent] c2x_2.42/check_read.c:76:67: note: Function 'occ_read' argument 3 names different: declaration 'kpt' definition 'kp'. c2x_2.42/check_read.c:1355:60: note: Function 'occ_read' argument 3 names different: declaration 'kpt' definition 'kp'. c2x_2.42/check_read.c:107:25: style: Variable 'cptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42/check_read.c:999:17: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] c2x_2.42/check_read.c:999:27: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42/check_read.c:1014:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42/check_read.c:1032:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42/check_read.c:1054:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42/check_read.c:1075:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42/check_read.c:1429:9: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/check_read.c:1457:29: style: Parameter 'kpt' can be declared as pointer to const [constParameterPointer] c2x_2.42/check_read.c:1457:47: style: Parameter 'kp' can be declared as pointer to const [constParameterPointer] c2x_2.42/check_read.c:1337:15: style: Variable 'bytes_to_skip' is assigned a value that is never used. [unreadVariable] c2x_2.42/cif_read.c:62:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cif_read.c:176:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cif_read.c:229:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cif_read.c:35:23: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] c2x_2.42/cif_read.c:35:33: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42/cif_read.c:39:23: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] c2x_2.42/cif_read.c:39:33: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42/cif_read.c:222:9: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42/cif_write.c:215:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cif_write.c:216:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/crystal_read.c:62:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/crystal_read.c:183:9: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42/crystal_read.c:37:9: style: Unused variable: j [unusedVariable] c2x_2.42/cube_read.c:36:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/cube_read.c:101:9: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42/cube_read.c:30:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/cube_read.c:110:7: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] c2x_2.42/cube_write.c:42:5: error: Address of local auto-variable assigned to a function parameter. [autoVariables] c2x_2.42/cube_write.c:32:50: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42/cube_write.c:36:9: style: Variable 'fmt1' can be declared as pointer to const [constVariablePointer] c2x_2.42/cube_write.c:36:15: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42/cube_write.c:36:21: style: Variable 'fmt3' can be declared as pointer to const [constVariablePointer] c2x_2.42/cube_write.c:95:8: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] c2x_2.42/data_combine.c:21:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/data_combine.c:52:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/data_combine.c:35:60: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42/data_combine.c:40:9: style: Variable 'name2' can be declared as pointer to const [constVariablePointer] c2x_2.42/denfmt_read.c:40:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/denfmt_read.c:209:23: style: Expression is always false because 'else if' condition matches previous condition at line 197. [multiCondition] c2x_2.42/denfmt_read.c:233:18: style: Expression is always false because 'else if' condition matches previous condition at line 221. [multiCondition] c2x_2.42/denfmt_read.c:256:18: style: Expression is always false because 'else if' condition matches previous condition at line 244. [multiCondition] c2x_2.42/denfmt_read.c:277:21: style: Expression is always false because 'else if' condition matches previous condition at line 265. [multiCondition] c2x_2.42/denfmt_read.c:35:31: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/denfmt_write.c:74:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/denfmt_write.c:91:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/denfmt_write.c:92:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/denfmt_write.c:92:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/denfmt_write.c:92:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/denfmt_write.c:96:14: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/denfmt_write.c:140:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/denfmt_write.c:140:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/denfmt_write.c:140:9: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/denfmt_write.c:32:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/denfmt_write.c:32:14: style: Variable 'vfmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/dict.c:84:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/dict.c:8:40: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] c2x_2.42/dict.c:17:39: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] c2x_2.42/dict.c:50:53: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] c2x_2.42/dipole.c:73:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/dipole.c:217:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/dipole.c:241:12: style: Condition 'elect->dip_corr_dir' is always true [knownConditionTrueFalse] c2x_2.42/dipole.c:273:13: style: Condition 'elect->dip_corr_dir' is always true [knownConditionTrueFalse] c2x_2.42/dipole.c:41:42: style: Parameter 'dipole_ctr' can be declared as pointer to const [constParameterPointer] c2x_2.42/dipole.c:45:28: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/dos.c:58:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/dos.c:564:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/dos.c:758:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/dos.c:51:27: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:210:13: style: Parameter 'bins' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:211:16: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:211:25: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:214:9: style: Variable 'e_unit' can be declared as pointer to const [constVariablePointer] c2x_2.42/dos.c:283:38: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:301:38: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:320:25: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:504:13: style: Parameter 'bins' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:505:16: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:505:25: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42/dos.c:508:9: style: Variable 'e_unit' can be declared as pointer to const [constVariablePointer] c2x_2.42/dos.c:679:34: style: Parameter 't' can be declared as const array [constParameter] c2x_2.42/dos.c:787:13: style: Variable 'shortest' is assigned a value that is never used. [unreadVariable] c2x_2.42/dx_read.c:34:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/dx_write.c:26:47: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42/dx_write.c:28:11: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42/elk_read.c:204:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/elk_read.c:153:8: warning: If memory allocation fails, then there is a possible null pointer dereference: k->mp [nullPointerOutOfMemory] c2x_2.42/elk_read.c:151:17: note: Assuming allocation function fails c2x_2.42/elk_read.c:151:17: note: Assignment 'k->mp=malloc(sizeof(struct mp_grid))', assigned value is 0 c2x_2.42/elk_read.c:153:8: note: Null pointer dereference c2x_2.42/elk_read.c:282:10: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] c2x_2.42/elk_read.c:281:18: note: Assuming allocation function fails c2x_2.42/elk_read.c:281:18: note: Assignment 'filename=malloc(strlen(ptr)+1)', assigned value is 0 c2x_2.42/elk_read.c:282:10: note: Null pointer dereference c2x_2.42/elk_read.c:283:14: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] c2x_2.42/elk_read.c:281:18: note: Assuming allocation function fails c2x_2.42/elk_read.c:281:18: note: Assignment 'filename=malloc(strlen(ptr)+1)', assigned value is 0 c2x_2.42/elk_read.c:283:14: note: Null pointer dereference c2x_2.42/elk_read.c:331:14: style: Variable 'success' can be declared as pointer to const [constVariablePointer] c2x_2.42/elk_write.c:25:49: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42/elk_write.c:29:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/esp_read.c:85:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/esp_read.c:36:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42/f15.c:35:15: warning: If resource allocation fails, then there is a possible null pointer dereference: fort15 [nullPointerOutOfResources] c2x_2.42/f15.c:30:15: note: Assuming allocation function fails c2x_2.42/f15.c:30:15: note: Assignment 'fort15=fopen("fort.15","w")', assigned value is 0 c2x_2.42/f15.c:35:15: note: Null pointer dereference c2x_2.42/f15.c:73:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42/f15.c:72:15: note: Assuming allocation function fails c2x_2.42/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42/f15.c:73:11: note: Null pointer dereference c2x_2.42/f15.c:99:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42/f15.c:72:15: note: Assuming allocation function fails c2x_2.42/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42/f15.c:99:13: note: Null pointer dereference c2x_2.42/f15.c:101:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42/f15.c:72:15: note: Assuming allocation function fails c2x_2.42/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42/f15.c:101:13: note: Null pointer dereference c2x_2.42/f15.c:103:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42/f15.c:72:15: note: Assuming allocation function fails c2x_2.42/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42/f15.c:103:13: note: Null pointer dereference c2x_2.42/f15.c:104:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42/f15.c:72:15: note: Assuming allocation function fails c2x_2.42/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42/f15.c:104:10: note: Null pointer dereference c2x_2.42/f15.c:107:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fort4 [nullPointerOutOfResources] c2x_2.42/f15.c:106:14: note: Assuming allocation function fails c2x_2.42/f15.c:106:14: note: Assignment 'fort4=fopen("fort.4","w")', assigned value is 0 c2x_2.42/f15.c:107:11: note: Null pointer dereference c2x_2.42/f15.c:108:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fort4 [nullPointerOutOfResources] c2x_2.42/f15.c:106:14: note: Assuming allocation function fails c2x_2.42/f15.c:106:14: note: Assignment 'fort4=fopen("fort.4","w")', assigned value is 0 c2x_2.42/f15.c:108:11: note: Null pointer dereference c2x_2.42/f15.c:115:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fort4 [nullPointerOutOfResources] c2x_2.42/f15.c:106:14: note: Assuming allocation function fails c2x_2.42/f15.c:106:14: note: Assignment 'fort4=fopen("fort.4","w")', assigned value is 0 c2x_2.42/f15.c:115:11: note: Null pointer dereference c2x_2.42/f15.c:120:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fort4 [nullPointerOutOfResources] c2x_2.42/f15.c:106:14: note: Assuming allocation function fails c2x_2.42/f15.c:106:14: note: Assignment 'fort4=fopen("fort.4","w")', assigned value is 0 c2x_2.42/f15.c:120:10: note: Null pointer dereference c2x_2.42/f15.c:25:34: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42/f15.c:25:70: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] c2x_2.42/fbin_write.c:49:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fbin_write.c:45:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42/fdf_read.c:128:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fdf_read.c:774:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fdf_read.c:838:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fdf_read.c:891:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fdf_read.c:951:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fdf_read.c:1035:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fdf_read.c:1069:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fdf_read.c:860:16: style: Redundant condition: The condition '*buff' is redundant since '*buff == ' '' is sufficient. [redundantCondition] c2x_2.42/fdf_read.c:902:16: style: Redundant condition: The condition '*buff' is redundant since '*buff == ' '' is sufficient. [redundantCondition] c2x_2.42/fdf_read.c:1019:3: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42/fdf_read.c:1019:3: note: Null pointer dereference c2x_2.42/fdf_read.c:1020:22: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42/fdf_read.c:1020:22: note: Null pointer dereference c2x_2.42/fdf_read.c:1021:10: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42/fdf_read.c:1021:10: note: Null pointer dereference c2x_2.42/fdf_read.c:1022:10: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42/fdf_read.c:1022:10: note: Null pointer dereference c2x_2.42/fdf_read.c:1024:16: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42/fdf_read.c:1024:16: note: Null pointer dereference c2x_2.42/fdf_read.c:688:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42/fdf_read.c:71:14: note: Shadowed declaration c2x_2.42/fdf_read.c:688:9: note: Shadow variable c2x_2.42/fdf_read.c:857:12: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42/fdf_read.c:71:14: note: Shadowed declaration c2x_2.42/fdf_read.c:857:12: note: Shadow variable c2x_2.42/fdf_read.c:899:12: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42/fdf_read.c:71:14: note: Shadowed declaration c2x_2.42/fdf_read.c:899:12: note: Shadow variable c2x_2.42/fdf_read.c:1064:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42/fdf_read.c:71:14: note: Shadowed declaration c2x_2.42/fdf_read.c:1064:9: note: Shadow variable c2x_2.42/fdf_read.c:688:14: style: Variable 'success' can be declared as pointer to const [constVariablePointer] c2x_2.42/fdf_read.c:803:48: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] c2x_2.42/fdf_read.c:963:46: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42/fdf_read.c:1007:32: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] c2x_2.42/fdf_read.c:1007:46: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] c2x_2.42/fdf_read.c:728:7: warning: Uninitialized variable: ptr [uninitvar] c2x_2.42/fdf_read.c:690:17: note: Assuming condition is false c2x_2.42/fdf_read.c:728:7: note: Uninitialized variable: ptr c2x_2.42/fdf_write.c:294:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fdf_write.c:413:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fdf_write.c:70:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/fdf_write.c:37:43: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42/fdf_write.c:40:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/fdf_write.c:203:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/fdf_write.c:284:22: style: Parameter 'oldname' can be declared as pointer to const [constParameterPointer] c2x_2.42/fdf_write.c:288:11: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42/fdf_write.c:288:18: style: Variable 'dptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42/fdf_write.c:398:47: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] c2x_2.42/file_read.c:108:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/file_read.c:103:18: style: Variable 'i_frame_ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/fort34_read.c:41:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/fort34_read.c:99:9: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42/gcoeff_read.c:129:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/gcoeff_write.c:72:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/gcoeff_write.c:15:72: style: Variable 'x' can be declared as pointer to const [constVariablePointer] c2x_2.42/gcoeff_write.c:15:75: style: Variable 'y' can be declared as pointer to const [constVariablePointer] c2x_2.42/gcoeff_write.c:25:27: style: Parameter 'psi' can be declared as pointer to const [constParameterPointer] c2x_2.42/gcoeff_write.c:25:37: style: Parameter 'pwgrid' can be declared as pointer to const [constParameterPointer] c2x_2.42/gcoeff_write.c:25:60: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42/gcoeff_write.c:26:20: style: Parameter 'goff' can be declared as const array [constParameter] c2x_2.42/gcoeff_write.c:29:13: style: Parameter 'eval' can be declared as pointer to const [constParameterPointer] c2x_2.42/gcoeff_write.c:32:11: style: Variable 'kpt' can be declared as pointer to const [constVariablePointer] c2x_2.42/gcoeff_write.c:33:9: style: Variable 'order' can be declared as pointer to const [constVariablePointer] c2x_2.42/geom_read.c:114:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/geom_read.c:14:40: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/geom_write.c:30:9: style: Variable 'sp20' can be declared as pointer to const [constVariablePointer] c2x_2.42/gpfa.c:109:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/gpfa.c:236:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/gpfa.c:60:28: style: Parameter 'nn' can be declared as pointer to const [constParameterPointer] c2x_2.42/grad.c:21:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/grad.c:80:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/grad.c:172:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/grad.c:210:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/grad.c:252:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/grad.c:312:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/grad.c:395:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/grad.c:18:24: style: Variable 'dptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42/grad.c:18:31: style: Variable 'dptr3' can be declared as pointer to const [constVariablePointer] c2x_2.42/grad.c:249:24: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42/grad.c:249:31: style: Variable 'dptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42/grad.c:249:38: style: Variable 'dptr3' can be declared as pointer to const [constVariablePointer] c2x_2.42/ident_sym.c:162:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ident_sym.c:190:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ident_sym.c:242:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ident_sym.c:567:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ident_sym.c:161:15: style:inconclusive: Boolean expression '!strchr("0123456789+-xyzXYZ",*str)' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] c2x_2.42/ident_sym.c:218:71: style:inconclusive: Function 'ident_sym' argument 3 names different: declaration 'm' definition 'motif'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:249:72: note: Function 'ident_sym' argument 3 names different: declaration 'm' definition 'motif'. c2x_2.42/ident_sym.c:218:71: note: Function 'ident_sym' argument 3 names different: declaration 'm' definition 'motif'. c2x_2.42/ident_sym.c:114:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] c2x_2.42/ident_sym.c:564:17: style: Parameter 'm' can be declared as const array [constParameter] c2x_2.42/ident_sym.c:570:20: style: Parameter 'a' can be declared as const array [constParameter] c2x_2.42/ident_sym.c:570:32: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42/ident_sym.c:576:21: style: Parameter 'v' can be declared as const array [constParameter] c2x_2.42/interpolate.c:47:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/interpolate.c:213:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/interpolate.c:308:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/interpolate.c:208:48: style:inconclusive: Function 'interpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:361:47: note: Function 'interpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. c2x_2.42/interpolate.c:208:48: note: Function 'interpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. c2x_2.42/interpolate.c:253:47: style:inconclusive: Function 'vinterpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:362:46: note: Function 'vinterpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. c2x_2.42/interpolate.c:253:47: note: Function 'vinterpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. c2x_2.42/interpolate.c:365:13: style:inconclusive: Function 'interpolate0d_fft' argument 4 names different: declaration 'rec' definition 'rec_in'. [funcArgNamesDifferent] c2x_2.42/interpolate.c:30:13: note: Function 'interpolate0d_fft' argument 4 names different: declaration 'rec' definition 'rec_in'. c2x_2.42/interpolate.c:365:13: note: Function 'interpolate0d_fft' argument 4 names different: declaration 'rec' definition 'rec_in'. c2x_2.42/interpolate.c:122:39: style: Parameter 'p' can be declared as const array [constParameter] c2x_2.42/interpolate.c:129:45: style: Parameter 'x_in' can be declared as const array [constParameter] c2x_2.42/interpolate.c:210:27: style: Variable 'data' can be declared as pointer to const [constVariablePointer] c2x_2.42/interpolate.c:261:46: style: Parameter 'st' can be declared as const array [constParameter] c2x_2.42/interpolate.c:261:60: style: Parameter 'end' can be declared as const array [constParameter] c2x_2.42/interpolate.c:297:24: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] c2x_2.42/interpolate.c:297:31: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42/interpolate.c:364:52: style: Parameter 'x_in' can be declared as const array [constParameter] c2x_2.42/interpolate.c:50:11: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] c2x_2.42/interpolate.c:51:11: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] c2x_2.42/ksym.c:149:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ksym.c:382:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ksym.c:392:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ksym.c:412:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ksym.c:451:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ksym.c:588:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ksym.c:860:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ksym.c:1135:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ksym.c:1169:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/ksym.c:276:3: warning: Either the condition '!k_out' is redundant or there is possible null pointer dereference: k_out. [nullPointerRedundantCheck] c2x_2.42/ksym.c:277:7: note: Assuming that condition '!k_out' is not redundant c2x_2.42/ksym.c:276:3: note: Null pointer dereference c2x_2.42/ksym.c:111:32: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42/ksym.c:111:50: style: Parameter 's' can be declared as pointer to const [constParameterPointer] c2x_2.42/ksym.c:249:28: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] c2x_2.42/ksym.c:249:43: style: Parameter 'kl' can be declared as pointer to const [constParameterPointer] c2x_2.42/ksym.c:388:20: style: Parameter 'x' can be declared as const array [constParameter] c2x_2.42/ksym.c:406:21: style: Parameter 'x' can be declared as const array [constParameter] c2x_2.42/ksym.c:647:21: style: Parameter 'm1' can be declared as const array [constParameter] c2x_2.42/ksym.c:647:55: style: Parameter 'basis' can be declared as const array [constParameter] c2x_2.42/ksym.c:648:13: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42/ksym.c:673:21: style: Parameter 'm1' can be declared as const array [constParameter] c2x_2.42/ksym.c:673:55: style: Parameter 'basis' can be declared as const array [constParameter] c2x_2.42/ksym.c:674:13: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42/ksym.c:697:24: style: Parameter 'm' can be declared as const array [constParameter] c2x_2.42/ksym.c:716:44: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] c2x_2.42/ksym.c:1152:8: style: Parameter 'grid' can be declared as const array [constParameter] c2x_2.42/ksym.c:1152:24: style: Parameter 'k_off' can be declared as const array [constParameter] c2x_2.42/ksym.c:872:9: style: Variable 'sop.tr' is assigned a value that is never used. [unreadVariable] c2x_2.42/line_write.c:76:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/line_write.c:205:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/line_write.c:413:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/line_write.c:485:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/line_write.c:379:33: style:inconclusive: Function 'interpolate_r' argument 6 names different: declaration 'points' definition 'pts'. [funcArgNamesDifferent] c2x_2.42/line_write.c:38:34: note: Function 'interpolate_r' argument 6 names different: declaration 'points' definition 'pts'. c2x_2.42/line_write.c:379:33: note: Function 'interpolate_r' argument 6 names different: declaration 'points' definition 'pts'. c2x_2.42/line_write.c:478:15: style:inconclusive: Function 'interpolate_spherical' argument 7 names different: declaration 'points' definition 'pts'. [funcArgNamesDifferent] c2x_2.42/line_write.c:41:15: note: Function 'interpolate_spherical' argument 7 names different: declaration 'points' definition 'pts'. c2x_2.42/line_write.c:478:15: note: Function 'interpolate_spherical' argument 7 names different: declaration 'points' definition 'pts'. c2x_2.42/line_write.c:615:64: style:inconclusive: Function 'accumulate' argument 4 names different: declaration 'n_in' definition 'n'. [funcArgNamesDifferent] c2x_2.42/line_write.c:42:64: note: Function 'accumulate' argument 4 names different: declaration 'n_in' definition 'n'. c2x_2.42/line_write.c:615:64: note: Function 'accumulate' argument 4 names different: declaration 'n_in' definition 'n'. c2x_2.42/line_write.c:139:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/line_write.c:378:68: style: Parameter 'start' can be declared as pointer to const [constParameterPointer] c2x_2.42/line_write.c:656:28: style: Parameter 'points' can be declared as pointer to const [constParameterPointer] c2x_2.42/mol_read.c:51:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/mol_read.c:85:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/mol_read.c:16:38: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/mol_write.c:14:48: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42/molecule_fix.c:59:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/molecule_fix.c:84:10: warning: Either the condition 'gptr' is redundant or there is possible null pointer dereference: gptr. [nullPointerRedundantCheck] c2x_2.42/molecule_fix.c:58:12: note: Assuming that condition 'gptr' is not redundant c2x_2.42/molecule_fix.c:84:10: note: Null pointer dereference c2x_2.42/molecule_fix.c:36:40: style: Parameter 'm_rel' can be declared as const array [constParameter] c2x_2.42/npy_read.c:58:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/npy_read.c:193:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/npy_read.c:189:7: portability:inconclusive: Casting from const float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] c2x_2.42/npy_read.c:18:8: style: Variable 'magic' can be declared as const array [constVariable] c2x_2.42/npy_read.c:20:14: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/npy_read.c:187:18: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/npy_write.c:58:30: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] c2x_2.42/npy_write.c:57:13: note: Assuming allocation function fails c2x_2.42/npy_write.c:57:13: note: Assignment 'hdr=malloc(256)', assigned value is 0 c2x_2.42/npy_write.c:58:30: note: Null pointer dereference c2x_2.42/npy_write.c:13:8: style: Variable 'magic' can be declared as const array [constVariable] c2x_2.42/npy_write.c:21:8: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] c2x_2.42/parity.c:80:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/parity.c:106:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/parity.c:13:31: style: Parameter 'phase' can be declared as pointer to const [constParameterPointer] c2x_2.42/parity.c:13:46: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] c2x_2.42/parity.c:13:53: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42/parity.c:93:25: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] c2x_2.42/parity.c:93:54: style: Parameter 'kpt' can be declared as const array [constParameter] c2x_2.42/parse.c:129:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] c2x_2.42/parse.c:259:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/parse.c:463:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/parse.c:346:32: style: Condition '*op=='/'' is always false [knownConditionTrueFalse] c2x_2.42/parse.c:229:3: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42/parse.c:237:3: error: Common realloc mistake: 'op_stack' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42/parse.c:333:9: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42/parse.c:386:4: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42/parse.c:456:7: error: Common realloc mistake: 'num_st' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42/parse.c:332:25: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] c2x_2.42/parse.c:331:17: note: Assuming allocation function fails c2x_2.42/parse.c:331:17: note: Assignment 'x=malloc(sizeof(double))', assigned value is 0 c2x_2.42/parse.c:332:25: note: Null pointer dereference c2x_2.42/parse.c:341:28: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42/parse.c:340:16: note: Assuming allocation function fails c2x_2.42/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42/parse.c:341:28: note: Null pointer dereference c2x_2.42/parse.c:342:7: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42/parse.c:340:16: note: Assuming allocation function fails c2x_2.42/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42/parse.c:342:7: note: Null pointer dereference c2x_2.42/parse.c:345:13: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42/parse.c:340:16: note: Assuming allocation function fails c2x_2.42/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42/parse.c:345:13: note: Null pointer dereference c2x_2.42/parse.c:376:4: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] c2x_2.42/parse.c:375:12: note: Assuming allocation function fails c2x_2.42/parse.c:375:12: note: Assignment 'c=malloc(2)', assigned value is 0 c2x_2.42/parse.c:376:4: note: Null pointer dereference c2x_2.42/parse.c:377:4: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] c2x_2.42/parse.c:375:12: note: Assuming allocation function fails c2x_2.42/parse.c:375:12: note: Assignment 'c=malloc(2)', assigned value is 0 c2x_2.42/parse.c:377:4: note: Null pointer dereference c2x_2.42/parse.c:346:26: style: Same expression on both sides of '||'. [duplicateExpression] c2x_2.42/parse.c:61:15: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42/parse.c:115:23: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] c2x_2.42/parse.c:168:22: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] c2x_2.42/parse.c:447:9: style: Variable 'op' can be declared as pointer to const [constVariablePointer] c2x_2.42/parse.c:379:16: style: Variable 'implicit_mul' is assigned a value that is never used. [unreadVariable] c2x_2.42/pdb_read.c:56:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/pdb_read.c:210:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/pdb_read.c:195:15: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] c2x_2.42/pdb_read.c:193:39: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] c2x_2.42/periodic_table.c:51:9: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42/periodic_table.c:51:13: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] c2x_2.42/phonon_read.c:66:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/potential.c:40:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/potential.c:310:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/potential.c:538:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/potential.c:292:21: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42/potential.c:298:56: style: Variable 'pot' can be declared as pointer to const [constVariablePointer] c2x_2.42/potential.c:516:9: style: Variable 'charge_correction' can be declared as pointer to const [constVariablePointer] c2x_2.42/primitive.c:66:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/primitive.c:263:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/primitive.c:376:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/primitive.c:476:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/primitive.c:115:22: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/primitive.c:115:22: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/primitive.c:124:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/primitive.c:136:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/primitive.c:42:64: style:inconclusive: Function 'primitive' argument 3 names different: declaration 'basis' definition 'vfinal'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:371:64: note: Function 'primitive' argument 3 names different: declaration 'basis' definition 'vfinal'. c2x_2.42/primitive.c:42:64: note: Function 'primitive' argument 3 names different: declaration 'basis' definition 'vfinal'. c2x_2.42/primitive.c:243:21: style:inconclusive: Function 'shorten' argument 1 names different: declaration 'basis' definition 'vfinal'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:372:21: note: Function 'shorten' argument 1 names different: declaration 'basis' definition 'vfinal'. c2x_2.42/primitive.c:243:21: note: Function 'shorten' argument 1 names different: declaration 'basis' definition 'vfinal'. c2x_2.42/primitive.c:438:25: style:inconclusive: Function 'basis_signs' argument 1 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42/primitive.c:27:25: note: Function 'basis_signs' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42/primitive.c:438:25: note: Function 'basis_signs' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42/primitive.c:469:25: style:inconclusive: Function 'basis_equal' argument 1 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42/primitive.c:28:25: note: Function 'basis_equal' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42/primitive.c:469:25: note: Function 'basis_equal' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42/primitive.c:33:18: style: Variable 'v1' can be declared as pointer to const [constVariablePointer] c2x_2.42/primitive.c:34:18: style: Variable 'v2' can be declared as pointer to const [constVariablePointer] c2x_2.42/primitive.c:538:22: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42/primitive.c:445:11: style: Variable 'c2' is assigned a value that is never used. [unreadVariable] c2x_2.42/print_cell.c:21:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:34:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:86:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:128:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:179:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable band [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:206:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:282:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:297:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:310:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:373:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:482:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/print_cell.c:263:15: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] c2x_2.42/print_cell.c:267:15: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] c2x_2.42/print_cell.c:470:30: style:inconclusive: Function 'print_grid' argument 1 names different: declaration 'g' definition 'gptr'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:271:30: note: Function 'print_grid' argument 1 names different: declaration 'g' definition 'gptr'. c2x_2.42/print_cell.c:470:30: note: Function 'print_grid' argument 1 names different: declaration 'g' definition 'gptr'. c2x_2.42/print_cell.c:13:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/print_cell.c:28:55: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42/print_cell.c:30:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/print_cell.c:120:54: style: Parameter 'kp' can be declared as pointer to const [constParameterPointer] c2x_2.42/print_cell.c:172:44: style: Parameter 'eval' can be declared as pointer to const [constParameterPointer] c2x_2.42/print_cell.c:276:29: style: Parameter 'elect' can be declared as pointer to const [constParameterPointer] c2x_2.42/print_cell.c:366:69: style: Parameter 'kpts' can be declared as pointer to const [constParameterPointer] c2x_2.42/print_cell.c:367:54: style: Parameter 'e_fermi' can be declared as pointer to const [constParameterPointer] c2x_2.42/print_cell.c:470:54: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42/py_write.c:56:11: style: The if condition is the same as the previous if condition [duplicateCondition] c2x_2.42/py_write.c:54:11: note: First condition c2x_2.42/py_write.c:56:11: note: Second condition c2x_2.42/py_write.c:31:48: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42/py_write.c:31:68: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42/py_write.c:34:9: style: Variable 'fmt1' can be declared as pointer to const [constVariablePointer] c2x_2.42/py_write.c:34:15: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42/py_write.c:34:21: style: Variable 'fmt3' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_psi_read.c:39:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_psi_read.c:67:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_psi_read.c:33:24: style: Parameter 'xk' can be declared as const array [constParameter] c2x_2.42/qe_psi_read.c:52:24: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] c2x_2.42/qe_psi_read.c:52:35: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] c2x_2.42/qe_psi_read.c:57:15: style: Variable 'sspin' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_read.c:203:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_read.c:506:4: error: Common realloc mistake: 'p2' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42/qe_read.c:53:8: warning: Either the condition '*ptr' is redundant or there is possible null pointer dereference: *ptr. [nullPointerRedundantCheck] c2x_2.42/qe_read.c:52:10: note: Assuming that condition '*ptr' is not redundant c2x_2.42/qe_read.c:53:8: note: Null pointer dereference c2x_2.42/qe_read.c:80:8: warning: Either the condition '*ptr' is redundant or there is possible null pointer dereference: *ptr. [nullPointerRedundantCheck] c2x_2.42/qe_read.c:79:10: note: Assuming that condition '*ptr' is not redundant c2x_2.42/qe_read.c:80:8: note: Null pointer dereference c2x_2.42/qe_read.c:102:8: warning: Either the condition '*ptr' is redundant or there is possible null pointer dereference: *ptr. [nullPointerRedundantCheck] c2x_2.42/qe_read.c:101:10: note: Assuming that condition '*ptr' is not redundant c2x_2.42/qe_read.c:102:8: note: Null pointer dereference c2x_2.42/qe_read.c:238:25: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] c2x_2.42/qe_read.c:341:25: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] c2x_2.42/qe_read.c:813:19: style: Variable 'c->basis[2][2]' is reassigned a value before the old one has been used. [redundantAssignment] c2x_2.42/qe_read.c:812:19: note: c->basis[2][2] is assigned c2x_2.42/qe_read.c:813:19: note: c->basis[2][2] is overwritten c2x_2.42/qe_read.c:776:7: style: Variable 'tx' is assigned a value that is never used. [unreadVariable] c2x_2.42/qe_rho_read.c:40:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_rho_read.c:167:7: style: Variable 'data' is reassigned a value before the old one has been used. [redundantAssignment] c2x_2.42/qe_rho_read.c:42:7: note: data is assigned c2x_2.42/qe_rho_read.c:167:7: note: data is overwritten c2x_2.42/qe_rho_read.c:31:27: style: Parameter 'i_grid' can be declared as pointer to const [constParameterPointer] c2x_2.42/qe_write.c:380:31: style: Variable 'tmp' is reassigned a value before the old one has been used. [redundantAssignment] c2x_2.42/qe_write.c:379:10: note: tmp is assigned c2x_2.42/qe_write.c:380:31: note: tmp is overwritten c2x_2.42/qe_write.c:42:35: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42/qe_write.c:44:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_write.c:44:19: style: Variable 'calc_type' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_write.c:47:16: style: Variable 'k2' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_xml_read.c:56:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_xml_read.c:844:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_xml_read.c:963:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_xml_read.c:1003:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_xml_read.c:1073:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_xml_read.c:1095:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/qe_xml_read.c:701:7: style: The if condition is the same as the previous if condition [duplicateCondition] c2x_2.42/qe_xml_read.c:670:7: note: First condition c2x_2.42/qe_xml_read.c:701:7: note: Second condition c2x_2.42/qe_xml_read.c:1112:11: style: Condition '!*cptr3' is always false [knownConditionTrueFalse] c2x_2.42/qe_xml_read.c:1111:19: note: Assuming that condition '*cptr3!='"'' is not redundant c2x_2.42/qe_xml_read.c:1112:11: note: Condition '!*cptr3' is always false c2x_2.42/qe_xml_read.c:47:55: style: Variable 'calculation' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_xml_read.c:839:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] c2x_2.42/qe_xml_read.c:839:39: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] c2x_2.42/qe_xml_read.c:839:53: style: Parameter 'cwd' can be declared as pointer to const [constParameterPointer] c2x_2.42/qe_xml_read.c:841:15: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_xml_read.c:995:14: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_xml_read.c:1063:9: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_xml_read.c:1088:22: style: Variable 'cptr3' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_xml_read.c:1137:49: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] c2x_2.42/qe_xml_read.c:1140:14: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42/qe_xml_read.c:703:10: style: Variable 'cptr2' is assigned a value that is never used. [unreadVariable] c2x_2.42/qe_xml_read.c:1001:6: style: Variable 'i' is assigned a value that is never used. [unreadVariable] c2x_2.42/qe_xml_read.c:1125:9: style: Variable 'cptr' is assigned a value that is never used. [unreadVariable] c2x_2.42/rho_read.c:103:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/rotate.c:97:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/shelx_read.c:57:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/shelx_read.c:80:37: style:inconclusive: Boolean expression '*cptr2!='\n'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] c2x_2.42/shelx_read.c:67:14: style: Condition '*cptr==0' is always false [knownConditionTrueFalse] c2x_2.42/shelx_write.c:38:9: style: Variable 'fmt1' can be declared as pointer to const [constVariablePointer] c2x_2.42/shelx_write.c:38:15: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42/sort_atoms.c:74:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/sort_atoms.c:26:16: style: Variable 'a1' can be declared as pointer to const [constVariablePointer] c2x_2.42/sort_atoms.c:27:16: style: Variable 'a2' can be declared as pointer to const [constVariablePointer] c2x_2.42/sort_atoms.c:46:16: style: Variable 'a1' can be declared as pointer to const [constVariablePointer] c2x_2.42/sort_atoms.c:47:16: style: Variable 'a2' can be declared as pointer to const [constVariablePointer] c2x_2.42/super.c:113:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/super.c:571:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/super.c:634:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/super.c:741:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/super.c:755:7: style: Condition '!rgrid' is always false [knownConditionTrueFalse] c2x_2.42/super.c:344:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] c2x_2.42/super.c:449:19: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/super.c:452:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/super.c:772:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rgrid_new [nullPointerOutOfMemory] c2x_2.42/super.c:754:19: note: Assuming allocation function fails c2x_2.42/super.c:754:19: note: Assignment 'rgrid_new=malloc(npts_new*2*sizeof(double))', assigned value is 0 c2x_2.42/super.c:772:7: note: Null pointer dereference c2x_2.42/super.c:36:49: style:inconclusive: Function 'super' argument 2 names different: declaration 'm' definition 'mtf'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:308:49: note: Function 'super' argument 2 names different: declaration 'm' definition 'mtf'. c2x_2.42/super.c:36:49: note: Function 'super' argument 2 names different: declaration 'm' definition 'mtf'. c2x_2.42/super.c:37:49: style:inconclusive: Function 'super' argument 4 names different: declaration 'k' definition 'kp'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:309:49: note: Function 'super' argument 4 names different: declaration 'k' definition 'kp'. c2x_2.42/super.c:37:49: note: Function 'super' argument 4 names different: declaration 'k' definition 'kp'. c2x_2.42/super.c:38:27: style:inconclusive: Function 'super' argument 7 names different: declaration 'rhs' definition 'sflags'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:310:35: note: Function 'super' argument 7 names different: declaration 'rhs' definition 'sflags'. c2x_2.42/super.c:38:27: note: Function 'super' argument 7 names different: declaration 'rhs' definition 'sflags'. c2x_2.42/super.c:38:39: style:inconclusive: Function 'super' argument 8 names different: declaration 'new_grid' definition 'fft_in'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:310:44: note: Function 'super' argument 8 names different: declaration 'new_grid' definition 'fft_in'. c2x_2.42/super.c:38:39: note: Function 'super' argument 8 names different: declaration 'new_grid' definition 'fft_in'. c2x_2.42/super.c:542:17: style:inconclusive: Function 'to235' argument 1 names different: declaration 'n' definition 'i'. [funcArgNamesDifferent] c2x_2.42/c2xsf.h:360:17: note: Function 'to235' argument 1 names different: declaration 'n' definition 'i'. c2x_2.42/super.c:542:17: note: Function 'to235' argument 1 names different: declaration 'n' definition 'i'. c2x_2.42/super.c:558:62: style:inconclusive: Function 'grid_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. [funcArgNamesDifferent] c2x_2.42/super.c:27:61: note: Function 'grid_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. c2x_2.42/super.c:558:62: note: Function 'grid_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. c2x_2.42/super.c:732:66: style:inconclusive: Function 'grid_fft_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. [funcArgNamesDifferent] c2x_2.42/super.c:29:65: note: Function 'grid_fft_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. c2x_2.42/super.c:732:66: note: Function 'grid_fft_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. c2x_2.42/super.c:85:12: style: Local variable 'vtmp' shadows outer variable [shadowVariable] c2x_2.42/super.c:42:34: note: Shadowed declaration c2x_2.42/super.c:85:12: note: Shadow variable c2x_2.42/super.c:38:39: style: Parameter 'fft_in' can be declared as const array [constParameter] c2x_2.42/super.c:619:16: style: Parameter 'expand' can be declared as const array [constParameter] c2x_2.42/test_parser.c:21:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] c2x_2.42/test_parser.c:30:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/test_parser.c:29:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] c2x_2.42/tube.c:30:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/vasp_read.c:84:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/vasp_read.c:548:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/vasp_read.c:665:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/vasp_read.c:949:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/vasp_read.c:1004:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/vasp_read.c:1137:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/vasp_read.c:545:16: warning:inconclusive: The buffer 'buffer' may not be null-terminated after the call to strncpy(). [terminateStrncpy] c2x_2.42/vasp_read.c:555:14: warning:inconclusive: The buffer 'buffer' may not be null-terminated after the call to strncpy(). [terminateStrncpy] c2x_2.42/vasp_read.c:568:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/vasp_read.c:421:7: error: Common realloc mistake: 'dptr' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42/vasp_read.c:538:33: style: Parameter 'first' can be declared as pointer to const [constParameterPointer] c2x_2.42/vasp_read.c:588:40: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42/vasp_read.c:588:60: style: Parameter 'kpt' can be declared as const array [constParameter] c2x_2.42/vasp_read.c:589:51: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42/vasp_read.c:902:33: style: Parameter 'old' can be declared as pointer to const [constParameterPointer] c2x_2.42/vasp_read.c:902:44: style: Parameter 'new' can be declared as pointer to const [constParameterPointer] c2x_2.42/vasp_read.c:1124:28: style: Parameter 'nionsp' can be declared as pointer to const [constParameterPointer] c2x_2.42/vasp_read.c:1126:29: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42/vasp_write.c:32:11: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42/vasp_write.c:34:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/wavecar_write.c:106:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/wavecar_write.c:22:28: style: Parameter 'psi' can be declared as pointer to const [constParameterPointer] c2x_2.42/wavecar_write.c:23:20: style: Parameter 'goff' can be declared as const array [constParameter] c2x_2.42/xc.c:57:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/xplor_write.c:88:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/xplor_write.c:51:11: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42/xsf_read.c:40:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/xsf_read.c:284:7: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42/xsf_read.c:303:12: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42/xsf_read.c:249:14: style: Variable 'success' can be declared as pointer to const [constVariablePointer] c2x_2.42/xsf_write.c:174:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/xsf_write.c:80:17: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42/xsf_write.c:81:9: style: Variable 'fmtf' can be declared as pointer to const [constVariablePointer] c2x_2.42/xsf_write.c:81:15: style: Variable 'fmtd6f' can be declared as pointer to const [constVariablePointer] c2x_2.42/xsf_write.c:81:23: style: Variable 'fmtd3f' can be declared as pointer to const [constVariablePointer] c2x_2.42/xsf_write.c:81:31: style: Variable 'fmt3f' can be declared as pointer to const [constVariablePointer] c2x_2.42/xv_read.c:131:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/xv_read.c:148:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/xv_read.c:185:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42/xv_read.c:81:7: warning: %d in format string (no. 2) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42/xv_read.c:202:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42/xv_read.c:40:17: style: Variable 'species_to_charge' can be declared as pointer to const [constVariablePointer] c2x_2.42/xyz_read.c:66:11: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42/xyz_write.c:32:49: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42/xyz_write.c:35:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/zones.c:70:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable norm [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:104:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tol [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:144:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:192:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable norm [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:221:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:235:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:268:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:301:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dist [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:310:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:336:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:358:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:389:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:483:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:508:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mat [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:524:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:565:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable line [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:596:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:823:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable plane [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:958:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tol [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:1033:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tol [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:1085:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable plane [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:1136:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:1196:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable poly [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:1279:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:1297:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] c2x_2.42/zones.c:595:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sides [nullPointerOutOfMemory] c2x_2.42/zones.c:590:15: note: Assuming allocation function fails c2x_2.42/zones.c:590:15: note: Assignment 'sides=malloc(p->nverts*sizeof(int))', assigned value is 0 c2x_2.42/zones.c:595:5: note: Null pointer dereference c2x_2.42/zones.c:997:33: style: Same expression on both sides of '||'. [duplicateExpression] c2x_2.42/zones.c:1049:33: style: Same expression on both sides of '||'. [duplicateExpression] c2x_2.42/zones.c:88:42: style: Parameter 'p1' can be declared as const array [constParameter] c2x_2.42/zones.c:88:56: style: Parameter 'p2' can be declared as const array [constParameter] c2x_2.42/zones.c:124:24: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] c2x_2.42/zones.c:131:26: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] c2x_2.42/zones.c:216:19: style: Parameter 'x' can be declared as const array [constParameter] c2x_2.42/zones.c:230:20: style: Parameter 'x' can be declared as const array [constParameter] c2x_2.42/zones.c:248:16: style: Variable 'l' can be declared as pointer to const [constVariablePointer] c2x_2.42/zones.c:954:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42/zones.c:1028:9: style: Variable 'colour' can be declared as pointer to const [constVariablePointer] c2x_2.42/zones.c:1028:17: style: Variable 'name' can be declared as pointer to const [constVariablePointer] c2x_2.42/zones.c:1029:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42/zones.c:1081:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] c2x_2.42/zones.c:1111:29: style: Parameter 'v' can be declared as const array [constParameter] c2x_2.42/zones.c:1111:41: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42/zones.c:1275:45: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] c2x_2.42/zones.c:1277:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42/zones.c:1292:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] diff: DONE