2024-04-22 07:38 ftp://ftp.de.debian.org/debian/pool/main/s/sprng/sprng_2.0a.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-20-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 289 289 elapsed-time: 1.0 1.0 head-timing-info: old-timing-info: head results: sprng2.0/EXAMPLES/2streams_mpi.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/2streams_mpi.c:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/checkpoint-simple.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/checkpoint-simple.c:25:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PACKED_LENGTH [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/checkpoint.c:21:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/convert.c:25:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/convert.c:39:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPRNG_DEFAULT [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/checkpoint.c:26:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PACKED_LENGTH [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/convert.c:27:7: style: Unused variable: seed [unusedVariable] sprng2.0/EXAMPLES/displaybytes.c:4:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/displaybytes.c:8:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/checkpoint-simple.c:37:3: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] sprng2.0/EXAMPLES/checkpoint-simple.c:39:3: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] sprng2.0/EXAMPLES/checkpoint.c:46:3: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] sprng2.0/EXAMPLES/checkpoint.c:48:3: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] sprng2.0/EXAMPLES/fsprng-simple_mpi.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/fsprng_mpi.c:21:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/checkpoint.c:29:22: style: Variable 'rng_type_ary' is assigned a value that is never used. [unreadVariable] sprng2.0/EXAMPLES/checkpoint.c:27:7: style: Unused variable: j [unusedVariable] sprng2.0/EXAMPLES/fsprng-simple_mpi.c:28:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/fsprng_mpi.c:31:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/invalid_ID.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/invalid_ID.c:39:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPRNG_DEFAULT [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/message-simple_mpi.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/message-simple_mpi.c:31:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/message_mpi.c:22:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/myrandom.c:6:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/message_mpi.c:34:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/pi-simple.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/pi-simple.c:74:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PACKED_LENGTH [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/pi-simple_mpi.c:26:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/pi-simple.c:126:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/pi-simple_mpi.c:36:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/pi-simple_mpi.c:106:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PACKED_LENGTH [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/pi-simple_mpi.c:187:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PACKED_LENGTH [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/seed-simple.c:14:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/seed-simple.c:29:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPRNG_DEFAULT [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/pi-simple.c:80:3: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] sprng2.0/EXAMPLES/pi-simple.c:116:7: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] sprng2.0/EXAMPLES/seed-simple_mpi.c:15:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/seed-simple_mpi.c:26:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/seed.c:14:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/seed.c:39:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPRNG_DEFAULT [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/seed_mpi.c:18:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/seed_mpi.c:28:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/seed.c:18:7: style: Unused variable: j [unusedVariable] sprng2.0/EXAMPLES/simple-simple.c:15:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/spawn.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/spawn.c:34:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPRNG_DEFAULT [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/sprng-simple.c:16:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/sprng-simple.c:24:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_RNG_TYPE [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/sprng-simple_mpi.C:19:1: error: syntax error [syntaxError] sprng2.0/EXAMPLES/spawn.c:51:12: style: Variable 'nspawned' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/EXAMPLES/spawn.c:50:12: note: nspawned is assigned sprng2.0/EXAMPLES/spawn.c:51:12: note: nspawned is overwritten sprng2.0/EXAMPLES/spawn.c:23:10: style: Unused variable: irn [unusedVariable] sprng2.0/EXAMPLES/sprng-simple.c:18:7: style: Unused variable: seed [unusedVariable] sprng2.0/EXAMPLES/sprng-simple_mpi.c:19:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/sprng.C:16:1: error: syntax error [syntaxError] sprng2.0/EXAMPLES/sprng-simple_mpi.c:28:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/EXAMPLES/sprng.c:22:0: error: Syntax Error: AST broken, binary operator '=' doesn't have two operands. [internalAstError] sprng2.0/EXAMPLES/sprng_mpi.c:20:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/sprng_mpi.c:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPI_COMM_WORLD [valueFlowBailoutIncompleteVar] sprng2.0/SRC/check_gen.c:437:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/EXAMPLES/pi-simple_mpi.c:118:5: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] sprng2.0/EXAMPLES/pi-simple_mpi.c:183:7: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] sprng2.0/EXAMPLES/pi-simple_mpi.c:30:11: style: Unused variable: i [unusedVariable] sprng2.0/EXAMPLES/pi-simple_mpi.c:30:14: style: Unused variable: seed [unusedVariable] sprng2.0/SRC/check_gen.c:268:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/.template.c:79:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/.template.c:230:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/.template.c:382:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/check_gen_simple.c:243:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/SRC/check_gen_ptr.c:464:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/SRC/check_gen_simple.c:171:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/check_gen_ptr.c:215:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/.template.c:114:22: style: Condition 'genptr->narrays>0' is always false [knownConditionTrueFalse] sprng2.0/SRC/.template.c:112:21: note: Assignment 'genptr->narrays=0', assigned value is 0 sprng2.0/SRC/.template.c:114:22: note: Condition 'genptr->narrays>0' is always false sprng2.0/SRC/.template.c:366:7: style: Parameter 'packed' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/.template.c:440:17: style: Variable 'gen' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/.template.c:225:10: style: Unused variable: j [unusedVariable] sprng2.0/SRC/check_gen_simple.c:36:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/check_gen_simple.c:44:8: style: Variable 'gen' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/check_gen_simple.c:162:8: style: Variable 'gen1' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/check_gen_simple.c:162:17: style: Unused variable: size [unusedVariable] sprng2.0/SRC/check_gen_simple.c:249:7: style: Unused variable: temp [unusedVariable] sprng2.0/SRC/check_gen_simple.c:249:13: style: Unused variable: myid [unusedVariable] sprng2.0/SRC/checkid.c:45:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/checkid.c:83:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/checkid.c:96:18: style: Unused variable: next [unusedVariable] sprng2.0/SRC/cmrg/cmrg.c:155:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/cmrg/cmrg.c:426:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/cputime.c:40:11: error: There is an unknown macro here somewhere. Configuration is required. If FORTRAN_CALLABLE is a macro then please configure it. [unknownMacro] sprng2.0/SRC/cmrg/cmrg.c:593:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/drand.c:7:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/SRC/drand.c:28:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/drand.c:28:3: warning: fprintf format string requires 0 parameters but 1 is given. [wrongPrintfScanfArgNum] sprng2.0/SRC/fwrap_mpi.c:32:5: error: There is an unknown macro here somewhere. Configuration is required. If FORTRAN_CALLABLE is a macro then please configure it. [unknownMacro] sprng2.0/SRC/check_gen.c:211:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen.c:210:7: note: nsp is assigned sprng2.0/SRC/check_gen.c:211:7: note: nsp is overwritten sprng2.0/SRC/check_gen.c:212:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen.c:211:7: note: nsp is assigned sprng2.0/SRC/check_gen.c:212:7: note: nsp is overwritten sprng2.0/SRC/check_gen.c:219:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen.c:218:7: note: nsp is assigned sprng2.0/SRC/check_gen.c:219:7: note: nsp is overwritten sprng2.0/SRC/check_gen.c:220:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen.c:219:7: note: nsp is assigned sprng2.0/SRC/check_gen.c:220:7: note: nsp is overwritten sprng2.0/SRC/check_gen.c:221:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen.c:220:7: note: nsp is assigned sprng2.0/SRC/check_gen.c:221:7: note: nsp is overwritten sprng2.0/SRC/check_gen.c:222:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen.c:221:7: note: nsp is assigned sprng2.0/SRC/check_gen.c:222:7: note: nsp is overwritten sprng2.0/SRC/check_gen.c:223:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen.c:222:7: note: nsp is assigned sprng2.0/SRC/check_gen.c:223:7: note: nsp is overwritten sprng2.0/SRC/check_gen.c:36:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/check_gen.c:255:18: style: Unused variable: size [unusedVariable] sprng2.0/SRC/check_gen.c:445:7: style: Unused variable: temp [unusedVariable] sprng2.0/SRC/check_gen.c:445:13: style: Unused variable: myid [unusedVariable] sprng2.0/SRC/lcg/lcg.c:219:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lcg/lcg.c:265:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lcg/lcg.c:475:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPRIMEOFFSET [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lcg/lcg.c:602:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lcg/lcg.c:825:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lcg64/lcg64.c:148:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lcg64/lcg64.c:380:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lcg64/lcg64.c:537:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/cmrg/cmrg.c:191:22: style: Condition 'genptr->narrays>0' is always false [knownConditionTrueFalse] sprng2.0/SRC/cmrg/cmrg.c:189:21: note: Assignment 'genptr->narrays=0', assigned value is 0 sprng2.0/SRC/cmrg/cmrg.c:191:22: note: Condition 'genptr->narrays>0' is always false sprng2.0/SRC/cmrg/cmrg.c:662:17: style: Variable 'gen' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/cmrg/cmrg.c:236:13: style: Variable 'tempdbl' is assigned a value that is never used. [unreadVariable] sprng2.0/SRC/cmrg/cmrg.c:421:10: style: Unused variable: j [unusedVariable] sprng2.0/SRC/cmrg/cmrg.c:517:13: style: Unused variable: i [unusedVariable] sprng2.0/SRC/cmrg/cmrg.c:518:16: style: Unused variable: temp [unusedVariable] sprng2.0/SRC/cmrg/cmrg.c:518:22: style: Unused variable: m [unusedVariable] sprng2.0/SRC/cmrg/cmrg.c:582:16: style: Unused variable: i [unusedVariable] sprng2.0/SRC/cmrg/cmrg.c:582:19: style: Unused variable: m [unusedVariable] sprng2.0/SRC/lcg/lcg.c:213:7: style: Parameter 'level' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lcg/lcg.c:213:14: style: Parameter 'routine' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lcg/lcg.c:213:23: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lcg/lcg.c:230:7: style: Parameter 's1' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lcg/lcg.c:230:12: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lcg/lcg.c:530:6: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lcg/lcg.c:530:10: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lcg/lcg.c:559:6: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lcg/lcg.c:559:10: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lcg/lcg.c:883:17: style: Variable 'gen' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/lcg/lcg.c:386:13: style: Variable 'temp[0]' is assigned a value that is never used. [unreadVariable] sprng2.0/SRC/lcg/lcg.c:384:22: style: Unused variable: ltemp [unusedVariable] sprng2.0/SRC/lcg/lcg.c:743:22: style: Unused variable: m [unusedVariable] sprng2.0/SRC/lcg/lcg.c:743:28: style: Unused variable: i [unusedVariable] sprng2.0/SRC/lcg/lcg.c:815:16: style: Unused variable: m [unusedVariable] sprng2.0/SRC/lcg/lcg.c:815:22: style: Unused variable: m2 [unusedVariable] sprng2.0/SRC/lcg/lcg.c:815:29: style: Unused variable: i [unusedVariable] sprng2.0/SRC/makeseed.c:15:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] sprng2.0/SRC/lcg64/lcg64.c:184:22: style: Condition 'genptr->narrays>0' is always false [knownConditionTrueFalse] sprng2.0/SRC/lcg64/lcg64.c:182:21: note: Assignment 'genptr->narrays=0', assigned value is 0 sprng2.0/SRC/lcg64/lcg64.c:184:22: note: Condition 'genptr->narrays>0' is always false sprng2.0/SRC/makeseed.c:10:14: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/lcg64/lcg64.c:596:17: style: Variable 'gen' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/lcg64/lcg64.c:228:13: style: Variable 'tempdbl' is assigned a value that is never used. [unreadVariable] sprng2.0/SRC/lcg64/lcg64.c:375:10: style: Unused variable: j [unusedVariable] sprng2.0/SRC/lcg64/lcg64.c:471:13: style: Unused variable: i [unusedVariable] sprng2.0/SRC/lcg64/lcg64.c:472:16: style: Unused variable: temp [unusedVariable] sprng2.0/SRC/lcg64/lcg64.c:472:22: style: Unused variable: m [unusedVariable] sprng2.0/SRC/lcg64/lcg64.c:526:16: style: Unused variable: i [unusedVariable] sprng2.0/SRC/lcg64/lcg64.c:526:19: style: Unused variable: m [unusedVariable] sprng2.0/SRC/memory.c:22:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/memory.c:10:7: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/pmlcg/longlong.h:155:0: error: No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported. [preprocessorErrorDirective] sprng2.0/SRC/check_gen_ptr.c:165:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen_ptr.c:164:7: note: nsp is assigned sprng2.0/SRC/check_gen_ptr.c:165:7: note: nsp is overwritten sprng2.0/SRC/check_gen_ptr.c:166:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen_ptr.c:165:7: note: nsp is assigned sprng2.0/SRC/check_gen_ptr.c:166:7: note: nsp is overwritten sprng2.0/SRC/check_gen_ptr.c:173:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen_ptr.c:172:7: note: nsp is assigned sprng2.0/SRC/check_gen_ptr.c:173:7: note: nsp is overwritten sprng2.0/SRC/check_gen_ptr.c:174:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen_ptr.c:173:7: note: nsp is assigned sprng2.0/SRC/check_gen_ptr.c:174:7: note: nsp is overwritten sprng2.0/SRC/check_gen_ptr.c:175:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen_ptr.c:174:7: note: nsp is assigned sprng2.0/SRC/check_gen_ptr.c:175:7: note: nsp is overwritten sprng2.0/SRC/check_gen_ptr.c:176:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen_ptr.c:175:7: note: nsp is assigned sprng2.0/SRC/check_gen_ptr.c:176:7: note: nsp is overwritten sprng2.0/SRC/check_gen_ptr.c:177:7: style: Variable 'nsp' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/check_gen_ptr.c:176:7: note: nsp is assigned sprng2.0/SRC/check_gen_ptr.c:177:7: note: nsp is overwritten sprng2.0/SRC/check_gen_ptr.c:37:7: style: Parameter 's' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/check_gen_ptr.c:206:18: style: Unused variable: size [unusedVariable] sprng2.0/SRC/check_gen_ptr.c:472:7: style: Unused variable: temp [unusedVariable] sprng2.0/SRC/check_gen_ptr.c:472:13: style: Unused variable: myid [unusedVariable] sprng2.0/SRC/primes_32.c:59:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lfg/lfg.c:181:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lfg/lfg.c:925:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/mlfg/mlfg.c:235:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/mlfg/mlfg.c:451:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/mlfg/mlfg.c:606:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/mlfg/mlfg.c:741:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/primes_32.c:95:13: style: Variable 'largest' is reassigned a value before the old one has been used. [redundantAssignment] sprng2.0/SRC/primes_32.c:83:13: note: largest is assigned sprng2.0/SRC/primes_32.c:95:13: note: largest is overwritten sprng2.0/SRC/simple.c:139:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/fwrap_.h:57:5: error: There is an unknown macro here somewhere. Configuration is required. If FORTRAN_CALLABLE is a macro then please configure it. [unknownMacro] sprng2.0/SRC/store.c:17:36: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/store.c:28:30: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/store.c:110:34: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/store.c:121:29: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/timing.c:14:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/SRC/timing.c:63:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/timing.c:63:3: warning: fprintf format string requires 0 parameters but 1 is given. [wrongPrintfScanfArgNum] sprng2.0/TESTS/chisquare.c:166:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/TESTS/chisquare.c:305:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/primes_64.c:60:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/TESTS/chisquare.c:389:7: style: Local variable 'n' shadows outer variable [shadowVariable] sprng2.0/TESTS/chisquare.c:62:6: note: Shadowed declaration sprng2.0/TESTS/chisquare.c:389:7: note: Shadow variable sprng2.0/TESTS/chisquare.c:275:7: style: Parameter 'actual' can be declared as pointer to const [constParameterPointer] sprng2.0/TESTS/chisquare.c:276:9: style: Parameter 'probability' can be declared as pointer to const [constParameterPointer] sprng2.0/TESTS/chisquare.c:475:17: style: Variable 'cof' can be declared as const array [constVariable] sprng2.0/TESTS/chisquare.c:630:22: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] sprng2.0/TESTS/chisquare.c:649:14: warning: Uninitialized variable: error [uninitvar] sprng2.0/TESTS/chisquare.c:642:13: note: Assuming condition is false sprng2.0/TESTS/chisquare.c:649:14: note: Uninitialized variable: error sprng2.0/TESTS/chisquare.c:645:5: error: Uninitialized variable: error [legacyUninitvar] sprng2.0/TESTS/chisquare.c:282:7: style: Unused variable: ch [unusedVariable] sprng2.0/TESTS/chisquare.c:640:8: style: Variable 'diff' is assigned a value that is never used. [unreadVariable] sprng2.0/TESTS/collisions.c:39:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/TESTS/collisions.c:219:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/SRC/lfg/lfg.c:950:17: error: Array 'lfg_valid[11]' accessed at index 11, which is out of bounds. [arrayIndexOutOfBounds] sprng2.0/SRC/lfg/lfg.c:936:3: note: After for loop, i has value 11 sprng2.0/SRC/lfg/lfg.c:943:12: note: Assuming condition is false sprng2.0/SRC/lfg/lfg.c:949:9: note: param is assigned 'i' here. sprng2.0/SRC/lfg/lfg.c:950:17: note: Array index out of bounds sprng2.0/SRC/lfg/lfg.c:951:12: error: Array 'lfg_valid[11]' accessed at index 11, which is out of bounds. [arrayIndexOutOfBounds] sprng2.0/SRC/lfg/lfg.c:936:3: note: After for loop, i has value 11 sprng2.0/SRC/lfg/lfg.c:943:12: note: Assuming condition is false sprng2.0/SRC/lfg/lfg.c:949:9: note: param is assigned 'i' here. sprng2.0/SRC/lfg/lfg.c:951:12: note: Array index out of bounds sprng2.0/SRC/lfg/lfg.c:360:6: style: Local variable 'lval' shadows outer variable [shadowVariable] sprng2.0/SRC/lfg/lfg.c:165:13: note: Shadowed declaration sprng2.0/SRC/lfg/lfg.c:360:6: note: Shadow variable sprng2.0/SRC/lfg/lfg.c:360:12: style: Local variable 'kval' shadows outer variable [shadowVariable] sprng2.0/SRC/lfg/lfg.c:165:20: note: Shadowed declaration sprng2.0/SRC/lfg/lfg.c:360:12: note: Shadow variable sprng2.0/SRC/lfg/lfg.c:395:7: style: Local variable 'lval' shadows outer variable [shadowVariable] sprng2.0/SRC/lfg/lfg.c:165:13: note: Shadowed declaration sprng2.0/SRC/lfg/lfg.c:395:7: note: Shadow variable sprng2.0/SRC/lfg/lfg.c:395:13: style: Local variable 'kval' shadows outer variable [shadowVariable] sprng2.0/SRC/lfg/lfg.c:165:20: note: Shadowed declaration sprng2.0/SRC/lfg/lfg.c:395:13: note: Shadow variable sprng2.0/SRC/lfg/lfg.c:430:7: style: Local variable 'lval' shadows outer variable [shadowVariable] sprng2.0/SRC/lfg/lfg.c:165:13: note: Shadowed declaration sprng2.0/SRC/lfg/lfg.c:430:7: note: Shadow variable sprng2.0/SRC/lfg/lfg.c:430:13: style: Local variable 'kval' shadows outer variable [shadowVariable] sprng2.0/SRC/lfg/lfg.c:165:20: note: Shadowed declaration sprng2.0/SRC/lfg/lfg.c:430:13: note: Shadow variable sprng2.0/SRC/lfg/lfg.c:799:13: style: Local variable 'lval' shadows outer variable [shadowVariable] sprng2.0/SRC/lfg/lfg.c:165:13: note: Shadowed declaration sprng2.0/SRC/lfg/lfg.c:799:13: note: Shadow variable sprng2.0/SRC/lfg/lfg.c:914:37: style: Local variable 'param' shadows outer variable [shadowVariable] sprng2.0/SRC/lfg/lfg.c:576:21: note: Shadowed declaration sprng2.0/SRC/lfg/lfg.c:914:37: note: Shadow variable sprng2.0/SRC/lfg/lfg.c:916:12: style: Local variable 'seed' shadows outer variable [shadowVariable] sprng2.0/SRC/lfg/lfg.c:576:27: note: Shadowed declaration sprng2.0/SRC/lfg/lfg.c:916:12: note: Shadow variable sprng2.0/SRC/lfg/lfg.c:178:7: style: Parameter 'level' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lfg/lfg.c:178:14: style: Parameter 'routine' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lfg/lfg.c:178:23: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lfg/lfg.c:274:11: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lfg/lfg.c:326:14: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lfg/lfg.c:749:6: style: Parameter 'gen' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/lfg/lfg.c:773:13: style: Variable 'pp' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/lfg/lfg.c:800:13: style: Variable 'pp' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/lfg/lfg.c:1032:17: style: Variable 'gen' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/lfg/lfg.c:254:36: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] sprng2.0/SRC/lfg/lfg.c:252:14: note: Assuming that condition 'i<32' is not redundant sprng2.0/SRC/lfg/lfg.c:254:36: note: Shift sprng2.0/SRC/lfg/lfg.c:254:36: error: Signed integer overflow for expression 'mask<31' is not redundant sprng2.0/TESTS/collisions.c:55:9: note: Shift sprng2.0/TESTS/collisions.c:159:5: 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] sprng2.0/TESTS/collisions.c:255:5: 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] sprng2.0/TESTS/collisions.c:35:20: style: Unused variable: size [unusedVariable] sprng2.0/TESTS/collisions.c:255:5: style: Variable 'm' is assigned a value that is never used. [unreadVariable] sprng2.0/TESTS/equidist.c:84:8: style: Unused variable: temp [unusedVariable] sprng2.0/TESTS/fft.c:71:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/TESTS/init_tests.c:77:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/TESTS/maxt.c:24:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/TESTS/maxt.c:35:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/TESTS/init_tests.c:112:7: style: Parameter 'argv' can be declared as const array [constParameter] sprng2.0/TESTS/init_tests.c:149:10: 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] sprng2.0/TESTS/init_tests.c:119:26: style: Unused variable: j [unusedVariable] sprng2.0/TESTS/init_tests.c:121:8: style: Unused variable: k [unusedVariable] sprng2.0/TESTS/init_tests.c:176:12: style: Variable 'temp' is assigned a value that is never used. [unreadVariable] sprng2.0/TESTS/mytest.c:6:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/TESTS/metropolis.c:126:18: style: Variable 'average_energy' is assigned a value that is never used. [unreadVariable] sprng2.0/TESTS/metropolis.c:134:20: style: Variable 'average_energy' is assigned a value that is never used. [unreadVariable] sprng2.0/TESTS/poker.c:25:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/TESTS/poker.c:36:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/TESTS/random_walk.c:24:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] sprng2.0/TESTS/random_walk.c:36:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sprng2.0/TESTS/poker.c:142:15: style: Unused variable: temp2 [unusedVariable] sprng2.0/TESTS/random_walk.c:85:16: style: Unused variable: j [unusedVariable] sprng2.0/TESTS/fft.c:50:28: style: Parameter 'argv' can be declared as const array [constParameter] sprng2.0/TESTS/fft.c:53:56: style: Variable 'myid' is assigned a value that is never used. [unreadVariable] sprng2.0/TESTS/fft.c:53:66: style: Variable 'nprocs' is assigned a value that is never used. [unreadVariable] sprng2.0/TESTS/fft.c:53:44: style: Unused variable: stream [unusedVariable] sprng2.0/SRC/mlfg/int64.h:111:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] sprng2.0/SRC/mlfg/int64.h:133:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] sprng2.0/SRC/mlfg/mlfg.c:179:30: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/mlfg/mlfg.c:226:43: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/mlfg/mlfg.c:819:17: style: Variable 'gen' can be declared as pointer to const [constVariablePointer] sprng2.0/SRC/mlfg/int64.h:117:38: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] sprng2.0/SRC/mlfg/mlfg.c:165:36: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] sprng2.0/SRC/mlfg/mlfg.c:163:14: note: Assuming that condition 'i<32' is not redundant sprng2.0/SRC/mlfg/mlfg.c:165:36: note: Shift sprng2.0/SRC/mlfg/mlfg.c:165:36: error: Signed integer overflow for expression 'mask<