2026-05-26 10:03 ftp://ftp.de.debian.org/debian/pool/main/c/c2x/c2x_2.42.a+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.1.0-48-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.70 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.20.0 head-info: bc33aee (2026-05-26 08:48:42 +0200) count: 759 748 elapsed-time: 226.5 245.2 head-timing-info: old-timing-info: head results: c2x_2.42a/abinit_in_read.c:149:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/abinit_in_read.c:824:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/abinit_in_read.c:881:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/abinit_in_read.c:1026:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/abinit_in_read.c:79:9: style: Variable 'pass2' can be declared as const array [constVariable] c2x_2.42a/abinit_in_read.c:994:35: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/abinit_read.c:86:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/abinit_read.c:278:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/abinit_read.c:438:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/abinit_read.c:528:15: style: Variable 'bytes_to_skip' is assigned a value that is never used. [unreadVariable] c2x_2.42a/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.42a/abinit_write.c:12:66: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42a/abinit_write.c:15:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/band_plot.c:57:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_plot.c:349:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_plot.c:587:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_plot.c:184:24: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_plot.c:185:18: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_plot.c:187:15: style: Parameter 'k_dist' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_plot.c:187:28: style: Parameter 'k_break' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_plot.c:189:9: style: Variable 'spin_style' can be declared as pointer to const [constVariablePointer] c2x_2.42a/band_plot.c:189:32: style: Variable 'label' can be declared as pointer to const [constVariablePointer] c2x_2.42a/band_plot.c:296:24: style: Parameter 'k1' can be declared as const array [constParameter] c2x_2.42a/band_plot.c:296:38: style: Parameter 'k2' can be declared as const array [constParameter] c2x_2.42a/band_plot.c:296:50: style: Parameter 'eq' can be declared as const array [constParameter] c2x_2.42a/band_plot.c:297:11: style: Variable 'p' can be declared as const array [constVariable] c2x_2.42a/band_plot.c:429:15: style: Parameter 'k_dist' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_plot.c:429:28: style: Parameter 'k_break' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_plot.c:431:9: style: Variable 'label' can be declared as pointer to const [constVariablePointer] c2x_2.42a/band_plot.c:431:16: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/band_plot.c:580:16: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_plot.c:53:21: style: Unused variable: s1 [unusedVariable] c2x_2.42a/band_process.c:118:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:161:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:202:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:252:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:349:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:452:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:540:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:657:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:766:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:873:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/band_process.c:855:33: style:inconclusive: Function 'lgrid_1d' argument 4 names different: declaration 'nfft' definition 'fft'. [funcArgNamesDifferent] c2x_2.42a/band_process.c:49:33: note: Function 'lgrid_1d' argument 4 names different: declaration 'nfft' definition 'fft'. c2x_2.42a/band_process.c:855:33: note: Function 'lgrid_1d' argument 4 names different: declaration 'nfft' definition 'fft'. c2x_2.42a/band_process.c:52:54: style: Parameter 'fft' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_process.c:96:27: style: Parameter 'dptr' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_process.c:96:37: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42a/band_process.c:96:50: style: Parameter 'pwgrid' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_process.c:193:18: style: Variable 'rgrid' can be declared as pointer to const [constVariablePointer] c2x_2.42a/band_process.c:249:18: style: Variable 'rgrid' can be declared as pointer to const [constVariablePointer] c2x_2.42a/band_process.c:305:18: style: Parameter 'i_grid' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_process.c:441:46: style: Parameter 'nfft' can be declared as const array [constParameter] c2x_2.42a/band_process.c:441:62: style: Parameter 'kpoint' can be declared as const array [constParameter] c2x_2.42a/band_process.c:518:46: style: Parameter 'elect' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_process.c:519:27: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42a/band_process.c:594:21: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42a/band_process.c:594:39: style: Parameter 'pwgrid' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_process.c:594:62: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42a/band_process.c:595:22: style: Parameter 'kpt' can be declared as pointer to const [constParameterPointer] c2x_2.42a/band_process.c:726:33: style: Parameter 'nfft' can be declared as const array [constParameter] c2x_2.42a/band_process.c:855:33: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42a/band_process.c:330:8: style: Variable 'scale' is assigned a value that is never used. [unreadVariable] c2x_2.42a/bands_read.c:121:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/bands_read.c:201:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/bands_read.c:348:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/bands_read.c:26:29: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/bands_write.c:13:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/bands_write.c:8:51: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/bands_write.c:9:31: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] c2x_2.42a/basis.c:146:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/basis.c:250:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/basis.c:290:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tr [valueFlowBailoutIncompleteVar] c2x_2.42a/basis.c:359:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dptr [valueFlowBailoutIncompleteVar] c2x_2.42a/basis.c:567:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/basis.c:600:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/basis.c:629:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/basis.c:652:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/basis.c:37:33: style:inconclusive: Function 'real2rec' argument 1 names different: declaration 'cell' definition 'c'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:246:33: note: Function 'real2rec' argument 1 names different: declaration 'cell' definition 'c'. c2x_2.42a/basis.c:37:33: note: Function 'real2rec' argument 1 names different: declaration 'cell' definition 'c'. c2x_2.42a/basis.c:75:33: style:inconclusive: Function 'addfrac' argument 2 names different: declaration 'natoms' definition 'na'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:247:33: note: Function 'addfrac' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42a/basis.c:75:33: note: Function 'addfrac' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42a/basis.c:75:44: style:inconclusive: Function 'addfrac' argument 3 names different: declaration 'recip' definition 'rec'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:247:48: note: Function 'addfrac' argument 3 names different: declaration 'recip' definition 'rec'. c2x_2.42a/basis.c:75:44: note: Function 'addfrac' argument 3 names different: declaration 'recip' definition 'rec'. c2x_2.42a/basis.c:91:32: style:inconclusive: Function 'addabs' argument 2 names different: declaration 'natoms' definition 'na'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:248:32: note: Function 'addabs' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42a/basis.c:91:32: note: Function 'addabs' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42a/basis.c:91:43: style:inconclusive: Function 'addabs' argument 3 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:248:47: note: Function 'addabs' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42a/basis.c:91:43: note: Function 'addabs' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42a/basis.c:105:38: style:inconclusive: Function 'reduce_cell' argument 2 names different: declaration 'natoms' definition 'na'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:250:37: note: Function 'reduce_cell' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42a/basis.c:105:38: note: Function 'reduce_cell' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42a/basis.c:105:49: style:inconclusive: Function 'reduce_cell' argument 3 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:250:52: note: Function 'reduce_cell' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42a/basis.c:105:49: note: Function 'reduce_cell' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42a/basis.c:122:42: style:inconclusive: Function 'reduce_cell_tol' argument 2 names different: declaration 'natoms' definition 'na'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:251:41: note: Function 'reduce_cell_tol' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42a/basis.c:122:42: note: Function 'reduce_cell_tol' argument 2 names different: declaration 'natoms' definition 'na'. c2x_2.42a/basis.c:122:53: style:inconclusive: Function 'reduce_cell_tol' argument 3 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:251:56: note: Function 'reduce_cell_tol' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42a/basis.c:122:53: note: Function 'reduce_cell_tol' argument 3 names different: declaration 'basis' definition 'b'. c2x_2.42a/basis.c:138:46: style:inconclusive: Function 'abc2cart' argument 2 names different: declaration 'cell' definition 'c'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:252:46: note: Function 'abc2cart' argument 2 names different: declaration 'cell' definition 'c'. c2x_2.42a/basis.c:138:46: note: Function 'abc2cart' argument 2 names different: declaration 'cell' definition 'c'. c2x_2.42a/basis.c:247:28: style:inconclusive: Function 'cart2abc' argument 4 names different: declaration 'g' definition 'gptr'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:255:28: note: Function 'cart2abc' argument 4 names different: declaration 'g' definition 'gptr'. c2x_2.42a/basis.c:247:28: note: Function 'cart2abc' argument 4 names different: declaration 'g' definition 'gptr'. c2x_2.42a/basis.c:287:18: style:inconclusive: Function 'cart2abc_sym' argument 4 names different: declaration 'g' definition 'gptr'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:257:32: note: Function 'cart2abc_sym' argument 4 names different: declaration 'g' definition 'gptr'. c2x_2.42a/basis.c:287:18: note: Function 'cart2abc_sym' argument 4 names different: declaration 'g' definition 'gptr'. c2x_2.42a/basis.c:339:23: style:inconclusive: Function 'basis2abc' argument 1 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:253:23: note: Function 'basis2abc' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42a/basis.c:339:23: note: Function 'basis2abc' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42a/basis.c:892:29: style:inconclusive: Function 'init_grid' argument 1 names different: declaration 'gptr' definition 'g'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:361:29: note: Function 'init_grid' argument 1 names different: declaration 'gptr' definition 'g'. c2x_2.42a/basis.c:892:29: note: Function 'init_grid' argument 1 names different: declaration 'gptr' definition 'g'. c2x_2.42a/basis.c:194:9: style: Local variable 'i' shadows outer variable [shadowVariable] c2x_2.42a/basis.c:142:7: note: Shadowed variable c2x_2.42a/basis.c:194:9: note: Shadow local variable c2x_2.42a/basis.c:28:19: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42a/basis.c:75:44: style: Parameter 'rec' can be declared as const array [constParameter] c2x_2.42a/basis.c:91:43: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42a/basis.c:138:23: style: Parameter 'abc' can be declared as pointer to const [constParameterPointer] c2x_2.42a/basis.c:202:35: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42a/basis.c:215:35: style: Parameter 'basis' can be declared as const array [constParameter] c2x_2.42a/basis.c:339:23: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42a/basis.c:519:31: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] c2x_2.42a/basis.c:519:47: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] c2x_2.42a/basis.c:558:68: style: Parameter 'new_abc' can be declared as const array [constParameter] c2x_2.42a/basis.c:591:24: style: Parameter 'old_basis' can be declared as const array [constParameter] c2x_2.42a/basis.c:591:47: style: Parameter 'new_recip' can be declared as const array [constParameter] c2x_2.42a/basis.c:594:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/basis.c:790:21: style: Parameter 'a' can be declared as const array [constParameter] c2x_2.42a/basis.c:790:34: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42a/basis.c:617:10: style: Variable 'buff' is not assigned a value. [unassignedVariable] c2x_2.42a/bravais_sc.c:335:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/bravais_sc.c:356:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/bravais_sc.c:367:7: style: The if condition is the same as the previous if condition [duplicateCondition] c2x_2.42a/bravais_sc.c:365:7: note: First condition c2x_2.42a/bravais_sc.c:367:7: note: Second condition c2x_2.42a/bravais_sc.c:331:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42a/bravais_sc.c:350:9: style: Variable 'lat' can be declared as pointer to const [constVariablePointer] c2x_2.42a/bravais_sc.c:104:7: style: Variable 'abc[1]' is assigned a value that is never used. [unreadVariable] c2x_2.42a/bravais_sc.c:145:7: style: Variable 'abc2[1]' is assigned a value that is never used. [unreadVariable] c2x_2.42a/bravais_sc.c:211:4: style: Variable 'abc2[1]' is assigned a value that is never used. [unreadVariable] c2x_2.42a/bxsf_write.c:51:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] c2x_2.42a/c2x2spg.c:642:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/c2x2spg.c:649:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/c2x2spg.c:681:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/c2x2spg.c:874:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/c2x2spg.c:641:26: style:inconclusive: Function 'cspg_op' argument 4 names different: declaration 'k' definition 'kp'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:354:26: note: Function 'cspg_op' argument 4 names different: declaration 'k' definition 'kp'. c2x_2.42a/c2x2spg.c:641:26: note: Function 'cspg_op' argument 4 names different: declaration 'k' definition 'kp'. c2x_2.42a/c2x2spg.c:658:7: style: Variable 'doubles' can be declared as const array [constVariable] c2x_2.42a/ccp4_write.c:101:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/cell_read.c:58:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/cell_read.c:150:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/cell_read.c:845:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/cell_read.c:888:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/cell_read.c:757:31: style:inconclusive: Boolean expression '*p2!='\n'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] c2x_2.42a/cell_read.c:410:14: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42a/cell_read.c:413:20: warning:inconclusive: Width 12 given in format string (no. 1) is smaller than destination buffer 'sym[14]'. [invalidScanfFormatWidth_smaller] c2x_2.42a/cell_read.c:595:9: error: Common realloc mistake: 'sym_mat' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42a/cell_read.c:596:9: error: Common realloc mistake: 'sym_disp' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42a/cell_read.c:88:34: style: Argument 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/cell_read.c:44:14: note: Shadowed variable c2x_2.42a/cell_read.c:88:34: note: Shadow argument c2x_2.42a/cell_read.c:738:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/cell_read.c:44:14: note: Shadowed variable c2x_2.42a/cell_read.c:738:9: note: Shadow local variable c2x_2.42a/cell_read.c:88:34: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] c2x_2.42a/cell_read.c:120:9: style: Variable 'cell_misc_lst' can be declared as const array [constVariable] c2x_2.42a/cell_read.c:738:14: style: Variable 'success' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_read.c:784:7: warning: Uninitialized variable: ptr [uninitvar] c2x_2.42a/cell_read.c:740:17: note: Assuming condition is false c2x_2.42a/cell_read.c:784:7: note: Uninitialized variable: ptr c2x_2.42a/cell_read.c:718:9: style: Variable 'nsym' is assigned a value that is never used. [unreadVariable] c2x_2.42a/cell_write.c:82:29: style: Redundant condition: m->atoms[j].label. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] c2x_2.42a/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.42a/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.42a/cell_write.c:54:63: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42a/cell_write.c:97:70: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/cell_write.c:99:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:122:59: style: Parameter 'abc' can be declared as pointer to const [constParameterPointer] c2x_2.42a/cell_write.c:123:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:149:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:149:14: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:201:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:201:14: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:298:9: style: Variable 'fmt1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:298:15: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:298:21: style: Variable 'fmt3' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:298:27: style: Variable 'fmt4' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:298:33: style: Variable 'fmt5' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cell_write.c:298:39: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/charge.c:35:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/charge.c:136:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/charge.c:194:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/charge.c:236:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/charge.c:247:9: style: Condition '!g->data' is always false [knownConditionTrueFalse] c2x_2.42a/charge.c:30:10: style: Local variable 'dist' shadows outer function [shadowFunction] c2x_2.42a/c2xsf.h:336:8: note: Shadowed function c2x_2.42a/charge.c:30:10: note: Shadow local variable c2x_2.42a/charge.c:109:37: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/charge.c:110:43: style: Parameter 'ctr' can be declared as pointer to const [constParameterPointer] c2x_2.42a/charge.c:111:28: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/charge.c:167:40: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/charge.c:168:32: style: Parameter 'ctr' can be declared as pointer to const [constParameterPointer] c2x_2.42a/charge.c:169:28: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/chdiff_read.c:51:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/chdiff_read.c:33:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/check2xsf.c:276:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/check2xsf.c:2181:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/check2xsf.c:1156:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42a/check2xsf.c:1166:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42a/check2xsf.c:1171:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42a/check2xsf.c:1543:17: style: Local variable 'kp2' shadows outer variable [shadowVariable] c2x_2.42a/check2xsf.c:219:18: note: Shadowed variable c2x_2.42a/check2xsf.c:1543:17: note: Shadow local variable c2x_2.42a/check2xsf.c:211:56: style: Variable 'skpt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/check2xsf.c:2180:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check2xsf.c:2186:41: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check_read.c:140:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/check_read.c:1107:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/check_read.c:1313:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/check_read.c:1421:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/check_read.c:1459:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/check_read.c:1292:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] c2x_2.42a/check_read.c:884:7: style: The if condition is the same as the previous if condition [duplicateCondition] c2x_2.42a/check_read.c:883:7: note: First condition c2x_2.42a/check_read.c:884:7: note: Second condition c2x_2.42a/check_read.c:892:7: style: The if condition is the same as the previous if condition [duplicateCondition] c2x_2.42a/check_read.c:885:7: note: First condition c2x_2.42a/check_read.c:892:7: note: Second condition c2x_2.42a/check_read.c:1478:9: warning: If memory allocation fails, then there is a possible null pointer dereference: lab [nullPointerOutOfMemory] c2x_2.42a/check_read.c:1475:17: note: Assuming allocation function fails c2x_2.42a/check_read.c:1475:17: note: Assignment 'lab=malloc(ion_sym_len+1)', assigned value is 0 c2x_2.42a/check_read.c:1478:9: note: Null pointer dereference c2x_2.42a/check_read.c:1479:7: warning: If memory allocation fails, then there is a possible null pointer dereference: lab [nullPointerOutOfMemory] c2x_2.42a/check_read.c:1475:17: note: Assuming allocation function fails c2x_2.42a/check_read.c:1475:17: note: Assignment 'lab=malloc(ion_sym_len+1)', assigned value is 0 c2x_2.42a/check_read.c:1479:7: note: Null pointer dereference c2x_2.42a/check_read.c:1026:9: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] c2x_2.42a/check_read.c:1027:9: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] c2x_2.42a/check_read.c:1303:60: style:inconclusive: Function 'occ_read' argument 3 names different: declaration 'kpt' definition 'kp'. [funcArgNamesDifferent] c2x_2.42a/check_read.c:76:67: note: Function 'occ_read' argument 3 names different: declaration 'kpt' definition 'kp'. c2x_2.42a/check_read.c:1303:60: note: Function 'occ_read' argument 3 names different: declaration 'kpt' definition 'kp'. c2x_2.42a/check_read.c:112:15: style: Variable 'cptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/check_read.c:947:17: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check_read.c:947:27: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check_read.c:962:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/check_read.c:980:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/check_read.c:1002:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/check_read.c:1023:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/check_read.c:1377:9: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/check_read.c:1405:29: style: Parameter 'kpt' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check_read.c:1405:47: style: Parameter 'kp' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check_read.c:1440:53: style: Parameter 'castep_basis' can be declared as const array [constParameter] c2x_2.42a/check_read.c:1451:50: style: Parameter 'nsp_max' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check_read.c:1451:64: style: Parameter 'nsp' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check_read.c:1452:9: style: Parameter 'nionsp' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check_read.c:1453:44: style: Parameter 'ion_pos' can be declared as pointer to const [constParameterPointer] c2x_2.42a/check_read.c:1455:19: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/check_read.c:1285:15: style: Variable 'bytes_to_skip' is assigned a value that is never used. [unreadVariable] c2x_2.42a/cif_read.c:62:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/cif_read.c:176:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/cif_read.c:229:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/cif_read.c:250:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] c2x_2.42a/cif_read.c:35:23: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] c2x_2.42a/cif_read.c:35:33: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42a/cif_read.c:39:23: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] c2x_2.42a/cif_read.c:39:33: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42a/cif_read.c:222:9: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cif_write.c:215:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/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.42a/crystal_read.c:62:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/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.42a/crystal_read.c:37:9: style: Unused variable: j [unusedVariable] c2x_2.42a/cube_read.c:36:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/cube_read.c:103:11: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] c2x_2.42a/cube_read.c:30:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cube_read.c:112: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.42a/cube_write.c:42:5: error: Address of local auto-variable assigned to a function parameter. [autoVariables] c2x_2.42a/cube_write.c:32:50: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/cube_write.c:36:9: style: Variable 'fmt1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cube_write.c:36:15: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/cube_write.c:36:21: style: Variable 'fmt3' can be declared as pointer to const [constVariablePointer] c2x_2.42a/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.42a/data_combine.c:21:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/data_combine.c:52:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/data_combine.c:35:60: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42a/data_combine.c:40:9: style: Variable 'name2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/denfmt_read.c:43:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/denfmt_read.c:212:23: style: Expression is always false because 'else if' condition matches previous condition at line 200. [multiCondition] c2x_2.42a/denfmt_read.c:236:18: style: Expression is always false because 'else if' condition matches previous condition at line 224. [multiCondition] c2x_2.42a/denfmt_read.c:259:18: style: Expression is always false because 'else if' condition matches previous condition at line 247. [multiCondition] c2x_2.42a/denfmt_read.c:280:21: style: Expression is always false because 'else if' condition matches previous condition at line 268. [multiCondition] c2x_2.42a/denfmt_read.c:38:31: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/denfmt_write.c:74:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/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.42a/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.42a/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.42a/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.42a/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.42a/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.42a/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.42a/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.42a/denfmt_write.c:32:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/denfmt_write.c:32:14: style: Variable 'vfmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/denfmt_write.c:33:16: style: Variable 'gptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/dict.c:84:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/dict.c:8:28: style: Parameter 'dict' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dict.c:8:40: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dict.c:17:39: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dict.c:50:53: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dict.c:81:29: style: Parameter 'dict' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dipole.c:73:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/dipole.c:217:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/dipole.c:241:12: style: Condition 'elect->dip_corr_dir' is always true [knownConditionTrueFalse] c2x_2.42a/dipole.c:273:13: style: Condition 'elect->dip_corr_dir' is always true [knownConditionTrueFalse] c2x_2.42a/dipole.c:40:36: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dipole.c:41:42: style: Parameter 'dipole_ctr' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dipole.c:45:28: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/dos.c:73:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/dos.c:662:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/dos.c:901:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/dos.c:1014:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/dos.c:1107:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/dos.c:1000:10: style:inconclusive: Function 'blochl_2D' argument 4 names different: declaration 'grid' definition 'grid_in'. [funcArgNamesDifferent] c2x_2.42a/dos.c:51:10: note: Function 'blochl_2D' argument 4 names different: declaration 'grid' definition 'grid_in'. c2x_2.42a/dos.c:1000:10: note: Function 'blochl_2D' argument 4 names different: declaration 'grid' definition 'grid_in'. c2x_2.42a/dos.c:1099:10: style:inconclusive: Function 'blochl_1D' argument 4 names different: declaration 'grid' definition 'grid_in'. [funcArgNamesDifferent] c2x_2.42a/dos.c:56:10: note: Function 'blochl_1D' argument 4 names different: declaration 'grid' definition 'grid_in'. c2x_2.42a/dos.c:1099:10: note: Function 'blochl_1D' argument 4 names different: declaration 'grid' definition 'grid_in'. c2x_2.42a/dos.c:62:27: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:299:13: style: Parameter 'bins' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:300:16: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:300:25: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:303:9: style: Variable 'e_unit' can be declared as pointer to const [constVariablePointer] c2x_2.42a/dos.c:377:38: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:395:38: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:414:25: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:604:13: style: Parameter 'bins' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:605:16: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:605:25: style: Parameter 'title' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:608:9: style: Variable 'e_unit' can be declared as pointer to const [constVariablePointer] c2x_2.42a/dos.c:789:34: style: Parameter 't' can be declared as const array [constParameter] c2x_2.42a/dos.c:980:35: style: Parameter 't' can be declared as const array [constParameter] c2x_2.42a/dos.c:1000:10: style: Parameter 'grid_in' can be declared as const array [constParameter] c2x_2.42a/dos.c:1000:27: style: Parameter 'mapping' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dos.c:1078:47: style: Parameter 't' can be declared as const array [constParameter] c2x_2.42a/dos.c:1099:10: style: Parameter 'grid_in' can be declared as const array [constParameter] c2x_2.42a/dos.c:127:12: error: Uninitialized variable: grid[0] [legacyUninitvar] c2x_2.42a/dos.c:897:13: style: Variable 'shortest' is assigned a value that is never used. [unreadVariable] c2x_2.42a/dx_read.c:34:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/dx_write.c:26:47: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/dx_write.c:28:11: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/elk_read.c:204:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/elk_read.c:153:8: warning: If memory allocation fails, then there is a possible null pointer dereference: k->mp [nullPointerOutOfMemory] c2x_2.42a/elk_read.c:151:17: note: Assuming allocation function fails c2x_2.42a/elk_read.c:151:17: note: Assignment 'k->mp=malloc(sizeof(struct mp_grid))', assigned value is 0 c2x_2.42a/elk_read.c:153:8: note: Null pointer dereference c2x_2.42a/elk_read.c:282:10: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] c2x_2.42a/elk_read.c:281:18: note: Assuming allocation function fails c2x_2.42a/elk_read.c:281:18: note: Assignment 'filename=malloc(strlen(ptr)+1)', assigned value is 0 c2x_2.42a/elk_read.c:282:10: note: Null pointer dereference c2x_2.42a/elk_read.c:283:14: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] c2x_2.42a/elk_read.c:281:18: note: Assuming allocation function fails c2x_2.42a/elk_read.c:281:18: note: Assignment 'filename=malloc(strlen(ptr)+1)', assigned value is 0 c2x_2.42a/elk_read.c:283:14: note: Null pointer dereference c2x_2.42a/elk_read.c:331:14: style: Variable 'success' can be declared as pointer to const [constVariablePointer] c2x_2.42a/elk_write.c:25:49: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/elk_write.c:29:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/esp_read.c:85:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/esp_read.c:36:10: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/f15.c:35:15: warning: If resource allocation fails, then there is a possible null pointer dereference: fort15 [nullPointerOutOfResources] c2x_2.42a/f15.c:30:15: note: Assuming allocation function fails c2x_2.42a/f15.c:30:15: note: Assignment 'fort15=fopen("fort.15","w")', assigned value is 0 c2x_2.42a/f15.c:35:15: note: Null pointer dereference c2x_2.42a/f15.c:73:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42a/f15.c:72:15: note: Assuming allocation function fails c2x_2.42a/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42a/f15.c:73:11: note: Null pointer dereference c2x_2.42a/f15.c:99:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42a/f15.c:72:15: note: Assuming allocation function fails c2x_2.42a/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42a/f15.c:99:13: note: Null pointer dereference c2x_2.42a/f15.c:101:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42a/f15.c:72:15: note: Assuming allocation function fails c2x_2.42a/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42a/f15.c:101:13: note: Null pointer dereference c2x_2.42a/f15.c:103:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42a/f15.c:72:15: note: Assuming allocation function fails c2x_2.42a/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42a/f15.c:103:13: note: Null pointer dereference c2x_2.42a/f15.c:104:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fort14 [nullPointerOutOfResources] c2x_2.42a/f15.c:72:15: note: Assuming allocation function fails c2x_2.42a/f15.c:72:15: note: Assignment 'fort14=fopen("fort.14","w")', assigned value is 0 c2x_2.42a/f15.c:104:10: note: Null pointer dereference c2x_2.42a/f15.c:107:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fort4 [nullPointerOutOfResources] c2x_2.42a/f15.c:106:14: note: Assuming allocation function fails c2x_2.42a/f15.c:106:14: note: Assignment 'fort4=fopen("fort.4","w")', assigned value is 0 c2x_2.42a/f15.c:107:11: note: Null pointer dereference c2x_2.42a/f15.c:108:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fort4 [nullPointerOutOfResources] c2x_2.42a/f15.c:106:14: note: Assuming allocation function fails c2x_2.42a/f15.c:106:14: note: Assignment 'fort4=fopen("fort.4","w")', assigned value is 0 c2x_2.42a/f15.c:108:11: note: Null pointer dereference c2x_2.42a/f15.c:115:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fort4 [nullPointerOutOfResources] c2x_2.42a/f15.c:106:14: note: Assuming allocation function fails c2x_2.42a/f15.c:106:14: note: Assignment 'fort4=fopen("fort.4","w")', assigned value is 0 c2x_2.42a/f15.c:115:11: note: Null pointer dereference c2x_2.42a/f15.c:120:10: warning: If resource allocation fails, then there is a possible null pointer dereference: fort4 [nullPointerOutOfResources] c2x_2.42a/f15.c:106:14: note: Assuming allocation function fails c2x_2.42a/f15.c:106:14: note: Assignment 'fort4=fopen("fort.4","w")', assigned value is 0 c2x_2.42a/f15.c:120:10: note: Null pointer dereference c2x_2.42a/f15.c:25:34: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/f15.c:25:70: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] c2x_2.42a/fbin_write.c:49:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/fbin_write.c:45:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42a/fdf_read.c:128:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/fdf_read.c:774:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/fdf_read.c:838:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/fdf_read.c:891:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/fdf_read.c:951:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/fdf_read.c:1035:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/fdf_read.c:1069:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/fdf_read.c:860:16: style: Redundant condition: The condition '*buff' is redundant since '*buff == ' '' is sufficient. [redundantCondition] c2x_2.42a/fdf_read.c:902:16: style: Redundant condition: The condition '*buff' is redundant since '*buff == ' '' is sufficient. [redundantCondition] c2x_2.42a/fdf_read.c:1019:3: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42a/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42a/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42a/fdf_read.c:1019:3: note: Null pointer dereference c2x_2.42a/fdf_read.c:1020:22: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42a/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42a/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42a/fdf_read.c:1020:22: note: Null pointer dereference c2x_2.42a/fdf_read.c:1021:10: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42a/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42a/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42a/fdf_read.c:1021:10: note: Null pointer dereference c2x_2.42a/fdf_read.c:688:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:688:9: note: Shadow local variable c2x_2.42a/fdf_read.c:803:59: style: Argument 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:803:59: note: Shadow argument c2x_2.42a/fdf_read.c:857:12: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:857:12: note: Shadow local variable c2x_2.42a/fdf_read.c:899:12: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:899:12: note: Shadow local variable c2x_2.42a/fdf_read.c:1064:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:1064:9: note: Shadow local variable c2x_2.42a/fdf_read.c:1148:34: style: Argument 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:1148:34: note: Shadow argument c2x_2.42a/fdf_read.c:688:14: style: Variable 'success' can be declared as pointer to const [constVariablePointer] c2x_2.42a/fdf_read.c:803:48: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] c2x_2.42a/fdf_read.c:963:46: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] c2x_2.42a/fdf_read.c:1007:32: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] c2x_2.42a/fdf_read.c:1007:46: style: Parameter 'label' can be declared as pointer to const [constParameterPointer] c2x_2.42a/fdf_read.c:728:7: warning: Uninitialized variable: ptr [uninitvar] c2x_2.42a/fdf_read.c:690:17: note: Assuming condition is false c2x_2.42a/fdf_read.c:728:7: note: Uninitialized variable: ptr c2x_2.42a/fdf_write.c:294:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/fdf_write.c:413:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/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.42a/fdf_write.c:37:43: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42a/fdf_write.c:40:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/fdf_write.c:203:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/fdf_write.c:284:22: style: Parameter 'oldname' can be declared as pointer to const [constParameterPointer] c2x_2.42a/fdf_write.c:284:49: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/fdf_write.c:288:11: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/fdf_write.c:288:18: style: Variable 'dptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/fdf_write.c:398:47: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] c2x_2.42a/file_read.c:108:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/file_read.c:103:18: style: Variable 'i_frame_ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/fort34_read.c:41:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/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.42a/gcoeff_read.c:129:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/gcoeff_write.c:72:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/gcoeff_write.c:15:72: style: Variable 'x' can be declared as pointer to const [constVariablePointer] c2x_2.42a/gcoeff_write.c:15:75: style: Variable 'y' can be declared as pointer to const [constVariablePointer] c2x_2.42a/gcoeff_write.c:25:27: style: Parameter 'psi' can be declared as pointer to const [constParameterPointer] c2x_2.42a/gcoeff_write.c:25:37: style: Parameter 'pwgrid' can be declared as pointer to const [constParameterPointer] c2x_2.42a/gcoeff_write.c:25:60: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42a/gcoeff_write.c:26:20: style: Parameter 'goff' can be declared as const array [constParameter] c2x_2.42a/gcoeff_write.c:27:23: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/gcoeff_write.c:29:13: style: Parameter 'eval' can be declared as pointer to const [constParameterPointer] c2x_2.42a/gcoeff_write.c:32:11: style: Variable 'kpt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/geom_read.c:114:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/geom_read.c:14:40: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/geom_write.c:30:9: style: Variable 'sp20' can be declared as pointer to const [constVariablePointer] c2x_2.42a/gpfa.c:114:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/gpfa.c:242:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/gpfa.c:61:28: style: Parameter 'nn' can be declared as pointer to const [constParameterPointer] c2x_2.42a/grad.c:21:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/grad.c:80:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/grad.c:172:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/grad.c:210:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/grad.c:252:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/grad.c:312:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/grad.c:395:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/grad.c:18:24: style: Variable 'dptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/grad.c:18:31: style: Variable 'dptr3' can be declared as pointer to const [constVariablePointer] c2x_2.42a/grad.c:249:24: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/grad.c:249:31: style: Variable 'dptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/grad.c:249:38: style: Variable 'dptr3' can be declared as pointer to const [constVariablePointer] c2x_2.42a/grad.c:390:45: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/ident_sym.c:162:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ident_sym.c:190:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ident_sym.c:242:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ident_sym.c:567:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ident_sym.c:161:15: style:inconclusive: Boolean expression '!strchr("0123456789+-xyzXYZ",*str)' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] c2x_2.42a/ident_sym.c:218:71: style:inconclusive: Function 'ident_sym' argument 3 names different: declaration 'm' definition 'motif'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:260:72: note: Function 'ident_sym' argument 3 names different: declaration 'm' definition 'motif'. c2x_2.42a/ident_sym.c:218:71: note: Function 'ident_sym' argument 3 names different: declaration 'm' definition 'motif'. c2x_2.42a/ident_sym.c:114:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] c2x_2.42a/ident_sym.c:564:17: style: Parameter 'm' can be declared as const array [constParameter] c2x_2.42a/ident_sym.c:570:20: style: Parameter 'a' can be declared as const array [constParameter] c2x_2.42a/ident_sym.c:570:32: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42a/ident_sym.c:576:21: style: Parameter 'v' can be declared as const array [constParameter] c2x_2.42a/interpolate.c:47:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/interpolate.c:213:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/interpolate.c:308:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/interpolate.c:208:48: style:inconclusive: Function 'interpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:378:47: note: Function 'interpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. c2x_2.42a/interpolate.c:208:48: note: Function 'interpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. c2x_2.42a/interpolate.c:253:47: style:inconclusive: Function 'vinterpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:379:46: note: Function 'vinterpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. c2x_2.42a/interpolate.c:253:47: note: Function 'vinterpolate0d' argument 2 names different: declaration 'x' definition 'x_in'. c2x_2.42a/interpolate.c:365:13: style:inconclusive: Function 'interpolate0d_fft' argument 4 names different: declaration 'rec' definition 'rec_in'. [funcArgNamesDifferent] c2x_2.42a/interpolate.c:30:13: note: Function 'interpolate0d_fft' argument 4 names different: declaration 'rec' definition 'rec_in'. c2x_2.42a/interpolate.c:365:13: note: Function 'interpolate0d_fft' argument 4 names different: declaration 'rec' definition 'rec_in'. c2x_2.42a/interpolate.c:122:39: style: Parameter 'p' can be declared as const array [constParameter] c2x_2.42a/interpolate.c:129:45: style: Parameter 'x_in' can be declared as const array [constParameter] c2x_2.42a/interpolate.c:210:27: style: Variable 'data' can be declared as pointer to const [constVariablePointer] c2x_2.42a/interpolate.c:261:46: style: Parameter 'st' can be declared as const array [constParameter] c2x_2.42a/interpolate.c:261:60: style: Parameter 'end' can be declared as const array [constParameter] c2x_2.42a/interpolate.c:297:24: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] c2x_2.42a/interpolate.c:297:31: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42a/interpolate.c:364:52: style: Parameter 'x_in' can be declared as const array [constParameter] c2x_2.42a/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.42a/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.42a/ksym.c:149:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ksym.c:382:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ksym.c:392:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ksym.c:412:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ksym.c:451:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ksym.c:588:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ksym.c:860:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ksym.c:1135:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ksym.c:1169:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/ksym.c:276:3: warning: Either the condition '!k_out' is redundant or there is possible null pointer dereference: k_out. [nullPointerRedundantCheck] c2x_2.42a/ksym.c:277:7: note: Assuming that condition '!k_out' is not redundant c2x_2.42a/ksym.c:276:3: note: Null pointer dereference c2x_2.42a/ksym.c:1078:39: style: Argument 'flags' shadows outer variable [shadowVariable] c2x_2.42a/c2xsf.h:414:18: note: Shadowed variable c2x_2.42a/ksym.c:1078:39: note: Shadow argument c2x_2.42a/ksym.c:111:32: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42a/ksym.c:111:50: style: Parameter 's' can be declared as pointer to const [constParameterPointer] c2x_2.42a/ksym.c:212:27: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] c2x_2.42a/ksym.c:249:28: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] c2x_2.42a/ksym.c:249:43: style: Parameter 'kl' can be declared as pointer to const [constParameterPointer] c2x_2.42a/ksym.c:388:20: style: Parameter 'x' can be declared as const array [constParameter] c2x_2.42a/ksym.c:406:21: style: Parameter 'x' can be declared as const array [constParameter] c2x_2.42a/ksym.c:406:60: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/ksym.c:647:21: style: Parameter 'm1' can be declared as const array [constParameter] c2x_2.42a/ksym.c:647:55: style: Parameter 'basis' can be declared as const array [constParameter] c2x_2.42a/ksym.c:648:13: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42a/ksym.c:673:21: style: Parameter 'm1' can be declared as const array [constParameter] c2x_2.42a/ksym.c:673:55: style: Parameter 'basis' can be declared as const array [constParameter] c2x_2.42a/ksym.c:674:13: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42a/ksym.c:697:24: style: Parameter 'm' can be declared as const array [constParameter] c2x_2.42a/ksym.c:716:44: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] c2x_2.42a/ksym.c:1152:8: style: Parameter 'grid' can be declared as const array [constParameter] c2x_2.42a/ksym.c:1152:24: style: Parameter 'k_off' can be declared as const array [constParameter] c2x_2.42a/ksym.c:872:9: style: Variable 'sop.tr' is assigned a value that is never used. [unreadVariable] c2x_2.42a/line_write.c:86:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/line_write.c:222:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/line_write.c:404:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/line_write.c:561:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/line_write.c:795:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/line_write.c:952:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/line_write.c:1115:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/line_write.c:395:33: style:inconclusive: Function 'interpolate_r' argument 6 names different: declaration 'points' definition 'pts'. [funcArgNamesDifferent] c2x_2.42a/line_write.c:38:34: note: Function 'interpolate_r' argument 6 names different: declaration 'points' definition 'pts'. c2x_2.42a/line_write.c:395:33: note: Function 'interpolate_r' argument 6 names different: declaration 'points' definition 'pts'. c2x_2.42a/line_write.c:554:15: style:inconclusive: Function 'interpolate_spherical' argument 7 names different: declaration 'points' definition 'pts'. [funcArgNamesDifferent] c2x_2.42a/line_write.c:44:15: note: Function 'interpolate_spherical' argument 7 names different: declaration 'points' definition 'pts'. c2x_2.42a/line_write.c:554:15: note: Function 'interpolate_spherical' argument 7 names different: declaration 'points' definition 'pts'. c2x_2.42a/line_write.c:687:64: style:inconclusive: Function 'accumulate' argument 4 names different: declaration 'n_in' definition 'n'. [funcArgNamesDifferent] c2x_2.42a/line_write.c:50:64: note: Function 'accumulate' argument 4 names different: declaration 'n_in' definition 'n'. c2x_2.42a/line_write.c:687:64: note: Function 'accumulate' argument 4 names different: declaration 'n_in' definition 'n'. c2x_2.42a/line_write.c:786:44: style:inconclusive: Function 'interpolate_fspherical' argument 1 names different: declaration 'gptr' definition 'g'. [funcArgNamesDifferent] c2x_2.42a/line_write.c:45:44: note: Function 'interpolate_fspherical' argument 1 names different: declaration 'gptr' definition 'g'. c2x_2.42a/line_write.c:786:44: note: Function 'interpolate_fspherical' argument 1 names different: declaration 'gptr' definition 'g'. c2x_2.42a/line_write.c:787:38: style:inconclusive: Function 'interpolate_fspherical' argument 5 names different: declaration 'len' definition 'rad'. [funcArgNamesDifferent] c2x_2.42a/line_write.c:46:35: note: Function 'interpolate_fspherical' argument 5 names different: declaration 'len' definition 'rad'. c2x_2.42a/line_write.c:787:38: note: Function 'interpolate_fspherical' argument 5 names different: declaration 'len' definition 'rad'. c2x_2.42a/line_write.c:943:34: style:inconclusive: Function 'interpolate_fr' argument 1 names different: declaration 'gptr' definition 'g'. [funcArgNamesDifferent] c2x_2.42a/line_write.c:39:35: note: Function 'interpolate_fr' argument 1 names different: declaration 'gptr' definition 'g'. c2x_2.42a/line_write.c:943:34: note: Function 'interpolate_fr' argument 1 names different: declaration 'gptr' definition 'g'. c2x_2.42a/line_write.c:944:15: style:inconclusive: Function 'interpolate_fr' argument 4 names different: declaration 'start' definition 'origin_frac_in'. [funcArgNamesDifferent] c2x_2.42a/line_write.c:40:16: note: Function 'interpolate_fr' argument 4 names different: declaration 'start' definition 'origin_frac_in'. c2x_2.42a/line_write.c:944:15: note: Function 'interpolate_fr' argument 4 names different: declaration 'start' definition 'origin_frac_in'. c2x_2.42a/line_write.c:945:14: style:inconclusive: Function 'interpolate_fr' argument 5 names different: declaration 'len' definition 'rad'. [funcArgNamesDifferent] c2x_2.42a/line_write.c:40:30: note: Function 'interpolate_fr' argument 5 names different: declaration 'len' definition 'rad'. c2x_2.42a/line_write.c:945:14: note: Function 'interpolate_fr' argument 5 names different: declaration 'len' definition 'rad'. c2x_2.42a/line_write.c:945:34: style:inconclusive: Function 'interpolate_fr' argument 7 names different: declaration 'points' definition 'pts'. [funcArgNamesDifferent] c2x_2.42a/line_write.c:41:16: note: Function 'interpolate_fr' argument 7 names different: declaration 'points' definition 'pts'. c2x_2.42a/line_write.c:945:34: note: Function 'interpolate_fr' argument 7 names different: declaration 'points' definition 'pts'. c2x_2.42a/line_write.c:148:16: style: Variable 'g' can be declared as pointer to const [constVariablePointer] c2x_2.42a/line_write.c:149:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/line_write.c:150:15: style: Variable 'comment' can be declared as pointer to const [constVariablePointer] c2x_2.42a/line_write.c:647:38: style: Parameter 'gptr' can be declared as pointer to const [constParameterPointer] c2x_2.42a/line_write.c:728:28: style: Parameter 'points' can be declared as pointer to const [constParameterPointer] c2x_2.42a/line_write.c:786:75: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/line_write.c:787:18: style: Parameter 'origin_frac' can be declared as pointer to const [constParameterPointer] c2x_2.42a/line_write.c:790:18: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/line_write.c:944:15: style: Parameter 'origin_frac_in' can be declared as pointer to const [constParameterPointer] c2x_2.42a/line_write.c:947:18: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/mol_read.c:51:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/mol_read.c:85:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/mol_read.c:16:38: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/mol_write.c:14:48: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42a/molecule_fix.c:59:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/molecule_fix.c:84:10: warning: Either the condition 'gptr' is redundant or there is possible null pointer dereference: gptr. [nullPointerRedundantCheck] c2x_2.42a/molecule_fix.c:58:12: note: Assuming that condition 'gptr' is not redundant c2x_2.42a/molecule_fix.c:84:10: note: Null pointer dereference c2x_2.42a/molecule_fix.c:36:40: style: Parameter 'm_rel' can be declared as const array [constParameter] c2x_2.42a/npy_read.c:58:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/npy_read.c:193:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/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.42a/npy_read.c:18:8: style: Variable 'magic' can be declared as const array [constVariable] c2x_2.42a/npy_read.c:187:18: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/npy_write.c:58:30: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] c2x_2.42a/npy_write.c:57:13: note: Assuming allocation function fails c2x_2.42a/npy_write.c:57:13: note: Assignment 'hdr=malloc(256)', assigned value is 0 c2x_2.42a/npy_write.c:58:30: note: Null pointer dereference c2x_2.42a/npy_write.c:13:8: style: Variable 'magic' can be declared as const array [constVariable] c2x_2.42a/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.42a/parity.c:80:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/parity.c:106:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/parity.c:13:31: style: Parameter 'phase' can be declared as pointer to const [constParameterPointer] c2x_2.42a/parity.c:13:46: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] c2x_2.42a/parity.c:13:53: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42a/parity.c:93:25: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] c2x_2.42a/parity.c:93:54: style: Parameter 'kpt' can be declared as const array [constParameter] c2x_2.42a/parse.c:129:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] c2x_2.42a/parse.c:259:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/parse.c:463:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/parse.c:346:32: style: Condition '*op=='/'' is always false [knownConditionTrueFalse] c2x_2.42a/parse.c:229:3: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42a/parse.c:237:3: error: Common realloc mistake: 'op_stack' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42a/parse.c:333:9: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42a/parse.c:456:7: error: Common realloc mistake: 'num_st' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42a/parse.c:332:25: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] c2x_2.42a/parse.c:331:17: note: Assuming allocation function fails c2x_2.42a/parse.c:331:17: note: Assignment 'x=malloc(sizeof(double))', assigned value is 0 c2x_2.42a/parse.c:332:25: note: Null pointer dereference c2x_2.42a/parse.c:341:28: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:341:28: note: Null pointer dereference c2x_2.42a/parse.c:342:7: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:342:7: note: Null pointer dereference c2x_2.42a/parse.c:345:13: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:345:13: note: Null pointer dereference c2x_2.42a/parse.c:345:25: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:345:25: note: Null pointer dereference c2x_2.42a/parse.c:346:6: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:346:6: note: Null pointer dereference c2x_2.42a/parse.c:346:18: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:346:18: note: Null pointer dereference c2x_2.42a/parse.c:346:30: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:346:30: note: Null pointer dereference c2x_2.42a/parse.c:347:13: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:347:13: note: Null pointer dereference c2x_2.42a/parse.c:347:25: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:347:25: note: Null pointer dereference c2x_2.42a/parse.c:348:13: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:348:13: note: Null pointer dereference c2x_2.42a/parse.c:348:25: warning: If memory allocation fails, then there is a possible null pointer dereference: op [nullPointerOutOfMemory] c2x_2.42a/parse.c:340:16: note: Assuming allocation function fails c2x_2.42a/parse.c:340:16: note: Assignment 'op=malloc(p2-p1+1)', assigned value is 0 c2x_2.42a/parse.c:348:25: note: Null pointer dereference c2x_2.42a/parse.c:376:4: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] c2x_2.42a/parse.c:375:12: note: Assuming allocation function fails c2x_2.42a/parse.c:375:12: note: Assignment 'c=malloc(2)', assigned value is 0 c2x_2.42a/parse.c:376:4: note: Null pointer dereference c2x_2.42a/parse.c:377:4: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] c2x_2.42a/parse.c:375:12: note: Assuming allocation function fails c2x_2.42a/parse.c:375:12: note: Assignment 'c=malloc(2)', assigned value is 0 c2x_2.42a/parse.c:377:4: note: Null pointer dereference c2x_2.42a/parse.c:346:26: style: Same expression on both sides of '||'. [duplicateExpression] c2x_2.42a/parse.c:61:15: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/parse.c:115:23: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] c2x_2.42a/parse.c:168:22: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] c2x_2.42a/parse.c:447:9: style: Variable 'op' can be declared as pointer to const [constVariablePointer] c2x_2.42a/parse.c:379:16: style: Variable 'implicit_mul' is assigned a value that is never used. [unreadVariable] c2x_2.42a/pdb_read.c:56:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/pdb_read.c:210:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/pdb_read.c:195:15: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] c2x_2.42a/pdb_read.c:193:39: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] c2x_2.42a/periodic_table.c:51:9: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/periodic_table.c:51:13: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/phonon_read.c:66:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/potential.c:40:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/potential.c:310:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/potential.c:538:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/potential.c:291:35: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/potential.c:292:21: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42a/potential.c:298:56: style: Variable 'pot' can be declared as pointer to const [constVariablePointer] c2x_2.42a/potential.c:516:9: style: Variable 'charge_correction' can be declared as pointer to const [constVariablePointer] c2x_2.42a/primitive.c:66:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/primitive.c:263:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/primitive.c:376:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/primitive.c:476:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/primitive.c:115:22: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42a/primitive.c:115:22: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42a/primitive.c:124:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42a/primitive.c:136:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42a/primitive.c:42:64: style:inconclusive: Function 'primitive' argument 3 names different: declaration 'basis' definition 'vfinal'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:388:64: note: Function 'primitive' argument 3 names different: declaration 'basis' definition 'vfinal'. c2x_2.42a/primitive.c:42:64: note: Function 'primitive' argument 3 names different: declaration 'basis' definition 'vfinal'. c2x_2.42a/primitive.c:243:21: style:inconclusive: Function 'shorten' argument 1 names different: declaration 'basis' definition 'vfinal'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:389:21: note: Function 'shorten' argument 1 names different: declaration 'basis' definition 'vfinal'. c2x_2.42a/primitive.c:243:21: note: Function 'shorten' argument 1 names different: declaration 'basis' definition 'vfinal'. c2x_2.42a/primitive.c:438:25: style:inconclusive: Function 'basis_signs' argument 1 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42a/primitive.c:27:25: note: Function 'basis_signs' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42a/primitive.c:438:25: note: Function 'basis_signs' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42a/primitive.c:469:25: style:inconclusive: Function 'basis_equal' argument 1 names different: declaration 'basis' definition 'b'. [funcArgNamesDifferent] c2x_2.42a/primitive.c:28:25: note: Function 'basis_equal' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42a/primitive.c:469:25: note: Function 'basis_equal' argument 1 names different: declaration 'basis' definition 'b'. c2x_2.42a/primitive.c:33:18: style: Variable 'v1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/primitive.c:34:18: style: Variable 'v2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/primitive.c:338:30: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/primitive.c:538:22: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42a/primitive.c:445:11: style: Variable 'c2' is assigned a value that is never used. [unreadVariable] c2x_2.42a/print_cell.c:21:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:34:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:86:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:128:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:206:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:282:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:297:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:310:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:373:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:482:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/print_cell.c:263:15: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] c2x_2.42a/print_cell.c:267:15: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] c2x_2.42a/print_cell.c:470:30: style:inconclusive: Function 'print_grid' argument 1 names different: declaration 'g' definition 'gptr'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:282:30: note: Function 'print_grid' argument 1 names different: declaration 'g' definition 'gptr'. c2x_2.42a/print_cell.c:470:30: note: Function 'print_grid' argument 1 names different: declaration 'g' definition 'gptr'. c2x_2.42a/print_cell.c:13:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/print_cell.c:28:55: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42a/print_cell.c:30:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/print_cell.c:120:54: style: Parameter 'kp' can be declared as pointer to const [constParameterPointer] c2x_2.42a/print_cell.c:172:44: style: Parameter 'eval' can be declared as pointer to const [constParameterPointer] c2x_2.42a/print_cell.c:276:29: style: Parameter 'elect' can be declared as pointer to const [constParameterPointer] c2x_2.42a/print_cell.c:366:69: style: Parameter 'kpts' can be declared as pointer to const [constParameterPointer] c2x_2.42a/print_cell.c:367:54: style: Parameter 'e_fermi' can be declared as pointer to const [constParameterPointer] c2x_2.42a/print_cell.c:470:54: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/py_write.c:56:11: style: The if condition is the same as the previous if condition [duplicateCondition] c2x_2.42a/py_write.c:54:11: note: First condition c2x_2.42a/py_write.c:56:11: note: Second condition c2x_2.42a/py_write.c:31:48: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/py_write.c:31:68: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] c2x_2.42a/py_write.c:34:9: style: Variable 'fmt1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/py_write.c:34:15: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/py_write.c:34:21: style: Variable 'fmt3' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_psi_read.c:39:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_psi_read.c:67:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_psi_read.c:33:24: style: Parameter 'xk' can be declared as const array [constParameter] c2x_2.42a/qe_psi_read.c:52:24: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] c2x_2.42a/qe_psi_read.c:52:35: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] c2x_2.42a/qe_psi_read.c:57:15: style: Variable 'sspin' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_read.c:203:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_read.c:53:8: warning: Either the condition '*ptr' is redundant or there is possible null pointer dereference: *ptr. [nullPointerRedundantCheck] c2x_2.42a/qe_read.c:52:10: note: Assuming that condition '*ptr' is not redundant c2x_2.42a/qe_read.c:53:8: note: Null pointer dereference c2x_2.42a/qe_read.c:80:8: warning: Either the condition '*ptr' is redundant or there is possible null pointer dereference: *ptr. [nullPointerRedundantCheck] c2x_2.42a/qe_read.c:79:10: note: Assuming that condition '*ptr' is not redundant c2x_2.42a/qe_read.c:80:8: note: Null pointer dereference c2x_2.42a/qe_read.c:102:8: warning: Either the condition '*ptr' is redundant or there is possible null pointer dereference: *ptr. [nullPointerRedundantCheck] c2x_2.42a/qe_read.c:101:10: note: Assuming that condition '*ptr' is not redundant c2x_2.42a/qe_read.c:102:8: note: Null pointer dereference c2x_2.42a/qe_read.c:238:25: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] c2x_2.42a/qe_read.c:341:25: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] c2x_2.42a/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.42a/qe_read.c:812:19: note: c->basis[2][2] is assigned c2x_2.42a/qe_read.c:813:19: note: c->basis[2][2] is overwritten c2x_2.42a/qe_read.c:776:7: style: Variable 'tx' is assigned a value that is never used. [unreadVariable] c2x_2.42a/qe_rho_read.c:40:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_rho_read.c:167:7: style: Variable 'data' is reassigned a value before the old one has been used. [redundantAssignment] c2x_2.42a/qe_rho_read.c:42:7: note: data is assigned c2x_2.42a/qe_rho_read.c:167:7: note: data is overwritten c2x_2.42a/qe_rho_read.c:31:27: style: Parameter 'i_grid' can be declared as pointer to const [constParameterPointer] c2x_2.42a/qe_write.c:380:31: style: Variable 'tmp' is reassigned a value before the old one has been used. [redundantAssignment] c2x_2.42a/qe_write.c:379:10: note: tmp is assigned c2x_2.42a/qe_write.c:380:31: note: tmp is overwritten c2x_2.42a/qe_write.c:42:35: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] c2x_2.42a/qe_write.c:44:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_write.c:44:19: style: Variable 'calc_type' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_write.c:47:16: style: Variable 'k2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_xml_read.c:56:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_xml_read.c:844:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_xml_read.c:963:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_xml_read.c:1003:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_xml_read.c:1073:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_xml_read.c:1095:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/qe_xml_read.c:701:7: style: The if condition is the same as the previous if condition [duplicateCondition] c2x_2.42a/qe_xml_read.c:670:7: note: First condition c2x_2.42a/qe_xml_read.c:701:7: note: Second condition c2x_2.42a/qe_xml_read.c:1112:11: style: Condition '!*cptr3' is always false [knownConditionTrueFalse] c2x_2.42a/qe_xml_read.c:1111:19: note: Assuming that condition '*cptr3!='"'' is not redundant c2x_2.42a/qe_xml_read.c:1112:11: note: Condition '!*cptr3' is always false c2x_2.42a/qe_xml_read.c:47:55: style: Variable 'calculation' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_xml_read.c:839:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] c2x_2.42a/qe_xml_read.c:839:39: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] c2x_2.42a/qe_xml_read.c:839:53: style: Parameter 'cwd' can be declared as pointer to const [constParameterPointer] c2x_2.42a/qe_xml_read.c:841:15: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_xml_read.c:995:14: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_xml_read.c:1063:9: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_xml_read.c:1088:22: style: Variable 'cptr3' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_xml_read.c:1137:49: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] c2x_2.42a/qe_xml_read.c:1140:14: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/qe_xml_read.c:703:10: style: Variable 'cptr2' is assigned a value that is never used. [unreadVariable] c2x_2.42a/qe_xml_read.c:1001:6: style: Variable 'i' is assigned a value that is never used. [unreadVariable] c2x_2.42a/qe_xml_read.c:1125:9: style: Variable 'cptr' is assigned a value that is never used. [unreadVariable] c2x_2.42a/rho_read.c:103:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/rotate.c:97:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/shelx_read.c:57:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/shelx_read.c:80:37: style:inconclusive: Boolean expression '*cptr2!='\n'' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] c2x_2.42a/shelx_read.c:67:14: style: Condition '*cptr==0' is always false [knownConditionTrueFalse] c2x_2.42a/shelx_write.c:38:9: style: Variable 'fmt1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/shelx_write.c:38:15: style: Variable 'fmt2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/sort_atoms.c:74:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/sort_atoms.c:26:16: style: Variable 'a1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/sort_atoms.c:27:16: style: Variable 'a2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/sort_atoms.c:46:16: style: Variable 'a1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/sort_atoms.c:47:16: style: Variable 'a2' can be declared as pointer to const [constVariablePointer] c2x_2.42a/super.c:113:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/super.c:571:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/super.c:634:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/super.c:741:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/super.c:755:7: style: Condition '!rgrid' is always false [knownConditionTrueFalse] c2x_2.42a/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.42a/super.c:449:19: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42a/super.c:452:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] c2x_2.42a/super.c:772:7: warning: If memory allocation fails, then there is a possible null pointer dereference: rgrid_new [nullPointerOutOfMemory] c2x_2.42a/super.c:754:19: note: Assuming allocation function fails c2x_2.42a/super.c:754:19: note: Assignment 'rgrid_new=malloc(npts_new*2*sizeof(double))', assigned value is 0 c2x_2.42a/super.c:772:7: note: Null pointer dereference c2x_2.42a/super.c:36:49: style:inconclusive: Function 'super' argument 2 names different: declaration 'm' definition 'mtf'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:321:49: note: Function 'super' argument 2 names different: declaration 'm' definition 'mtf'. c2x_2.42a/super.c:36:49: note: Function 'super' argument 2 names different: declaration 'm' definition 'mtf'. c2x_2.42a/super.c:37:49: style:inconclusive: Function 'super' argument 4 names different: declaration 'k' definition 'kp'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:322:49: note: Function 'super' argument 4 names different: declaration 'k' definition 'kp'. c2x_2.42a/super.c:37:49: note: Function 'super' argument 4 names different: declaration 'k' definition 'kp'. c2x_2.42a/super.c:38:27: style:inconclusive: Function 'super' argument 7 names different: declaration 'rhs' definition 'sflags'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:323:35: note: Function 'super' argument 7 names different: declaration 'rhs' definition 'sflags'. c2x_2.42a/super.c:38:27: note: Function 'super' argument 7 names different: declaration 'rhs' definition 'sflags'. c2x_2.42a/super.c:38:39: style:inconclusive: Function 'super' argument 8 names different: declaration 'new_grid' definition 'fft_in'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:323:44: note: Function 'super' argument 8 names different: declaration 'new_grid' definition 'fft_in'. c2x_2.42a/super.c:38:39: note: Function 'super' argument 8 names different: declaration 'new_grid' definition 'fft_in'. c2x_2.42a/super.c:542:17: style:inconclusive: Function 'to235' argument 1 names different: declaration 'n' definition 'i'. [funcArgNamesDifferent] c2x_2.42a/c2xsf.h:377:17: note: Function 'to235' argument 1 names different: declaration 'n' definition 'i'. c2x_2.42a/super.c:542:17: note: Function 'to235' argument 1 names different: declaration 'n' definition 'i'. c2x_2.42a/super.c:558:62: style:inconclusive: Function 'grid_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. [funcArgNamesDifferent] c2x_2.42a/super.c:27:61: note: Function 'grid_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. c2x_2.42a/super.c:558:62: note: Function 'grid_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. c2x_2.42a/super.c:732:66: style:inconclusive: Function 'grid_fft_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. [funcArgNamesDifferent] c2x_2.42a/super.c:29:65: note: Function 'grid_fft_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. c2x_2.42a/super.c:732:66: note: Function 'grid_fft_interp' argument 3 names different: declaration 'old_fft' definition 'new_fft'. c2x_2.42a/super.c:85:12: style: Local variable 'vtmp' shadows outer variable [shadowVariable] c2x_2.42a/super.c:42:34: note: Shadowed variable c2x_2.42a/super.c:85:12: note: Shadow local variable c2x_2.42a/super.c:38:39: style: Parameter 'fft_in' can be declared as const array [constParameter] c2x_2.42a/super.c:619:16: style: Parameter 'expand' can be declared as const array [constParameter] c2x_2.42a/test_parser.c:21:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] c2x_2.42a/test_parser.c:30:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/test_parser.c:29:23: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] c2x_2.42a/tube.c:30:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/vasp_read.c:84:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/vasp_read.c:548:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/vasp_read.c:665:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/vasp_read.c:949:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/vasp_read.c:1004:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/vasp_read.c:1137:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/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.42a/vasp_read.c:421:7: error: Common realloc mistake: 'dptr' nulled but not freed upon failure [memleakOnRealloc] c2x_2.42a/vasp_read.c:538:33: style: Parameter 'first' can be declared as pointer to const [constParameterPointer] c2x_2.42a/vasp_read.c:588:40: style: Parameter 'recip' can be declared as const array [constParameter] c2x_2.42a/vasp_read.c:588:60: style: Parameter 'kpt' can be declared as const array [constParameter] c2x_2.42a/vasp_read.c:589:51: style: Parameter 'fft' can be declared as const array [constParameter] c2x_2.42a/vasp_read.c:902:33: style: Parameter 'old' can be declared as pointer to const [constParameterPointer] c2x_2.42a/vasp_read.c:902:44: style: Parameter 'new' can be declared as pointer to const [constParameterPointer] c2x_2.42a/vasp_read.c:1124:28: style: Parameter 'nionsp' can be declared as pointer to const [constParameterPointer] c2x_2.42a/vasp_read.c:1126:29: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42a/vasp_write.c:32:11: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/vasp_write.c:34:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/wavecar_write.c:106:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/wavecar_write.c:22:28: style: Parameter 'psi' can be declared as pointer to const [constParameterPointer] c2x_2.42a/wavecar_write.c:23:20: style: Parameter 'goff' can be declared as const array [constParameter] c2x_2.42a/xc.c:57:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/xplor_write.c:88:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/xplor_write.c:51:11: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/xplor_write.c:81:72: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] c2x_2.42a/xsf_read.c:40:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/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.42a/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.42a/xsf_read.c:249:14: style: Variable 'success' can be declared as pointer to const [constVariablePointer] c2x_2.42a/xsf_write.c:174:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/xsf_write.c:80:17: style: Variable 'dptr1' can be declared as pointer to const [constVariablePointer] c2x_2.42a/xsf_write.c:81:9: style: Variable 'fmtf' can be declared as pointer to const [constVariablePointer] c2x_2.42a/xsf_write.c:81:15: style: Variable 'fmtd6f' can be declared as pointer to const [constVariablePointer] c2x_2.42a/xsf_write.c:81:23: style: Variable 'fmtd3f' can be declared as pointer to const [constVariablePointer] c2x_2.42a/xsf_write.c:81:31: style: Variable 'fmt3f' can be declared as pointer to const [constVariablePointer] c2x_2.42a/xsf_write.c:83:15: style: Variable 'comment' can be declared as pointer to const [constVariablePointer] c2x_2.42a/xv_read.c:131:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/xv_read.c:148:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/xv_read.c:185:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] c2x_2.42a/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.42a/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.42a/xv_read.c:40:17: style: Variable 'species_to_charge' can be declared as pointer to const [constVariablePointer] c2x_2.42a/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.42a/xyz_write.c:32:49: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] c2x_2.42a/xyz_write.c:35:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/zones.c:70:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable norm [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:104:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tol [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:144:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:192:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable norm [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:221:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:235:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:268:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:301:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dist [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:310:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:336:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:358:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:389:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:483:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:508:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mat [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:524:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable debug [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:565:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable line [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:596:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:823:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable plane [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:958:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tol [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:1033:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tol [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:1085:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable plane [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:1136:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable valid [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:1196:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable poly [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:1279:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:1297:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] c2x_2.42a/zones.c:47:3: warning:inconclusive: Possible null pointer dereference: v [nullPointer] c2x_2.42a/zones.c:824:14: note: Assuming allocation function fails c2x_2.42a/zones.c:824:14: note: Assignment 'p->v=malloc(8*sizeof(struct vertex))', assigned value is 0 c2x_2.42a/zones.c:827:36: note: Calling function 'init_vertex', 1st argument 'p->v+i' value is 0 c2x_2.42a/zones.c:47:3: note: Null pointer dereference c2x_2.42a/zones.c:48:3: warning:inconclusive: Possible null pointer dereference: v [nullPointer] c2x_2.42a/zones.c:824:14: note: Assuming allocation function fails c2x_2.42a/zones.c:824:14: note: Assignment 'p->v=malloc(8*sizeof(struct vertex))', assigned value is 0 c2x_2.42a/zones.c:827:36: note: Calling function 'init_vertex', 1st argument 'p->v+i' value is 0 c2x_2.42a/zones.c:48:3: note: Null pointer dereference c2x_2.42a/zones.c:48:11: warning:inconclusive: Possible null pointer dereference: v [nullPointer] c2x_2.42a/zones.c:824:14: note: Assuming allocation function fails c2x_2.42a/zones.c:824:14: note: Assignment 'p->v=malloc(8*sizeof(struct vertex))', assigned value is 0 c2x_2.42a/zones.c:827:36: note: Calling function 'init_vertex', 1st argument 'p->v+i' value is 0 c2x_2.42a/zones.c:48:11: note: Null pointer dereference c2x_2.42a/zones.c:48:19: warning:inconclusive: Possible null pointer dereference: v [nullPointer] c2x_2.42a/zones.c:824:14: note: Assuming allocation function fails c2x_2.42a/zones.c:824:14: note: Assignment 'p->v=malloc(8*sizeof(struct vertex))', assigned value is 0 c2x_2.42a/zones.c:827:36: note: Calling function 'init_vertex', 1st argument 'p->v+i' value is 0 c2x_2.42a/zones.c:48:19: note: Null pointer dereference c2x_2.42a/zones.c:49:3: warning:inconclusive: Possible null pointer dereference: v [nullPointer] c2x_2.42a/zones.c:824:14: note: Assuming allocation function fails c2x_2.42a/zones.c:824:14: note: Assignment 'p->v=malloc(8*sizeof(struct vertex))', assigned value is 0 c2x_2.42a/zones.c:827:36: note: Calling function 'init_vertex', 1st argument 'p->v+i' value is 0 c2x_2.42a/zones.c:49:3: note: Null pointer dereference c2x_2.42a/zones.c:50:3: warning:inconclusive: Possible null pointer dereference: v [nullPointer] c2x_2.42a/zones.c:824:14: note: Assuming allocation function fails c2x_2.42a/zones.c:824:14: note: Assignment 'p->v=malloc(8*sizeof(struct vertex))', assigned value is 0 c2x_2.42a/zones.c:827:36: note: Calling function 'init_vertex', 1st argument 'p->v+i' value is 0 c2x_2.42a/zones.c:50:3: note: Null pointer dereference c2x_2.42a/zones.c:154:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: len [nullPointerOutOfMemory] c2x_2.42a/zones.c:147:13: note: Assuming allocation function fails c2x_2.42a/zones.c:147:13: note: Assignment 'len=malloc(pl->n*sizeof(double))', assigned value is 0 c2x_2.42a/zones.c:151:9: note: Assuming condition is false c2x_2.42a/zones.c:154:5: note: Null pointer dereference c2x_2.42a/zones.c:595:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sides [nullPointerOutOfMemory] c2x_2.42a/zones.c:590:15: note: Assuming allocation function fails c2x_2.42a/zones.c:590:15: note: Assignment 'sides=malloc(p->nverts*sizeof(int))', assigned value is 0 c2x_2.42a/zones.c:595:5: note: Null pointer dereference c2x_2.42a/zones.c:997:33: style: Same expression on both sides of '||'. [duplicateExpression] c2x_2.42a/zones.c:1049:33: style: Same expression on both sides of '||'. [duplicateExpression] c2x_2.42a/zones.c:88:32: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] c2x_2.42a/zones.c:88:42: style: Parameter 'p1' can be declared as const array [constParameter] c2x_2.42a/zones.c:88:56: style: Parameter 'p2' can be declared as const array [constParameter] c2x_2.42a/zones.c:124:24: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] c2x_2.42a/zones.c:131:26: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] c2x_2.42a/zones.c:216:19: style: Parameter 'x' can be declared as const array [constParameter] c2x_2.42a/zones.c:230:20: style: Parameter 'x' can be declared as const array [constParameter] c2x_2.42a/zones.c:248:16: style: Variable 'l' can be declared as pointer to const [constVariablePointer] c2x_2.42a/zones.c:954:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42a/zones.c:1028:9: style: Variable 'colour' can be declared as pointer to const [constVariablePointer] c2x_2.42a/zones.c:1028:17: style: Variable 'name' can be declared as pointer to const [constVariablePointer] c2x_2.42a/zones.c:1029:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] c2x_2.42a/zones.c:1081:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] c2x_2.42a/zones.c:1111:29: style: Parameter 'v' can be declared as const array [constParameter] c2x_2.42a/zones.c:1111:41: style: Parameter 'b' can be declared as const array [constParameter] c2x_2.42a/zones.c:1275:45: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] c2x_2.42a/zones.c:1277:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] c2x_2.42a/zones.c:1292:9: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] diff: 2.20.0 c2x_2.42a/abinit_in_read.c:931:9: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] 2.20.0 c2x_2.42a/basis.c:194:9: style: Local variable 'i' shadows outer variable [shadowVariable] c2x_2.42a/basis.c:142:7: note: Shadowed declaration c2x_2.42a/basis.c:194:9: note: Shadow variable head c2x_2.42a/basis.c:194:9: style: Local variable 'i' shadows outer variable [shadowVariable] c2x_2.42a/basis.c:142:7: note: Shadowed variable c2x_2.42a/basis.c:194:9: note: Shadow local variable 2.20.0 c2x_2.42a/cell_read.c:738:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/cell_read.c:44:14: note: Shadowed declaration c2x_2.42a/cell_read.c:738:9: note: Shadow variable head c2x_2.42a/cell_read.c:738:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/cell_read.c:44:14: note: Shadowed variable c2x_2.42a/cell_read.c:738:9: note: Shadow local variable head c2x_2.42a/cell_read.c:88:34: style: Argument 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/cell_read.c:44:14: note: Shadowed variable c2x_2.42a/cell_read.c:88:34: note: Shadow argument head c2x_2.42a/charge.c:109:37: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] head c2x_2.42a/charge.c:167:40: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.20.0 c2x_2.42a/charge.c:30:10: style: Local variable 'dist' shadows outer function [shadowFunction] c2x_2.42a/c2xsf.h:336:8: note: Shadowed declaration c2x_2.42a/charge.c:30:10: note: Shadow variable head c2x_2.42a/charge.c:30:10: style: Local variable 'dist' shadows outer function [shadowFunction] c2x_2.42a/c2xsf.h:336:8: note: Shadowed function c2x_2.42a/charge.c:30:10: note: Shadow local variable 2.20.0 c2x_2.42a/check2xsf.c:1543:17: style: Local variable 'kp2' shadows outer variable [shadowVariable] c2x_2.42a/check2xsf.c:219:18: note: Shadowed declaration c2x_2.42a/check2xsf.c:1543:17: note: Shadow variable head c2x_2.42a/check2xsf.c:1543:17: style: Local variable 'kp2' shadows outer variable [shadowVariable] c2x_2.42a/check2xsf.c:219:18: note: Shadowed variable c2x_2.42a/check2xsf.c:1543:17: note: Shadow local variable head c2x_2.42a/dipole.c:40:36: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.20.0 c2x_2.42a/fdf_read.c:1022:10: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42a/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42a/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42a/fdf_read.c:1022:10: note: Null pointer dereference 2.20.0 c2x_2.42a/fdf_read.c:1024:16: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] c2x_2.42a/fdf_read.c:1015:16: note: Assuming allocation function fails c2x_2.42a/fdf_read.c:1015:16: note: Assignment 'name=malloc(strlen(prefix)+strlen(label)+10)', assigned value is 0 c2x_2.42a/fdf_read.c:1024:16: note: Null pointer dereference 2.20.0 c2x_2.42a/fdf_read.c:1064:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed declaration c2x_2.42a/fdf_read.c:1064:9: note: Shadow variable head c2x_2.42a/fdf_read.c:1064:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:1064:9: note: Shadow local variable head c2x_2.42a/fdf_read.c:1148:34: style: Argument 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:1148:34: note: Shadow argument 2.20.0 c2x_2.42a/fdf_read.c:688:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed declaration c2x_2.42a/fdf_read.c:688:9: note: Shadow variable head c2x_2.42a/fdf_read.c:688:9: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:688:9: note: Shadow local variable head c2x_2.42a/fdf_read.c:803:59: style: Argument 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:803:59: note: Shadow argument 2.20.0 c2x_2.42a/fdf_read.c:857:12: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed declaration c2x_2.42a/fdf_read.c:857:12: note: Shadow variable head c2x_2.42a/fdf_read.c:857:12: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:857:12: note: Shadow local variable 2.20.0 c2x_2.42a/fdf_read.c:899:12: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed declaration c2x_2.42a/fdf_read.c:899:12: note: Shadow variable head c2x_2.42a/fdf_read.c:899:12: style: Local variable 'ptr' shadows outer variable [shadowVariable] c2x_2.42a/fdf_read.c:71:14: note: Shadowed variable c2x_2.42a/fdf_read.c:899:12: note: Shadow local variable head c2x_2.42a/fdf_write.c:284:49: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] head c2x_2.42a/gcoeff_write.c:27:23: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.20.0 c2x_2.42a/gcoeff_write.c:33:9: style: Variable 'order' can be declared as pointer to const [constVariablePointer] head c2x_2.42a/grad.c:390:45: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] head c2x_2.42a/ksym.c:1078:39: style: Argument 'flags' shadows outer variable [shadowVariable] c2x_2.42a/c2xsf.h:414:18: note: Shadowed variable c2x_2.42a/ksym.c:1078:39: note: Shadow argument head c2x_2.42a/ksym.c:212:27: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] head c2x_2.42a/ksym.c:406:60: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] head c2x_2.42a/line_write.c:647:38: style: Parameter 'gptr' can be declared as pointer to const [constParameterPointer] head c2x_2.42a/line_write.c:786:75: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.20.0 c2x_2.42a/npy_read.c:20:14: style: Variable 'cptr' can be declared as pointer to const [constVariablePointer] 2.20.0 c2x_2.42a/parse.c:386:4: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] head c2x_2.42a/potential.c:291:35: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] head c2x_2.42a/primitive.c:338:30: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] 2.20.0 c2x_2.42a/qe_read.c:506:4: error: Common realloc mistake: 'p2' nulled but not freed upon failure [memleakOnRealloc] 2.20.0 c2x_2.42a/super.c:85:12: style: Local variable 'vtmp' shadows outer variable [shadowVariable] c2x_2.42a/super.c:42:34: note: Shadowed declaration c2x_2.42a/super.c:85:12: note: Shadow variable head c2x_2.42a/super.c:85:12: style: Local variable 'vtmp' shadows outer variable [shadowVariable] c2x_2.42a/super.c:42:34: note: Shadowed variable c2x_2.42a/super.c:85:12: note: Shadow local variable head c2x_2.42a/xplor_write.c:81:72: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] head c2x_2.42a/zones.c:88:32: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] DONE