2025-05-10 07:19 ftp://ftp.de.debian.org/debian/pool/main/e/espeak/espeak_1.48.15+dfsg.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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: b3c7f00 (2025-05-09 17:59:20 +0200) count: 743 734 elapsed-time: 9.3 8.8 head-timing-info: old-timing-info: head results: espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:156:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:222:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:367:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:404:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:451:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:247:9: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:346:28: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:344:35: note: Assuming allocation function fails espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:344:19: note: Assignment 'buf=(char*)malloc(length)', assigned value is 0 espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:346:28: note: Null pointer dereference espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:347:21: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:344:35: note: Assuming allocation function fails espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:344:19: note: Assignment 'buf=(char*)malloc(length)', assigned value is 0 espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:347:21: note: Null pointer dereference espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:387:13: style: Redundant assignment of 'val' to itself. [selfAssignment] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:435:28: style: Redundant assignment of 'table.mnemonic' to itself. [selfAssignment] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:436:27: style: Redundant assignment of 'table.phflags' to itself. [selfAssignment] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:437:27: style: Redundant assignment of 'table.program' to itself. [selfAssignment] espeak-1.48.15+dfsg/platforms/big_endian/espeak-phoneme-data.c:98:19: style: struct member 'SPECT_SEQ::sqflags' is never used. [unusedStructMember] espeak-1.48.15+dfsg/src/compiledict.cpp:1823:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/compiledict.cpp:1947:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/espeak.cpp:268:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/espeak.cpp:294:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/espeak.cpp:407:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/espeak.cpp:349:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] espeak-1.48.15+dfsg/src/espeak.cpp:843:6: error: Common realloc mistake: 'p_text' nulled but not freed upon failure [memleakOnRealloc] espeak-1.48.15+dfsg/src/espeak.cpp:826:16: warning: If memory allocation fails, then there is a possible null pointer dereference: p_text [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/espeak.cpp:821:26: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/espeak.cpp:821:12: note: Assignment 'p_text=(char*)malloc(max)', assigned value is 0 espeak-1.48.15+dfsg/src/espeak.cpp:826:16: note: Null pointer dereference espeak-1.48.15+dfsg/src/espeak.cpp:821:12: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/espeak.cpp:843:15: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/espeak.cpp:856:16: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/espeak.cpp:138:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/espeak.cpp:168:6: style: The scope of the variable 'count' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/espeak.cpp:314:7: style: The scope of the variable 'fname' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/espeak.cpp:434:6: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/espeak.cpp:178:14: style: Variable 'genders' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/espeak.cpp:251:23: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/espeak.cpp:254:23: style: Variable 'wave_hdr' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/espeak.cpp:312:33: style: Parameter 'wav' can be declared as pointer to const. However it seems that 'SynthCallback' is a callback function, if 'wav' is declared with const you might also need to cast function pointer(s). [constParameterCallback] espeak-1.48.15+dfsg/src/espeak.cpp:720:27: note: You might need to cast the function pointer here espeak-1.48.15+dfsg/src/espeak.cpp:312:33: note: Parameter 'wav' can be declared as pointer to const espeak-1.48.15+dfsg/src/espeak.cpp:399:23: style: Variable 'long_options' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/espeak.cpp:431:8: style: Variable 'data_path' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:158:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/dictionary.cpp:269:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/compiledict.cpp:1968:3: error: Resource leak: f_in [resourceLeak] espeak-1.48.15+dfsg/src/compiledict.cpp:903:10: warning: Either the condition 'f_log!=NULL' is redundant or there is possible null pointer dereference: f_log. [nullPointerRedundantCheck] espeak-1.48.15+dfsg/src/compiledict.cpp:889:13: note: Assuming that condition 'f_log!=NULL' is not redundant espeak-1.48.15+dfsg/src/compiledict.cpp:903:10: note: Null pointer dereference espeak-1.48.15+dfsg/src/compiledict.cpp:1387:9: warning: If memory allocation fails, then there is a possible null pointer dereference: prule [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/compiledict.cpp:1386:24: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/compiledict.cpp:1386:10: note: Assignment 'prule=(char*)malloc(len)', assigned value is 0 espeak-1.48.15+dfsg/src/compiledict.cpp:1387:9: note: Null pointer dereference espeak-1.48.15+dfsg/src/compiledict.cpp:886:7: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/compiledict.cpp:1386:10: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/compiledict.cpp:1546:8: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/compiledict.cpp:1546:45: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/compiledict.cpp:1708:12: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/compiledict.cpp:1762:9: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/compiledict.cpp:1773:10: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/compiledict.cpp:1868:8: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/compiledict.cpp:1868:51: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/compiledict.cpp:709:8: style: Variable 'p' is reassigned a value before the old one has been used. [redundantAssignment] espeak-1.48.15+dfsg/src/compiledict.cpp:708:5: note: p is assigned espeak-1.48.15+dfsg/src/compiledict.cpp:709:8: note: p is overwritten espeak-1.48.15+dfsg/src/compiledict.cpp:1237:12: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] espeak-1.48.15+dfsg/src/compiledict.cpp:1235:5: note: c is assigned espeak-1.48.15+dfsg/src/compiledict.cpp:1237:12: note: c is overwritten espeak-1.48.15+dfsg/src/compiledict.cpp:1341:7: style: Variable 'ix' is reassigned a value before the old one has been used. [redundantAssignment] espeak-1.48.15+dfsg/src/compiledict.cpp:1337:6: note: ix is assigned espeak-1.48.15+dfsg/src/compiledict.cpp:1341:7: note: ix is overwritten espeak-1.48.15+dfsg/src/compiledict.cpp:239:16: style: The scope of the variable 'rb' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:433:6: style: The scope of the variable 'all_upper_case' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:438:7: style: The scope of the variable 'bad_phoneme_str' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:796:8: style: The scope of the variable 'p' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:853:7: style: The scope of the variable 'length' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:943:7: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:947:7: style: The scope of the variable 'literal' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:1216:6: style: The scope of the variable 'start' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:1222:7: style: The scope of the variable 'bad_phoneme_str' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:1528:6: style: The scope of the variable 'len1' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:1529:6: style: The scope of the variable 'len2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:1532:8: style: The scope of the variable 'p2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:1598:6: style: The scope of the variable 'length' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:1682:6: style: The scope of the variable 'different' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/compiledict.cpp:1921:84: style:inconclusive: Function 'CompileDictionary' argument 4 names different: declaration 'err_name' definition 'fname_err'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/synthesize.h:536:84: note: Function 'CompileDictionary' argument 4 names different: declaration 'err_name' definition 'fname_err'. espeak-1.48.15+dfsg/src/compiledict.cpp:1921:84: note: Function 'CompileDictionary' argument 4 names different: declaration 'err_name' definition 'fname_err'. espeak-1.48.15+dfsg/src/compiledict.cpp:247:7: style: Local variable 'linenum' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/compiledict.cpp:42:12: note: Shadowed declaration espeak-1.48.15+dfsg/src/compiledict.cpp:247:7: note: Shadow variable espeak-1.48.15+dfsg/src/compiledict.cpp:1836:10: style: Local variable 'p' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/compiledict.cpp:1675:17: note: Shadowed declaration espeak-1.48.15+dfsg/src/compiledict.cpp:1836:10: note: Shadow variable espeak-1.48.15+dfsg/src/compiledict.cpp:201:43: style: Parameter 'flags' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/compiledict.cpp:258:14: style: Variable 'symbols' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/compiledict.cpp:263:14: style: Variable 'symbols_lg' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/compiledict.cpp:426:8: style: Variable 'multiple_string' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/compiledict.cpp:427:8: style: Variable 'multiple_string_end' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/compiledict.cpp:435:8: style: Variable 'mnemptr' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/compiledict.cpp:938:13: style: Variable 'next_state' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/compiledict.cpp:950:12: style: Variable 'mr' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/compiledict.cpp:1207:33: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/compiledict.cpp:1405:42: style: Parameter 'a' can be declared as pointer to const. However it seems that 'rgroup_sorter' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] espeak-1.48.15+dfsg/src/compiledict.cpp:1868:95: note: You might need to cast the function pointer here espeak-1.48.15+dfsg/src/compiledict.cpp:1405:42: note: Parameter 'a' can be declared as pointer to const espeak-1.48.15+dfsg/src/compiledict.cpp:1405:53: style: Parameter 'b' can be declared as pointer to const. However it seems that 'rgroup_sorter' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] espeak-1.48.15+dfsg/src/compiledict.cpp:1868:95: note: You might need to cast the function pointer here espeak-1.48.15+dfsg/src/compiledict.cpp:1405:53: note: Parameter 'b' can be declared as pointer to const espeak-1.48.15+dfsg/src/compiledict.cpp:1525:77: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/compiledict.cpp:1532:8: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/compiledict.cpp:1594:8: style: Variable 'p_start' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/compiledict.cpp:1672:61: style: Parameter 'fname_temp' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/compiledict.cpp:804:15: warning: Size of pointer 'p' used instead of size of its data. [pointerSize] espeak-1.48.15+dfsg/src/compiledict.cpp:843:14: warning: Size of pointer 'p' used instead of size of its data. [pointerSize] espeak-1.48.15+dfsg/src/compiledict.cpp:886:3: warning: Size of pointer 'p' used instead of size of its data. [pointerSize] espeak-1.48.15+dfsg/src/compiledict.cpp:897:10: warning: Size of pointer 'p' used instead of size of its data. [pointerSize] espeak-1.48.15+dfsg/src/compiledict.cpp:219:79: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] espeak-1.48.15+dfsg/src/compiledict.cpp:217:14: note: Assuming that condition 'ix<64' is not redundant espeak-1.48.15+dfsg/src/compiledict.cpp:219:79: note: Shift espeak-1.48.15+dfsg/src/compiledict.cpp:166:10: style: Variable 'c2' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/klatt.cpp:1261:13: style: The if condition is the same as the previous if condition [duplicateCondition] espeak-1.48.15+dfsg/src/klatt.cpp:1207:13: note: First condition espeak-1.48.15+dfsg/src/klatt.cpp:1261:13: note: Second condition espeak-1.48.15+dfsg/src/klatt.cpp:1220:12: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/klatt.cpp:233:6: style: The scope of the variable 'itemp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:234:9: style: The scope of the variable 'ftemp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:236:9: style: The scope of the variable 'diff_value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:237:6: style: The scope of the variable 'current_value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:238:6: style: The scope of the variable 'next_value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:239:9: style: The scope of the variable 'temp_diff' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:290:9: style: The scope of the variable 'temp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:291:6: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:292:9: style: The scope of the variable 'outbypas' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:293:9: style: The scope of the variable 'out' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:295:9: style: The scope of the variable 'frics' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:296:9: style: The scope of the variable 'glotout' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:297:9: style: The scope of the variable 'aspiration' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:299:9: style: The scope of the variable 'par_glotout' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:304:16: style: The scope of the variable 'sourc' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:495:16: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:496:8: style: The scope of the variable 'sample' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:715:9: style: The scope of the variable 'lgtemp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:771:7: style: The scope of the variable 'temp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:772:9: style: The scope of the variable 'temp1' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:773:14: style: The scope of the variable 'skew' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:1067:6: style: The scope of the variable 'x' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:1069:6: style: The scope of the variable 'fade' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:1187:6: style: The scope of the variable 'qix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:1188:6: style: The scope of the variable 'cmd' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:1189:11: style: The scope of the variable 'fr3' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/klatt.cpp:541:22: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] espeak-1.48.15+dfsg/src/klatt.cpp:301:16: style: Local variable 'voice' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/voice.h:75:17: note: Shadowed declaration espeak-1.48.15+dfsg/src/klatt.cpp:301:16: note: Shadow variable espeak-1.48.15+dfsg/src/klatt.cpp:240:9: style: Variable 'samples' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/klatt.cpp:607:16: style: Variable 'amp_par_factor' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/klatt.cpp:689:16: style: Variable 'doublet' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/klatt.cpp:774:15: style: Variable 'B0' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/klatt.cpp:1030:15: style: Variable 'amptable' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/klatt.cpp:1189:11: style: Variable 'fr3' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/klatt.cpp:1361:15: style: Variable 'formant_hz' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/klatt.cpp:1362:15: style: Variable 'bandwidth' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/klatt.cpp:1363:15: style: Variable 'parallel_amp' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/klatt.cpp:1364:15: style: Variable 'parallel_bw' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/klatt.cpp:815:20: 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] espeak-1.48.15+dfsg/src/klatt.cpp:498:7: style: Variable 'z2' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/intonation.cpp:957:22: style: Condition 'p->stresslevel>=4' is always true [knownConditionTrueFalse] espeak-1.48.15+dfsg/src/intonation.cpp:952:46: note: Assuming that condition 'p->stresslevel>=4' is not redundant espeak-1.48.15+dfsg/src/intonation.cpp:957:22: note: Condition 'p->stresslevel>=4' is always true espeak-1.48.15+dfsg/src/intonation.cpp:332:7: style: The scope of the variable 'stress' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/intonation.cpp:403:7: style: The scope of the variable 'stress' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/intonation.cpp:464:7: style: The scope of the variable 'stress' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/intonation.cpp:466:7: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/intonation.cpp:615:7: style: The scope of the variable 'stress' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/intonation.cpp:736:7: style: The scope of the variable 'stress' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/intonation.cpp:1107:38: style:inconclusive: Function 'CalcPitches' argument 2 names different: declaration 'clause_tone' definition 'clause_type'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:781:38: note: Function 'CalcPitches' argument 2 names different: declaration 'clause_tone' definition 'clause_type'. espeak-1.48.15+dfsg/src/intonation.cpp:1107:38: note: Function 'CalcPitches' argument 2 names different: declaration 'clause_tone' definition 'clause_type'. espeak-1.48.15+dfsg/src/intonation.cpp:475:7: style: Variable 'drops' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/intonation.cpp:625:7: style: Variable 'drops' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/intonation.cpp:626:15: style: Variable 'overflow_tab' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/intonation.cpp:926:42: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/intonation.cpp:938:15: style: Variable 'prev_tph' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/intonation.cpp:939:15: style: Variable 'prevw_tph' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/intonation.cpp:1126:15: style: Variable 'ph' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/mbrowrap.cpp:75:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/mbrowrap.cpp:99:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/mbrowrap.cpp:141:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/mbrowrap.cpp:248:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/mbrowrap.cpp:292:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/mbrowrap.cpp:338:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/mbrowrap.cpp:398:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/mbrowrap.cpp:553:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/intonation.cpp:1174:19: style: Variable 'group_tone_emph' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/intonation.cpp:1180:19: style: Variable 'group_tone_emph' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/mbrowrap.cpp:351:11: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/mbrowrap.cpp:379:6: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/mbrowrap.cpp:463:19: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/mbrowrap.cpp:126:10: style: The scope of the variable 'written' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/mbrowrap.cpp:231:20: style: The scope of the variable 'p' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/mbrowrap.cpp:283:6: style: The scope of the variable 'result' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/mbrowrap.cpp:387:6: style: The scope of the variable 'result' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/mbrowrap.cpp:113:29: style: Parameter 'p1' can be declared as const array [constParameter] espeak-1.48.15+dfsg/src/mbrowrap.cpp:113:40: style: Parameter 'p2' can be declared as const array [constParameter] espeak-1.48.15+dfsg/src/mbrowrap.cpp:113:51: style: Parameter 'p3' can be declared as const array [constParameter] espeak-1.48.15+dfsg/src/mbrowrap.cpp:371:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/mbrowrap.cpp:440:10: style: Variable 'data' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/phonemelist.cpp:50:17: style: The scope of the variable 'plist2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/phonemelist.cpp:121:6: style: The scope of the variable 'voicing' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/phonemelist.cpp:127:6: style: The scope of the variable 'inserted' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/phonemelist.cpp:128:6: style: The scope of the variable 'deleted' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/phonemelist.cpp:466:18: style: The scope of the variable 'p' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/phonemelist.cpp:108:58: style:inconclusive: Function 'MakePhonemeList' argument 3 names different: declaration 'new_sentence' definition 'start_sentence'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:775:58: note: Function 'MakePhonemeList' argument 3 names different: declaration 'new_sentence' definition 'start_sentence'. espeak-1.48.15+dfsg/src/phonemelist.cpp:108:58: note: Function 'MakePhonemeList' argument 3 names different: declaration 'new_sentence' definition 'start_sentence'. espeak-1.48.15+dfsg/src/phonemelist.cpp:51:15: style: Variable 'next' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/phonemelist.cpp:413:17: style: Variable 'ph2' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/phonemelist.cpp:437:17: style: Variable 'ph2' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/phonemelist.cpp:519:16: style: Variable 'types_double' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/numbers.cpp:1359:20: style:inconclusive: Boolean expression '!found_value' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] espeak-1.48.15+dfsg/src/numbers.cpp:448:32: warning: Either the condition 'basic_letter<'a'' is redundant or the array 'non_ascii_tab[15]' is accessed at index 37, which is out of bounds. [arrayIndexOutOfBoundsCond] espeak-1.48.15+dfsg/src/numbers.cpp:447:19: note: Assuming that condition 'basic_letter<'a'' is not redundant espeak-1.48.15+dfsg/src/numbers.cpp:448:32: note: Array index out of bounds espeak-1.48.15+dfsg/src/numbers.cpp:2177:19: style: Array index 'ix' is used before limits check. [arrayIndexThenCheck] espeak-1.48.15+dfsg/src/numbers.cpp:1359:20: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] espeak-1.48.15+dfsg/src/numbers.cpp:926:15: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] espeak-1.48.15+dfsg/src/numbers.cpp:922:15: note: outer condition: ph_buf[0]==0 espeak-1.48.15+dfsg/src/numbers.cpp:926:15: note: identical inner condition: ph_buf[0]==0 espeak-1.48.15+dfsg/src/numbers.cpp:937:18: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] espeak-1.48.15+dfsg/src/numbers.cpp:922:15: note: outer condition: ph_buf[0]==0 espeak-1.48.15+dfsg/src/numbers.cpp:937:18: note: identical inner condition: ph_buf[0]==0 espeak-1.48.15+dfsg/src/numbers.cpp:1673:21: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] espeak-1.48.15+dfsg/src/numbers.cpp:1669:61: note: outer condition: ph_ordinal[0]==0 espeak-1.48.15+dfsg/src/numbers.cpp:1673:21: note: identical inner condition: ph_ordinal[0]==0 espeak-1.48.15+dfsg/src/numbers.cpp:1695:34: style: Condition '(ix=strlen(ph_tens)-1)>=0' is always true [knownConditionTrueFalse] espeak-1.48.15+dfsg/src/numbers.cpp:2246:23: style: Condition 'suppress_null==0' is always true [knownConditionTrueFalse] espeak-1.48.15+dfsg/src/numbers.cpp:2239:24: note: Assuming that condition 'suppress_null==0' is not redundant espeak-1.48.15+dfsg/src/numbers.cpp:2246:23: note: Condition 'suppress_null==0' is always true espeak-1.48.15+dfsg/src/numbers.cpp:550:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] espeak-1.48.15+dfsg/src/numbers.cpp:1056:7: style: Variable 'c' is reassigned a value before the old one has been used. [redundantAssignment] espeak-1.48.15+dfsg/src/numbers.cpp:1054:7: note: c is assigned espeak-1.48.15+dfsg/src/numbers.cpp:1056:7: note: c is overwritten espeak-1.48.15+dfsg/src/numbers.cpp:423:6: style: The scope of the variable 'accent1' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:424:6: style: The scope of the variable 'accent2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:425:6: style: The scope of the variable 'flags1' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:425:14: style: The scope of the variable 'flags2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:426:6: style: The scope of the variable 'basic_letter' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:427:6: style: The scope of the variable 'letter2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:428:7: style: The scope of the variable 'ph_letter1' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:429:7: style: The scope of the variable 'ph_letter2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:430:7: style: The scope of the variable 'ph_accent1' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:719:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:720:6: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:722:8: style: The scope of the variable 'pbuf' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:727:6: style: The scope of the variable 'language' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:730:6: style: The scope of the variable 'speak_letter_number' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:736:14: style: The scope of the variable 'pause_string' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:868:8: style: The scope of the variable 'initial' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:728:18: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/numbers.cpp:868:17: style: The scope of the variable 'code' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:917:10: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/readclause.cpp:926:7: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/readclause.cpp:976:33: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/readclause.cpp:1541:18: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/readclause.cpp:1556:14: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/numbers.cpp:1080:6: style: The scope of the variable 'nextflags' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:2371:41: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/numbers.cpp:1154:14: style: The scope of the variable 'p2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1157:6: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1339:6: style: The scope of the variable 'found' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1344:7: style: The scope of the variable 'ph_buf' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1463:6: style: The scope of the variable 'next_phtype' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1760:6: style: The scope of the variable 'found' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1764:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1765:6: style: The scope of the variable 'exact' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1767:6: style: The scope of the variable 'tplex' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1769:6: style: The scope of the variable 'say_one_hundred' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1773:7: style: The scope of the variable 'ph_100' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1774:7: style: The scope of the variable 'ph_10T' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:1775:7: style: The scope of the variable 'ph_digits' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:2037:6: style: The scope of the variable 'digix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:2038:16: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:2047:6: style: The scope of the variable 'decimal_count' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/numbers.cpp:510:77: style:inconclusive: Function 'LookupLetter' argument 4 names different: declaration 'ph_buf' definition 'ph_buf1'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:769:77: note: Function 'LookupLetter' argument 4 names different: declaration 'ph_buf' definition 'ph_buf1'. espeak-1.48.15+dfsg/src/numbers.cpp:510:77: note: Function 'LookupLetter' argument 4 names different: declaration 'ph_buf' definition 'ph_buf1'. espeak-1.48.15+dfsg/src/numbers.cpp:708:43: style:inconclusive: Function 'TranslateLetter' argument 2 names different: declaration 'letter' definition 'word'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:768:43: note: Function 'TranslateLetter' argument 2 names different: declaration 'letter' definition 'word'. espeak-1.48.15+dfsg/src/numbers.cpp:708:43: note: Function 'TranslateLetter' argument 2 names different: declaration 'letter' definition 'word'. espeak-1.48.15+dfsg/src/numbers.cpp:2438:9: style: Local variable 'p' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/numbers.cpp:2054:8: note: Shadowed declaration espeak-1.48.15+dfsg/src/numbers.cpp:2438:9: note: Shadow variable espeak-1.48.15+dfsg/src/numbers.cpp:708:43: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/numbers.cpp:736:14: style: Variable 'pause_string' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/numbers.cpp:1005:36: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/numbers.cpp:1075:50: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/numbers.cpp:1075:82: style: Parameter 'wtab' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/numbers.cpp:1168:13: style: Variable 'roman_values' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/numbers.cpp:2011:32: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/readclause.cpp:2464:9: style: Variable 'c2' is reassigned a value before the old one has been used. [redundantAssignment] espeak-1.48.15+dfsg/src/readclause.cpp:2437:9: note: c2 is assigned espeak-1.48.15+dfsg/src/readclause.cpp:2464:9: note: c2 is overwritten espeak-1.48.15+dfsg/src/readclause.cpp:469:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:556:15: style: The scope of the variable 'c2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:611:6: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:613:6: style: The scope of the variable 'c2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:615:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:616:6: style: The scope of the variable 'n_bytes' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:727:7: style: The scope of the variable 'phonemes2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:751:7: style: The scope of the variable 'phonemes2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:835:16: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:877:7: style: The scope of the variable 'fd_temp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:879:8: style: The scope of the variable 'command' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:989:6: style: The scope of the variable 'punct_count' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:998:7: style: The scope of the variable 'buf2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1185:6: style: The scope of the variable 'voice_name_specified' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1267:6: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1449:15: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1451:6: style: The scope of the variable 'n' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1452:6: style: The scope of the variable 'prev_c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1537:8: style: The scope of the variable 'vp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1598:11: style: The scope of the variable 'lang' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1599:11: style: The scope of the variable 'gender' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1600:11: style: The scope of the variable 'name' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1601:11: style: The scope of the variable 'age' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1602:11: style: The scope of the variable 'variant' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1603:6: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1605:14: style: The scope of the variable 'ssml_sp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1672:6: style: The scope of the variable 'sign' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1751:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1774:6: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:1785:8: style: The scope of the variable 'uri' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:2026:9: style: The scope of the variable 'fname' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:2242:6: style: The scope of the variable 'cprev2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:2566:11: style: The scope of the variable 'p_word' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:2603:10: style: The scope of the variable 'text_buf' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/readclause.cpp:851:7: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1183:14: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1270:14: style: Variable 'cmd_letter' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/readclause.cpp:1565:34: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/readclause.cpp:1598:11: style: Variable 'lang' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1599:11: style: Variable 'gender' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1600:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1601:11: style: Variable 'age' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1602:11: style: Variable 'variant' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1669:58: style: Parameter 'attr1' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/readclause.cpp:1782:11: style: Variable 'attr2' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1783:11: style: Variable 'attr3' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1790:14: style: Variable 'ssml_sp' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/readclause.cpp:1920:25: style: Variable 'emphasis_to_pitch_range' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/readclause.cpp:1921:25: style: Variable 'emphasis_to_volume' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/readclause.cpp:1928:25: style: Variable 'emphasis_to_volume2' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/readclause.cpp:2082:15: style: Variable 'break_value' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/numbers.cpp:424:14: style: Variable 'accent2' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/readclause.cpp:2242:12: style: Variable 'cprev2' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/setlengths.cpp:937:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/sonic.cpp:69:13: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] espeak-1.48.15+dfsg/src/sonic.cpp:68:15: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/sonic.cpp:68:15: note: Assignment 'file=fopen("/tmp/sonic.log","a")', assigned value is 0 espeak-1.48.15+dfsg/src/sonic.cpp:69:13: note: Null pointer dereference espeak-1.48.15+dfsg/src/sonic.cpp:70:12: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] espeak-1.48.15+dfsg/src/sonic.cpp:68:15: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/sonic.cpp:68:15: note: Assignment 'file=fopen("/tmp/sonic.log","a")', assigned value is 0 espeak-1.48.15+dfsg/src/sonic.cpp:70:12: note: Null pointer dereference espeak-1.48.15+dfsg/src/sonic.cpp:66:14: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:66:30: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:177:27: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:186:27: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:192:28: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:198:27: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:203:32: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:222:25: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:238:24: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:695:24: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/sonic.cpp:781:13: style: Redundant initialization for 'newSamples'. The initialized value is overwritten before it is read. [redundantInitialization] espeak-1.48.15+dfsg/src/sonic.cpp:777:21: note: newSamples is initialized espeak-1.48.15+dfsg/src/sonic.cpp:781:13: note: newSamples is overwritten espeak-1.48.15+dfsg/src/sonic.cpp:783:2: style: Variable 'newSamples' is assigned an expression that holds the same value. [redundantAssignment] espeak-1.48.15+dfsg/src/sonic.cpp:777:21: note: newSamples is assigned 'period' here. espeak-1.48.15+dfsg/src/sonic.cpp:783:2: note: Variable 'newSamples' is assigned an expression that holds the same value. espeak-1.48.15+dfsg/src/sonic.cpp:80:9: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:503:9: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:526:12: style: The scope of the variable 's' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:526:16: style: The scope of the variable 'p' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:527:19: style: The scope of the variable 'diff' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:635:12: style: The scope of the variable 'o' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:635:16: style: The scope of the variable 'u' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:635:20: style: The scope of the variable 'd' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:661:12: style: The scope of the variable 'o' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:661:16: style: The scope of the variable 'u' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:661:20: style: The scope of the variable 'd' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:735:9: style: The scope of the variable 'period' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:735:17: style: The scope of the variable 'newPeriod' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/sonic.cpp:250:12: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/sonic.cpp:273:12: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/sonic.cpp:291:20: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/sonic.cpp:328:12: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/sonic.cpp:368:12: style: Variable 'buffer' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/sonic.cpp:426:12: style: Variable 'buffer' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/sonic.cpp:497:12: style: Parameter 'samples' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/sonic.cpp:526:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/sonic.cpp:526:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/speak.cpp:153:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/speak.cpp:264:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/speak.cpp:289:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/speak.cpp:433:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/speak.cpp:491:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/setlengths.cpp:144:6: style: The scope of the variable 's1' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/setlengths.cpp:148:9: style: The scope of the variable 'sonic' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/setlengths.cpp:482:6: style: The scope of the variable 'default_value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/setlengths.cpp:564:16: style: The scope of the variable 'next' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/setlengths.cpp:570:7: style: The scope of the variable 'stress' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/setlengths.cpp:571:7: style: The scope of the variable 'type' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/setlengths.cpp:585:6: style: The scope of the variable 'emphasized' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/setlengths.cpp:587:17: style: Variable 'pitch_env' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/speak.cpp:334:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] espeak-1.48.15+dfsg/src/speak.cpp:152:10: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/speak.cpp:169:6: style: The scope of the variable 'count' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/speak.cpp:322:7: style: The scope of the variable 'fname' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/speak.cpp:516:6: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/speak.cpp:518:6: style: Local variable 'speed' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/synthesize.h:546:22: note: Shadowed declaration espeak-1.48.15+dfsg/src/speak.cpp:518:6: note: Shadow variable espeak-1.48.15+dfsg/src/speak.cpp:179:14: style: Variable 'genders' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/speak.cpp:236:29: style: Parameter 'wvoice' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/speak.cpp:245:23: style: Variable 'wave_hdr' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/speak.cpp:310:94: style: Parameter 'out_ptr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/speak.cpp:359:42: style: Parameter 'path_specified' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/speak.cpp:403:8: style: Variable 'env' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/speak.cpp:483:23: style: Variable 'long_options' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/speak.cpp:352:10: error: Uninitialized variable: wav_outbuf [uninitvar] espeak-1.48.15+dfsg/src/speak.cpp:329:5: note: Assuming condition is false espeak-1.48.15+dfsg/src/speak.cpp:352:10: note: Uninitialized variable: wav_outbuf espeak-1.48.15+dfsg/src/speak_lib.cpp:314:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/speak_lib.cpp:394:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/speak_lib.cpp:781:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/speak_lib.cpp:1179:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/speak_lib.cpp:723:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed wchar_t'. [invalidPrintfArgType_sint] espeak-1.48.15+dfsg/src/speak_lib.cpp:851:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] espeak-1.48.15+dfsg/src/speak_lib.cpp:851:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] espeak-1.48.15+dfsg/src/speak_lib.cpp:919:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] espeak-1.48.15+dfsg/src/speak_lib.cpp:803:2: error: Common realloc mistake: 'outbuf' nulled but not freed upon failure [memleakOnRealloc] espeak-1.48.15+dfsg/src/speak_lib.cpp:810:6: error: Common realloc mistake: 'event_list' nulled but not freed upon failure [memleakOnRealloc] espeak-1.48.15+dfsg/src/speak_lib.cpp:313:10: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/speak_lib.cpp:510:30: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/speak_lib.cpp:603:7: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/speak_lib.cpp:803:11: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/speak_lib.cpp:810:20: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/speak_lib.cpp:851:108: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/speak_lib.cpp:919:98: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/speak_lib.cpp:420:6: style: The scope of the variable 'length' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/speak_lib.cpp:770:54: style:inconclusive: Function 'espeak_Initialize' argument 1 names different: declaration 'output' definition 'output_type'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/speak_lib.h:188:54: note: Function 'espeak_Initialize' argument 1 names different: declaration 'output' definition 'output_type'. espeak-1.48.15+dfsg/src/speak_lib.cpp:770:54: note: Function 'espeak_Initialize' argument 1 names different: declaration 'output' definition 'output_type'. espeak-1.48.15+dfsg/src/speak_lib.cpp:770:71: style:inconclusive: Function 'espeak_Initialize' argument 2 names different: declaration 'buflength' definition 'buf_length'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/speak_lib.h:188:66: note: Function 'espeak_Initialize' argument 2 names different: declaration 'buflength' definition 'buf_length'. espeak-1.48.15+dfsg/src/speak_lib.cpp:770:71: note: Function 'espeak_Initialize' argument 2 names different: declaration 'buflength' definition 'buf_length'. espeak-1.48.15+dfsg/src/speak_lib.cpp:968:48: style:inconclusive: Function 'espeak_Key' argument 1 names different: declaration 'key_name' definition 'key'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/speak_lib.h:363:48: note: Function 'espeak_Key' argument 1 names different: declaration 'key_name' definition 'key'. espeak-1.48.15+dfsg/src/speak_lib.cpp:968:48: note: Function 'espeak_Key' argument 1 names different: declaration 'key_name' definition 'key'. espeak-1.48.15+dfsg/src/speak_lib.cpp:1060:67: style:inconclusive: Function 'espeak_SetVoiceByProperties' argument 1 names different: declaration 'voice_spec' definition 'voice_selector'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/speak_lib.h:610:67: note: Function 'espeak_SetVoiceByProperties' argument 1 names different: declaration 'voice_spec' definition 'voice_selector'. espeak-1.48.15+dfsg/src/speak_lib.cpp:1060:67: note: Function 'espeak_SetVoiceByProperties' argument 1 names different: declaration 'voice_spec' definition 'voice_selector'. espeak-1.48.15+dfsg/src/speak_lib.cpp:1292:49: style:inconclusive: Function 'espeak_Info' argument 1 names different: declaration 'path_data' definition 'ptr'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/speak_lib.h:677:49: note: Function 'espeak_Info' argument 1 names different: declaration 'path_data' definition 'ptr'. espeak-1.48.15+dfsg/src/speak_lib.cpp:1292:49: note: Function 'espeak_Info' argument 1 names different: declaration 'path_data' definition 'ptr'. espeak-1.48.15+dfsg/src/speak_lib.cpp:78:29: style: Parameter 'wvoice' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/speak_lib.cpp:357:8: style: Variable 'env' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/speak_lib.cpp:567:94: style: Parameter 'out_ptr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthdata.cpp:86:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/synthdata.cpp:381:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/synthdata.cpp:533:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:175:6: error: Common realloc mistake: 'mbrola_tab' nulled but not freed upon failure [memleakOnRealloc] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:175:20: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:183:7: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:677:20: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:299:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:302:9: style: The scope of the variable 'p2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:309:6: style: The scope of the variable 'y2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:415:15: style: The scope of the variable 'name' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:422:16: style: The scope of the variable 'next' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:432:8: style: The scope of the variable 'ptr' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:668:8: style: The scope of the variable 'value16' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:669:6: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:205:37: style: Parameter 'plist' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:205:57: style: Parameter 'ph' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:209:14: style: Variable 'pr' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:210:15: style: Variable 'other_ph' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:303:17: style: Variable 'pitch_env' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:422:16: style: Variable 'next' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:521:11: style: Variable 'pitch' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synth_mbrola.cpp:526:11: style: Variable 'pitch' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synthdata.cpp:495:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/synthdata.cpp:511:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/synthdata.cpp:122:25: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:122:53: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:124:22: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:124:43: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:126:32: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:128:15: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:128:33: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:130:21: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:157:8: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:162:43: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:239:9: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:240:10: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:255:13: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:292:11: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:293:12: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:302:14: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:384:9: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthdata.cpp:114:6: style: The scope of the variable 'n_phonemes' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:120:7: style: The scope of the variable 'pw' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:206:16: style: The scope of the variable 'c' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:232:7: style: The scope of the variable 'length_std' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:233:7: style: The scope of the variable 'length_factor' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:392:6: style: The scope of the variable 'ph_code' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:617:6: style: The scope of the variable 'which' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:618:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:622:6: style: The scope of the variable 'count' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:623:6: style: The scope of the variable 'check_endtype' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:624:15: style: The scope of the variable 'ph' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:625:16: style: The scope of the variable 'plist_this' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:884:10: style: The scope of the variable 'prog' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:886:14: style: The scope of the variable 'x' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:973:9: style: The scope of the variable 'instn' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:974:6: style: The scope of the variable 'instn2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:975:6: style: The scope of the variable 'or_flag' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthdata.cpp:120:7: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synthdata.cpp:224:38: style: Parameter 'this_ph' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthdata.cpp:224:70: style: Parameter 'fmt_params' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthdata.cpp:224:112: style: Parameter 'plist' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthdata.cpp:531:39: style: Parameter 'ph' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthdata.cpp:537:41: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthdata.cpp:543:16: style: Variable 'pl' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synthdata.cpp:544:13: style: Variable 'condition_level' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/synthdata.cpp:599:45: style: Parameter 'plist' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthdata.cpp:615:90: style: Parameter 'p_prog' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthdata.cpp:624:15: style: Variable 'ph' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synthdata.cpp:625:16: style: Variable 'plist_this' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synthdata.cpp:884:10: style: Variable 'prog' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synthdata.cpp:911:27: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/tr_languages.cpp:240:8: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/tr_languages.cpp:418:30: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/tr_languages.cpp:420:30: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/tr_languages.cpp:425:35: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/tr_languages.cpp:1141:32: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/tr_languages.cpp:1142:32: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/tr_languages.cpp:1143:37: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/tr_languages.cpp:1177:33: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthesize.cpp:541:12: style: Condition 'frame2!=NULL' is always true [knownConditionTrueFalse] espeak-1.48.15+dfsg/src/synthesize.cpp:1267:9: warning: If memory allocation fails, then there is a possible null pointer dereference: v2 [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/synthesize.cpp:1266:24: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/synthesize.cpp:1266:7: note: Assignment 'v2=(struct voice_t*)malloc(sizeof(struct voice_t))', assigned value is 0 espeak-1.48.15+dfsg/src/synthesize.cpp:1267:9: note: Null pointer dereference espeak-1.48.15+dfsg/src/synthesize.cpp:810:18: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthesize.cpp:827:14: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthesize.cpp:836:22: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthesize.cpp:915:14: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthesize.cpp:927:22: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthesize.cpp:1242:7: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthesize.cpp:1266:8: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/synthesize.cpp:216:6: style: The scope of the variable 'srate2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:470:6: style: The scope of the variable 'h' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:516:7: style: The scope of the variable 'x' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:628:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:629:6: style: The scope of the variable 'formant' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:630:6: style: The scope of the variable 'next_rms' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1008:11: style: The scope of the variable 'fr' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1009:7: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1012:7: style: The scope of the variable 'frame_length' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1013:7: style: The scope of the variable 'length_factor' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1278:15: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1279:6: style: The scope of the variable 'command' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1341:16: style: The scope of the variable 'next2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1353:6: style: The scope of the variable 'done_phoneme_marker' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1896:14: style: The scope of the variable 'phon_out' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/synthesize.cpp:1879:27: style:inconclusive: Function 'SpeakNextClause' argument 1 names different: declaration 'f_text' definition 'f_in'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/synthesize.h:526:28: note: Function 'SpeakNextClause' argument 1 names different: declaration 'f_text' definition 'f_in'. espeak-1.48.15+dfsg/src/synthesize.cpp:1879:27: note: Function 'SpeakNextClause' argument 1 names different: declaration 'f_text' definition 'f_in'. espeak-1.48.15+dfsg/src/synthesize.cpp:262:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synthesize.cpp:611:36: style: Parameter 'fr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthesize.cpp:626:109: style: Parameter 'other_ph' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthesize.cpp:645:14: style: Variable 'vcolouring' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/synthesize.cpp:1236:7: style: Variable 'p' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/synthesize.cpp:1261:29: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/synthesize.cpp:1341:16: style: Variable 'next2' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/translate.cpp:3314:2: error: Address of local auto-variable assigned to a function parameter. [autoVariables] espeak-1.48.15+dfsg/src/translate.cpp:2492:26: style: Condition '(code=c-0xac00)>=0' is always true [knownConditionTrueFalse] espeak-1.48.15+dfsg/src/translate.cpp:2514:31: style: Condition '(code=c-0x3130)>=0' is always true [knownConditionTrueFalse] espeak-1.48.15+dfsg/src/translate.cpp:618:16: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:751:7: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:773:11: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:1885:6: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:2017:20: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:2056:53: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:2633:16: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:2634:18: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:3561:10: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:3563:10: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/translate.cpp:1525:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] espeak-1.48.15+dfsg/src/translate.cpp:1527:3: note: Found duplicate branches for 'if' and 'else'. espeak-1.48.15+dfsg/src/translate.cpp:1525:3: note: Found duplicate branches for 'if' and 'else'. espeak-1.48.15+dfsg/src/translate.cpp:2674:7: style: Variable 'p' is reassigned a value before the old one has been used. [redundantAssignment] espeak-1.48.15+dfsg/src/translate.cpp:2657:4: note: p is assigned espeak-1.48.15+dfsg/src/translate.cpp:2674:7: note: p is overwritten espeak-1.48.15+dfsg/src/translate.cpp:570:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:668:6: style: The scope of the variable 'nbytes' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:669:6: style: The scope of the variable 'ok' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:829:6: style: The scope of the variable 'pfix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:830:6: style: The scope of the variable 'n_chars' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:843:7: style: The scope of the variable 'end_phonemes2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:849:6: style: The scope of the variable 'end_flags' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:855:6: style: The scope of the variable 'more_suffixes' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:856:6: style: The scope of the variable 'confirm_prefix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:858:6: style: The scope of the variable 'stress_bits' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:863:6: style: The scope of the variable 'loopcount' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:1691:6: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:1807:6: style: The scope of the variable 'sylimit' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:1808:14: style: The scope of the variable 'new_language' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:1811:6: style: The scope of the variable 'word_copy_len' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:1889:7: style: The scope of the variable 'c1' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:1890:8: style: The scope of the variable 'lang_name' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:1942:9: style: The scope of the variable 'ph_buf' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2406:22: style: The scope of the variable 'c2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2476:6: style: The scope of the variable 'initial' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2477:6: style: The scope of the variable 'medial' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2478:6: style: The scope of the variable 'final' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2556:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2557:6: style: The scope of the variable 'len' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2558:14: style: The scope of the variable 'p' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2586:15: style: The scope of the variable 'prev_source_index' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2590:6: style: The scope of the variable 'prev_out2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:2593:6: style: The scope of the variable 'next_in_nbytes' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:3338:7: style: The scope of the variable 'nw' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/translate.cpp:821:41: style:inconclusive: Function 'TranslateWord' argument 2 names different: declaration 'word1' definition 'word_start'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:787:41: note: Function 'TranslateWord' argument 2 names different: declaration 'word1' definition 'word_start'. espeak-1.48.15+dfsg/src/translate.cpp:821:41: note: Function 'TranslateWord' argument 2 names different: declaration 'word1' definition 'word_start'. espeak-1.48.15+dfsg/src/translate.cpp:1720:32: style:inconclusive: Function 'SetTranslator2' argument 1 names different: declaration 'name' definition 'new_language'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:757:32: note: Function 'SetTranslator2' argument 1 names different: declaration 'name' definition 'new_language'. espeak-1.48.15+dfsg/src/translate.cpp:1720:32: note: Function 'SetTranslator2' argument 1 names different: declaration 'name' definition 'new_language'. espeak-1.48.15+dfsg/src/translate.cpp:2580:80: style:inconclusive: Function 'TranslateClause' argument 4 names different: declaration 'tone' definition 'tone_out'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:788:80: note: Function 'TranslateClause' argument 4 names different: declaration 'tone' definition 'tone_out'. espeak-1.48.15+dfsg/src/translate.cpp:2580:80: note: Function 'TranslateClause' argument 4 names different: declaration 'tone' definition 'tone_out'. espeak-1.48.15+dfsg/src/translate.cpp:3570:19: style:inconclusive: Function 'InitText' argument 1 names different: declaration 'flags' definition 'control'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:738:19: note: Function 'InitText' argument 1 names different: declaration 'flags' definition 'control'. espeak-1.48.15+dfsg/src/translate.cpp:3570:19: note: Function 'InitText' argument 1 names different: declaration 'flags' definition 'control'. espeak-1.48.15+dfsg/src/translate.cpp:1207:11: style: Local variable 'end_phonemes2' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/translate.cpp:843:7: note: Shadowed declaration espeak-1.48.15+dfsg/src/translate.cpp:1207:11: note: Shadow variable espeak-1.48.15+dfsg/src/translate.cpp:1487:10: style: Local variable 'p' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/translate.cpp:828:8: note: Shadowed declaration espeak-1.48.15+dfsg/src/translate.cpp:1487:10: note: Shadow variable espeak-1.48.15+dfsg/src/translate.cpp:519:23: style: Variable 'code' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/translate.cpp:743:8: style: Variable 'p_in' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/translate.cpp:1674:42: style: Parameter 'phonemes' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/translate.cpp:1797:15: style: Variable 'ph' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/translate.cpp:2346:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/translate.cpp:2402:39: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/translate.cpp:2554:43: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/translate.cpp:677:5: style: Variable 'ix' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/translate.cpp:833:14: style: Variable 'end_type' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/translate.cpp:1079:12: style: Variable 'end_type' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/translate.cpp:1187:16: style: Variable 'wordx' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/voices.cpp:848:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] espeak-1.48.15+dfsg/src/wavegen.cpp:1905:20: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:1927:36: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:1943:25: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:1950:57: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:1950:73: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:1958:63: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:1958:79: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:1975:24: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:1979:21: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:1980:10: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:2066:23: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/wavegen.cpp:747:9: style: The scope of the variable 'x' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:868:6: style: The scope of the variable 'fp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:875:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1150:6: style: The scope of the variable 'amp' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1171:17: style: The scope of the variable 'waveph' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1173:6: style: The scope of the variable 'total' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1176:6: style: The scope of the variable 'z' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1176:9: style: The scope of the variable 'z1' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1176:13: style: The scope of the variable 'z2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1177:6: style: The scope of the variable 'echo' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1446:6: style: The scope of the variable 'value' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1664:6: style: The scope of the variable 'x' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1737:6: style: The scope of the variable 'cmd' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1872:6: style: The scope of the variable 'length' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:1873:6: style: The scope of the variable 'result' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/wavegen.cpp:867:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/wavegen.cpp:1480:60: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/wavegen.cpp:1622:31: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/wavegen.cpp:1662:25: style: Parameter 'voice' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/wavegen.cpp:1738:13: style: Variable 'glottal_reduce_tab1' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/wavegen.cpp:1740:13: style: Variable 'glottal_reduce_tab2' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/wavegen.cpp:1446:11: style: Variable 'value' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:413:18: style: Array index 'count' is used before limits check. [arrayIndexThenCheck] espeak-1.48.15+dfsg/src/dictionary.cpp:776:8: error: Common realloc mistake: 'phon_out_buf' nulled but not freed upon failure [memleakOnRealloc] espeak-1.48.15+dfsg/src/dictionary.cpp:1861:31: warning: Either the condition 'string!=NULL' is redundant or there is possible null pointer dereference: string. [nullPointerRedundantCheck] espeak-1.48.15+dfsg/src/dictionary.cpp:1894:12: note: Assuming that condition 'string!=NULL' is not redundant espeak-1.48.15+dfsg/src/dictionary.cpp:1861:31: note: Null pointer dereference espeak-1.48.15+dfsg/src/dictionary.cpp:171:8: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/dictionary.cpp:279:7: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/dictionary.cpp:668:22: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/dictionary.cpp:776:23: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/dictionary.cpp:1137:9: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/dictionary.cpp:3608:16: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/dictionary.cpp:3636:16: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/dictionary.cpp:364:7: style: The scope of the variable 'consumed' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:537:6: style: The scope of the variable 'len' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:648:16: style: The scope of the variable 'len' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:654:6: style: The scope of the variable 'count' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:843:6: style: The scope of the variable 'letter2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:1213:6: style: The scope of the variable 'mnem' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:1918:16: style: The scope of the variable 'letter' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:1931:7: style: The scope of the variable 'failed' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:1932:7: style: The scope of the variable 'unpron_ignore' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:1933:7: style: The scope of the variable 'consumed' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:1937:7: style: The scope of the variable 'distance_right' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:1938:7: style: The scope of the variable 'distance_left' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:1943:6: style: The scope of the variable 'check_atstart' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:2607:6: style: The scope of the variable 'wc_bytes' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:2612:7: style: The scope of the variable 'n' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:2921:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:2923:8: style: The scope of the variable 'p' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:2969:6: style: The scope of the variable 'c2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:2970:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:2978:6: style: The scope of the variable 'bits' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:2979:6: style: The scope of the variable 'acc' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:2981:15: style: The scope of the variable 'pairs_list' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:3607:6: style: The scope of the variable 'say_as' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:3661:14: style: The scope of the variable 'p' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:3662:7: style: The scope of the variable 'len' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/dictionary.cpp:265:26: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] espeak-1.48.15+dfsg/src/dictionary.cpp:875:33: style:inconclusive: Function 'IsVowel' argument 2 names different: declaration 'c' definition 'letter'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:743:33: note: Function 'IsVowel' argument 2 names different: declaration 'c' definition 'letter'. espeak-1.48.15+dfsg/src/dictionary.cpp:875:33: note: Function 'IsVowel' argument 2 names different: declaration 'c' definition 'letter'. espeak-1.48.15+dfsg/src/dictionary.cpp:1181:97: style:inconclusive: Function 'SetWordStress' argument 5 names different: declaration 'prev_stress' definition 'control'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:785:97: note: Function 'SetWordStress' argument 5 names different: declaration 'prev_stress' definition 'control'. espeak-1.48.15+dfsg/src/dictionary.cpp:1181:97: note: Function 'SetWordStress' argument 5 names different: declaration 'prev_stress' definition 'control'. espeak-1.48.15+dfsg/src/dictionary.cpp:2599:42: style:inconclusive: Function 'TranslateRules' argument 2 names different: declaration 'p' definition 'p_start'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:786:42: note: Function 'TranslateRules' argument 2 names different: declaration 'p' definition 'p_start'. espeak-1.48.15+dfsg/src/dictionary.cpp:2599:42: note: Function 'TranslateRules' argument 2 names different: declaration 'p' definition 'p_start'. espeak-1.48.15+dfsg/src/dictionary.cpp:2599:71: style:inconclusive: Function 'TranslateRules' argument 4 names different: declaration 'size' definition 'ph_size'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:786:65: note: Function 'TranslateRules' argument 4 names different: declaration 'size' definition 'ph_size'. espeak-1.48.15+dfsg/src/dictionary.cpp:2599:71: note: Function 'TranslateRules' argument 4 names different: declaration 'size' definition 'ph_size'. espeak-1.48.15+dfsg/src/dictionary.cpp:2599:104: style:inconclusive: Function 'TranslateRules' argument 6 names different: declaration 'end_flags' definition 'word_flags'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/translate.h:786:95: note: Function 'TranslateRules' argument 6 names different: declaration 'end_flags' definition 'word_flags'. espeak-1.48.15+dfsg/src/dictionary.cpp:2599:104: note: Function 'TranslateRules' argument 6 names different: declaration 'end_flags' definition 'word_flags'. espeak-1.48.15+dfsg/src/dictionary.cpp:2233:12: style: Local variable 'p' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:1927:8: note: Shadowed declaration espeak-1.48.15+dfsg/src/dictionary.cpp:2233:12: note: Shadow variable espeak-1.48.15+dfsg/src/dictionary.cpp:2262:12: style: Local variable 'p' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:1927:8: note: Shadowed declaration espeak-1.48.15+dfsg/src/dictionary.cpp:2262:12: note: Shadow variable espeak-1.48.15+dfsg/src/dictionary.cpp:2282:12: style: Local variable 'p' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:1927:8: note: Shadowed declaration espeak-1.48.15+dfsg/src/dictionary.cpp:2282:12: note: Shadow variable espeak-1.48.15+dfsg/src/dictionary.cpp:2473:12: style: Local variable 'p' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:1927:8: note: Shadowed declaration espeak-1.48.15+dfsg/src/dictionary.cpp:2473:12: note: Shadow variable espeak-1.48.15+dfsg/src/dictionary.cpp:2645:17: style: Local variable 'ix' shadows outer variable [shadowVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:2615:7: note: Shadowed declaration espeak-1.48.15+dfsg/src/dictionary.cpp:2645:17: note: Shadow variable espeak-1.48.15+dfsg/src/dictionary.cpp:138:8: style: Variable 'p_name' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:243:7: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:480:15: style: Variable 'ph' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:533:52: style: Parameter 'ph' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/dictionary.cpp:540:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:804:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:805:8: style: Variable 'w' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:913:12: style: Variable 'alphabet' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:990:39: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/dictionary.cpp:994:15: style: Variable 'ph' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:1130:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:1181:64: style: Parameter 'dictionary_flags' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/dictionary.cpp:1199:15: style: Variable 'ph' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:1210:8: style: Variable 'max_output' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:1227:14: style: Variable 'consonant_types' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:1455:16: style: Variable 'guess_ru' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:1456:16: style: Variable 'guess_ru_v' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:1457:16: style: Variable 'guess_ru_t' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/dictionary.cpp:1900:59: style: Parameter 'word_start' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/dictionary.cpp:1953:8: style: Variable 'group_chars' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:2618:12: style: Variable 'alphabet' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/dictionary.cpp:2918:41: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/dictionary.cpp:2964:35: style: Parameter 'tr' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/dictionary.cpp:3079:73: style: Parameter 'wtab' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/dictionary.cpp:3193:34: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour. See condition at line 3184. [shiftTooManyBitsSigned] espeak-1.48.15+dfsg/src/dictionary.cpp:3184:13: note: Assuming that condition 'flag>=132' is not redundant espeak-1.48.15+dfsg/src/dictionary.cpp:3193:34: note: Shift espeak-1.48.15+dfsg/src/dictionary.cpp:1968:13: style: Variable 'match_type' is assigned a value that is never used. [unreadVariable] espeak-1.48.15+dfsg/src/voices.cpp:750:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] espeak-1.48.15+dfsg/src/voices.cpp:1778:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] espeak-1.48.15+dfsg/src/voices.cpp:1371:8: style: Condition 'x>0' is always true [knownConditionTrueFalse] espeak-1.48.15+dfsg/src/voices.cpp:1367:12: note: Assuming that condition 'ratio<100' is not redundant espeak-1.48.15+dfsg/src/voices.cpp:1368:17: note: Assignment 'ratio=10000/ratio', assigned value is 101 espeak-1.48.15+dfsg/src/voices.cpp:1369:24: note: Assignment 'ratio=(ratio-100)/10', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:1370:9: note: Assignment 'x=5-ratio', assigned value is greater than 4 espeak-1.48.15+dfsg/src/voices.cpp:1371:8: note: Condition 'x>0' is always true espeak-1.48.15+dfsg/src/voices.cpp:346:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:360:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:521:6: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:733:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:779:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:788:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:798:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:802:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:840:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:915:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:995:4: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:1023:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:1043:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] espeak-1.48.15+dfsg/src/voices.cpp:1946:2: error: Common realloc mistake: 'voices' nulled but not freed upon failure [memleakOnRealloc] espeak-1.48.15+dfsg/src/voices.cpp:381:2: warning: If memory allocation fails, then there is a possible null pointer dereference: voice_data [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/voices.cpp:376:20: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/voices.cpp:376:6: note: Assignment 'p=(char*)calloc(sizeof(struct espeak_VOICE)+langix+strlen(fname)+strlen(vname)+3,1)', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:377:15: note: Assignment 'voice_data=(struct espeak_VOICE*)p', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:381:2: note: Null pointer dereference espeak-1.48.15+dfsg/src/voices.cpp:384:2: warning: If memory allocation fails, then there is a possible null pointer dereference: voice_data [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/voices.cpp:376:20: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/voices.cpp:376:6: note: Assignment 'p=(char*)calloc(sizeof(struct espeak_VOICE)+langix+strlen(fname)+strlen(vname)+3,1)', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:377:15: note: Assignment 'voice_data=(struct espeak_VOICE*)p', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:384:2: note: Null pointer dereference espeak-1.48.15+dfsg/src/voices.cpp:385:2: warning: If memory allocation fails, then there is a possible null pointer dereference: voice_data [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/voices.cpp:376:20: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/voices.cpp:376:6: note: Assignment 'p=(char*)calloc(sizeof(struct espeak_VOICE)+langix+strlen(fname)+strlen(vname)+3,1)', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:377:15: note: Assignment 'voice_data=(struct espeak_VOICE*)p', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:385:2: note: Null pointer dereference espeak-1.48.15+dfsg/src/voices.cpp:394:2: warning: If memory allocation fails, then there is a possible null pointer dereference: voice_data [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/voices.cpp:376:20: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/voices.cpp:376:6: note: Assignment 'p=(char*)calloc(sizeof(struct espeak_VOICE)+langix+strlen(fname)+strlen(vname)+3,1)', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:377:15: note: Assignment 'voice_data=(struct espeak_VOICE*)p', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:394:2: note: Null pointer dereference espeak-1.48.15+dfsg/src/voices.cpp:395:2: warning: If memory allocation fails, then there is a possible null pointer dereference: voice_data [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/voices.cpp:376:20: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/voices.cpp:376:6: note: Assignment 'p=(char*)calloc(sizeof(struct espeak_VOICE)+langix+strlen(fname)+strlen(vname)+3,1)', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:377:15: note: Assignment 'voice_data=(struct espeak_VOICE*)p', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:395:2: note: Null pointer dereference espeak-1.48.15+dfsg/src/voices.cpp:396:2: warning: If memory allocation fails, then there is a possible null pointer dereference: voice_data [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/voices.cpp:376:20: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/voices.cpp:376:6: note: Assignment 'p=(char*)calloc(sizeof(struct espeak_VOICE)+langix+strlen(fname)+strlen(vname)+3,1)', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:377:15: note: Assignment 'voice_data=(struct espeak_VOICE*)p', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:396:2: note: Null pointer dereference espeak-1.48.15+dfsg/src/voices.cpp:397:2: warning: If memory allocation fails, then there is a possible null pointer dereference: voice_data [nullPointerOutOfMemory] espeak-1.48.15+dfsg/src/voices.cpp:376:20: note: Assuming allocation function fails espeak-1.48.15+dfsg/src/voices.cpp:376:6: note: Assignment 'p=(char*)calloc(sizeof(struct espeak_VOICE)+langix+strlen(fname)+strlen(vname)+3,1)', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:377:15: note: Assignment 'voice_data=(struct espeak_VOICE*)p', assigned value is 0 espeak-1.48.15+dfsg/src/voices.cpp:397:2: note: Null pointer dereference espeak-1.48.15+dfsg/src/voices.cpp:376:6: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:377:16: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1217:23: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1218:23: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1232:23: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1233:23: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1448:41: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1775:20: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1838:24: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1946:12: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1950:5: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:1972:16: style: C-style pointer casting [cstyleCast] espeak-1.48.15+dfsg/src/voices.cpp:862:11: style: Variable 'n' is reassigned a value before the old one has been used. [redundantAssignment] espeak-1.48.15+dfsg/src/voices.cpp:861:7: note: n is assigned espeak-1.48.15+dfsg/src/voices.cpp:862:11: note: n is overwritten espeak-1.48.15+dfsg/src/voices.cpp:243:6: style: The scope of the variable 'freq2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:245:6: style: The scope of the variable 'height2' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:602:14: style: The scope of the variable 'voice_dir' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1149:8: style: The scope of the variable 'p' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1246:6: style: The scope of the variable 'language_priority' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1247:6: style: The scope of the variable 'n_parts' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1248:6: style: The scope of the variable 'matching' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1249:6: style: The scope of the variable 'matching_parts' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1252:6: style: The scope of the variable 'ratio' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1253:6: style: The scope of the variable 'required_age' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1394:7: style: The scope of the variable 'buf' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1532:6: style: The scope of the variable 'skip' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1933:6: style: The scope of the variable 'ix' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:1934:6: style: The scope of the variable 'j' can be reduced. [variableScope] espeak-1.48.15+dfsg/src/voices.cpp:404:21: style:inconclusive: Function 'VoiceReset' argument 1 names different: declaration 'control' definition 'tone_only'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/voice.h:86:21: note: Function 'VoiceReset' argument 1 names different: declaration 'control' definition 'tone_only'. espeak-1.48.15+dfsg/src/voices.cpp:404:21: note: Function 'VoiceReset' argument 1 names different: declaration 'control' definition 'tone_only'. espeak-1.48.15+dfsg/src/voices.cpp:559:32: style:inconclusive: Function 'LoadVoice' argument 1 names different: declaration 'voice_name' definition 'vname'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/voice.h:80:32: note: Function 'LoadVoice' argument 1 names different: declaration 'voice_name' definition 'vname'. espeak-1.48.15+dfsg/src/voices.cpp:559:32: note: Function 'LoadVoice' argument 1 names different: declaration 'voice_name' definition 'vname'. espeak-1.48.15+dfsg/src/voices.cpp:1190:39: style:inconclusive: Function 'LoadVoiceVariant' argument 1 names different: declaration 'voice_name' definition 'vname'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/voice.h:81:39: note: Function 'LoadVoiceVariant' argument 1 names different: declaration 'voice_name' definition 'vname'. espeak-1.48.15+dfsg/src/voices.cpp:1190:39: note: Function 'LoadVoiceVariant' argument 1 names different: declaration 'voice_name' definition 'vname'. espeak-1.48.15+dfsg/src/voices.cpp:1190:50: style:inconclusive: Function 'LoadVoiceVariant' argument 2 names different: declaration 'variant' definition 'variant_num'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/voice.h:81:55: note: Function 'LoadVoiceVariant' argument 2 names different: declaration 'variant' definition 'variant_num'. espeak-1.48.15+dfsg/src/voices.cpp:1190:50: note: Function 'LoadVoiceVariant' argument 2 names different: declaration 'variant' definition 'variant_num'. espeak-1.48.15+dfsg/src/voices.cpp:1456:68: style:inconclusive: Function 'SelectVoiceByName' argument 2 names different: declaration 'name' definition 'name2'. [funcArgNamesDifferent] espeak-1.48.15+dfsg/src/voice.h:79:68: note: Function 'SelectVoiceByName' argument 2 names different: declaration 'name' definition 'name2'. espeak-1.48.15+dfsg/src/voices.cpp:1456:68: note: Function 'SelectVoiceByName' argument 2 names different: declaration 'name' definition 'name2'. espeak-1.48.15+dfsg/src/voices.cpp:276:27: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/voices.cpp:409:23: style: Variable 'default_heights' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/voices.cpp:410:23: style: Variable 'default_widths' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/voices.cpp:414:13: style: Variable 'breath_widths' can be declared as const array [constVariable] espeak-1.48.15+dfsg/src/voices.cpp:482:32: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/voices.cpp:512:48: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/voices.cpp:535:31: style: Parameter 'data_in' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/voices.cpp:1021:15: style: Variable 'alphabet' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:1144:44: style: Parameter 'vname' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/voices.cpp:1196:8: style: Variable 'variant_name' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:1217:16: style: Variable 'v1' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:1218:16: style: Variable 'v2' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:1232:16: style: Variable 'v1' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:1233:16: style: Variable 'v2' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:1241:37: style: Parameter 'voice_spec' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/voices.cpp:1241:127: style: Parameter 'voice' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/voices.cpp:1522:39: style: Parameter 'voice_select' can be declared as pointer to const [constParameterPointer] espeak-1.48.15+dfsg/src/voices.cpp:1534:8: style: Variable 'variant_name' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:1773:17: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:1820:16: style: Variable 'v' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:1823:8: style: Variable 'variant_name' can be declared as pointer to const [constVariablePointer] espeak-1.48.15+dfsg/src/voices.cpp:877:33: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour. See condition at line 876. [shiftTooManyBitsSigned] espeak-1.48.15+dfsg/src/voices.cpp:876:33: note: Assuming that condition 'n<64' is not redundant espeak-1.48.15+dfsg/src/voices.cpp:877:33: note: Shift espeak-1.48.15+dfsg/src/voices.cpp:1479:15: style: Variable 'variant_name' is assigned a value that is never used. [unreadVariable] diff: head espeak-1.48.15+dfsg/src/compiledict.cpp:1546:45: style: C-style pointer casting [cstyleCast] head espeak-1.48.15+dfsg/src/compiledict.cpp:1868:51: style: C-style pointer casting [cstyleCast] head espeak-1.48.15+dfsg/src/sonic.cpp:66:30: style: C-style pointer casting [cstyleCast] head espeak-1.48.15+dfsg/src/synthdata.cpp:122:53: style: C-style pointer casting [cstyleCast] head espeak-1.48.15+dfsg/src/synthdata.cpp:124:43: style: C-style pointer casting [cstyleCast] head espeak-1.48.15+dfsg/src/synthdata.cpp:128:33: style: C-style pointer casting [cstyleCast] head espeak-1.48.15+dfsg/src/synthesize.cpp:541:12: style: Condition 'frame2!=NULL' is always true [knownConditionTrueFalse] head espeak-1.48.15+dfsg/src/wavegen.cpp:1950:73: style: C-style pointer casting [cstyleCast] head espeak-1.48.15+dfsg/src/wavegen.cpp:1958:79: style: C-style pointer casting [cstyleCast] DONE