2022-06-27 15:33 ftp://ftp.de.debian.org/debian/pool/main/f/fontforge/fontforge_20220308~dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 88bf11a (2022-06-27 14:19:19 +0200) count: 2121 TO! elapsed-time: 1725.7 1800.1 head-timing-info: Overall time: 0s old-timing-info: head results: fontforge-20220308/Unicode/char.c:39:22: warning: Identical condition 'ch1=='\0'', second condition is always false [identicalConditionAfterEarlyExit] fontforge-20220308/Unicode/char.c:37:10: note: If condition 'ch1=='\0'' is true, the function will return/exit fontforge-20220308/Unicode/char.c:39:22: note: Testing identical condition 'ch1=='\0'' fontforge-20220308/Unicode/ustring.c:972:41: style: Condition '(x=strlen(line)-1)<0' is always false [knownConditionTrueFalse] fontforge-20220308/Unicode/ustring.c:886:6: error: Common realloc mistake: 'newcr' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/Unicode/ustring.c:898:3: error: Common realloc mistake: 'newcr' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/Unicode/ustring.c:908:7: error: Common realloc mistake: 'newcr' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/Unicode/ustring.c:428:18: error: Uninitialized variable: buf [uninitvar] fontforge-20220308/Unicode/ustring.c:446:18: error: Uninitialized variable: buf [uninitvar] fontforge-20220308/Unicode/ustring.c:464:19: error: Uninitialized variable: buf [uninitvar] fontforge-20220308/contrib/admintools/copyright.c:73:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/contrib/admintools/copyright.c:75:11: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/contrib/admintools/copyright.c:80:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/contrib/admintools/copyright.c:119:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/contrib/cidmap/src/mapcns1.c:155:19: warning: Either the condition 'uni>=0x1000000' is redundant or the array 'used[1114112]' is accessed at index 16777215, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/contrib/cidmap/src/mapcns1.c:152:17: note: Assuming that condition 'uni>=0x1000000' is not redundant fontforge-20220308/contrib/cidmap/src/mapcns1.c:155:19: note: Array index out of bounds fontforge-20220308/contrib/cidmap/src/mapcns1.c:150:6: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] fontforge-20220308/contrib/cidmap/src/mapgb1.c:139:19: warning: Either the condition 'uni>0x1000000' is redundant or the array 'used[1114112]' is accessed at index 16777216, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/contrib/cidmap/src/mapgb1.c:136:17: note: Assuming that condition 'uni>0x1000000' is not redundant fontforge-20220308/contrib/cidmap/src/mapgb1.c:139:19: note: Array index out of bounds fontforge-20220308/contrib/cidmap/src/mapgb1.c:134:6: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] fontforge-20220308/contrib/cidmap/src/mapjapan2.c:117:6: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] fontforge-20220308/contrib/cidmap/src/mapkorean.c:144:19: warning: Either the condition 'uni>=0x1000000' is redundant or the array 'used[1114112]' is accessed at index 16777215, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/contrib/cidmap/src/mapkorean.c:137:17: note: Assuming that condition 'uni>=0x1000000' is not redundant fontforge-20220308/contrib/cidmap/src/mapkorean.c:144:19: note: Array index out of bounds fontforge-20220308/contrib/cidmap/src/mapkorean.c:142:6: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] fontforge-20220308/contrib/fonttools/acorn2sfd.c:464:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/contrib/fonttools/acorn2sfd.c:64:10: style: struct member 'Outlines::scaffold_offset' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/acorn2sfd.c:65:11: style: struct member 'Outlines::scaffold_indexsize' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/findtable.c:38:4: style: Variable 'v' is assigned a value that is never used. [unreadVariable] fontforge-20220308/contrib/fonttools/pcl2ttf.c:776:18: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] fontforge-20220308/contrib/fonttools/pcl2ttf.c:823:18: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] fontforge-20220308/contrib/fonttools/pcl2ttf.c:776:18: error: Signed integer overflow for expression '1<<31'. [integerOverflow] fontforge-20220308/contrib/fonttools/pcl2ttf.c:823:18: error: Signed integer overflow for expression '1<<31'. [integerOverflow] fontforge-20220308/contrib/fonttools/pcl2ttf.c:1152:17: error: Uninitialized variable: buffer [uninitvar] fontforge-20220308/contrib/fonttools/pcl2ttf.c:1148:22: note: Assuming condition is false fontforge-20220308/contrib/fonttools/pcl2ttf.c:1152:17: note: Uninitialized variable: buffer fontforge-20220308/contrib/fonttools/pcl2ttf.c:1370:17: error: Uninitialized variable: buffer [uninitvar] fontforge-20220308/contrib/fonttools/pcl2ttf.c:1366:22: note: Assuming condition is false fontforge-20220308/contrib/fonttools/pcl2ttf.c:1370:17: note: Uninitialized variable: buffer fontforge-20220308/contrib/fonttools/pcl2ttf.c:1241:7: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/contrib/fonttools/pcl2ttf.c:289:31: style: struct member 'Anonymous0::present' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/pcl2ttf.c:1069:9: style: Variable 'off' is assigned a value that is never used. [unreadVariable] fontforge-20220308/contrib/fonttools/pfadecrypt.c:104:35: warning: Either the condition 'ch>=251' is redundant or the array 'commands[32]' is accessed at index 250, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/contrib/fonttools/pfadecrypt.c:93:16: note: Assuming that condition 'ch>=251' is not redundant fontforge-20220308/contrib/fonttools/pfadecrypt.c:104:35: note: Array index out of bounds fontforge-20220308/contrib/fonttools/pfadecrypt.c:291:6: style: Variable 'ch1' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/contrib/fonttools/pfadecrypt.c:285:6: note: ch1 is assigned fontforge-20220308/contrib/fonttools/pfadecrypt.c:291:6: note: ch1 is overwritten fontforge-20220308/contrib/fonttools/pfadecrypt.c:366:5: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] fontforge-20220308/contrib/fonttools/portablecompositor.cpp:77:27: performance: Function parameter 'param' should be passed by const reference. [passedByValue] fontforge-20220308/contrib/fonttools/showttf.c:515:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/contrib/fonttools/showttf.c:1943:44: style: Condition 'index<0' is always false [knownConditionTrueFalse] fontforge-20220308/contrib/fonttools/showttf.c:1942:16: note: Assignment 'index=(unsigned short)(index+delta[i])', assigned value is greater than -1 fontforge-20220308/contrib/fonttools/showttf.c:1943:44: note: Condition 'index<0' is always false fontforge-20220308/contrib/fonttools/showttf.c:2858:4: style: Condition 'i>=info->glyph_cnt' is always false [knownConditionTrueFalse] fontforge-20220308/contrib/fonttools/showttf.c:2856:17: note: Assuming that condition 'iglyph_cnt' is not redundant fontforge-20220308/contrib/fonttools/showttf.c:2858:4: note: Condition 'i>=info->glyph_cnt' is always false fontforge-20220308/contrib/fonttools/showttf.c:3625:36: style: Condition 'i>=info->glyph_cnt' is always false [knownConditionTrueFalse] fontforge-20220308/contrib/fonttools/showttf.c:3624:14: note: Assuming that condition 'iglyph_cnt' is not redundant fontforge-20220308/contrib/fonttools/showttf.c:3625:36: note: Condition 'i>=info->glyph_cnt' is always false fontforge-20220308/contrib/fonttools/showttf.c:3788:8: style: Condition 'i>=info->glyph_cnt' is always false [knownConditionTrueFalse] fontforge-20220308/contrib/fonttools/showttf.c:3784:17: note: Assuming that condition 'iglyph_cnt' is not redundant fontforge-20220308/contrib/fonttools/showttf.c:3788:8: note: Condition 'i>=info->glyph_cnt' is always false fontforge-20220308/contrib/fonttools/showttf.c:4433:24: style: Condition 'lig_glyph>=sm->info->glyph_cnt' is always false [knownConditionTrueFalse] fontforge-20220308/contrib/fonttools/showttf.c:4426:20: note: Assuming that condition 'lig_glyph>=sm->info->glyph_cnt' is not redundant fontforge-20220308/contrib/fonttools/showttf.c:4433:24: note: Condition 'lig_glyph>=sm->info->glyph_cnt' is always false fontforge-20220308/contrib/fonttools/showttf.c:4506:24: style: Condition 'lig_glyph>=sm->info->glyph_cnt' is always false [knownConditionTrueFalse] fontforge-20220308/contrib/fonttools/showttf.c:4499:20: note: Assuming that condition 'lig_glyph>=sm->info->glyph_cnt' is not redundant fontforge-20220308/contrib/fonttools/showttf.c:4506:24: note: Condition 'lig_glyph>=sm->info->glyph_cnt' is always false fontforge-20220308/contrib/fonttools/showttf.c:572:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/contrib/fonttools/showttf.c:2347:3: error: Common realloc mistake: 'glyphs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/contrib/fonttools/showttf.c:6860:6: error: Common realloc mistake: 'langs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/contrib/fonttools/showttf.c:2338:27: style: Argument '(max=256)*sizeof(uint16_t)' to function malloc is always 512. It does not matter what value 'max' has. [knownArgument] fontforge-20220308/contrib/fonttools/showttf.c:2418:35: style: Parameter 'glyphs' can be declared as pointer to const [constParameter] fontforge-20220308/contrib/fonttools/showttf.c:4051:43: style: Parameter 'entry' can be declared as pointer to const [constParameter] fontforge-20220308/contrib/fonttools/showttf.c:4086:38: style: Parameter 'entry' can be declared as pointer to const [constParameter] fontforge-20220308/contrib/fonttools/showttf.c:4166:40: style: Parameter 'entry' can be declared as pointer to const [constParameter] fontforge-20220308/contrib/fonttools/showttf.c:4261:41: style: Parameter 'entry' can be declared as pointer to const [constParameter] fontforge-20220308/contrib/fonttools/showttf.c:4297:36: style: Parameter 'entry' can be declared as pointer to const [constParameter] fontforge-20220308/contrib/fonttools/showttf.c:4336:37: style: Parameter 'entry' can be declared as pointer to const [constParameter] fontforge-20220308/contrib/fonttools/showttf.c:4381:33: style: Parameter 'data' can be declared as pointer to const [constParameter] fontforge-20220308/contrib/fonttools/showttf.c:4386:31: style: Parameter 'data' can be declared as pointer to const [constParameter] fontforge-20220308/contrib/fonttools/showttf.c:33:9: style: struct member 'ttfinfo::emsize' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:34:9: style: struct member 'ttfinfo::ascent' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:34:17: style: struct member 'ttfinfo::descent' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:36:9: style: struct member 'ttfinfo::width_cnt' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:42:11: style: struct member 'ttfinfo::copyright' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:43:11: style: struct member 'ttfinfo::familyname' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:44:11: style: struct member 'ttfinfo::fullname' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:45:11: style: struct member 'ttfinfo::version' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:46:11: style: struct member 'ttfinfo::fontname' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:47:12: style: struct member 'ttfinfo::italicAngle' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:48:9: style: struct member 'ttfinfo::upos' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/showttf.c:48:15: style: struct member 'ttfinfo::uwidth' is never used. [unusedStructMember] fontforge-20220308/contrib/fonttools/ttf2eps.c:801:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/contrib/fonttools/ttf2eps.c:803:7: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/contrib/fonttools/ttf2eps.c:841:79: style: Parameter 'trans' can be declared as const array [constParameter] fontforge-20220308/contrib/fonttools/ttf2eps.c:897:49: style: Parameter 'trans' can be declared as const array [constParameter] fontforge-20220308/fontforge/asmfpst.c:93:42: warning: The address of local variable 'names' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/asmfpst.c:93:12: note: Address of variable taken here. fontforge-20220308/fontforge/asmfpst.c:93:42: note: The address of local variable 'names' might be accessed at non-zero index. fontforge-20220308/fontforge/asmfpst.c:94:43: warning: The address of local variable 'names' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/asmfpst.c:94:13: note: Address of variable taken here. fontforge-20220308/fontforge/asmfpst.c:94:43: note: The address of local variable 'names' might be accessed at non-zero index. fontforge-20220308/fontforge/asmfpst.c:102:35: warning: The address of local variable 'ncnt' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/asmfpst.c:102:7: note: Address of variable taken here. fontforge-20220308/fontforge/asmfpst.c:102:35: note: The address of local variable 'ncnt' might be accessed at non-zero index. fontforge-20220308/fontforge/asmfpst.c:104:36: warning: The address of local variable 'nclasses' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/asmfpst.c:104:4: note: Address of variable taken here. fontforge-20220308/fontforge/asmfpst.c:104:36: note: The address of local variable 'nclasses' might be accessed at non-zero index. fontforge-20220308/fontforge/asmfpst.c:106:43: warning: The address of local variable 'names' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/asmfpst.c:106:13: note: Address of variable taken here. fontforge-20220308/fontforge/asmfpst.c:106:43: note: The address of local variable 'names' might be accessed at non-zero index. fontforge-20220308/fontforge/asmfpst.c:121:40: warning: The address of local variable 'nclasses' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/asmfpst.c:121:8: note: Address of variable taken here. fontforge-20220308/fontforge/asmfpst.c:121:40: note: The address of local variable 'nclasses' might be accessed at non-zero index. fontforge-20220308/fontforge/asmfpst.c:117:8: error: Common realloc mistake: 'names' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/asmfpst.c:511:60: style: Parameter 'map' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/asmfpst.c:520:16: style: Variable 'len' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/autohint.c:1336:42: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/autohint.c:1336:28: note: Address of variable taken here. fontforge-20220308/fontforge/autohint.c:1336:42: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/autohint.c:1339:61: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/autohint.c:1339:47: note: Address of variable taken here. fontforge-20220308/fontforge/autohint.c:1339:61: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/autohint.c:1340:59: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/autohint.c:1340:45: note: Address of variable taken here. fontforge-20220308/fontforge/autohint.c:1340:59: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/autohint.c:2849:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/autohint.c:2849:7: note: Address of variable taken here. fontforge-20220308/fontforge/autohint.c:2849:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/autohint.c:2850:29: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/autohint.c:2850:14: note: Address of variable taken here. fontforge-20220308/fontforge/autohint.c:2850:29: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/autohint.c:113:19: warning: Either the condition 'enc<=0x3f3' is redundant or isalnum() argument nr 1 can have invalid value. The value is 1011 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/autohint.c:116:26: note: Assuming that condition 'enc<=0x3f3' is not redundant fontforge-20220308/fontforge/autohint.c:113:19: note: Invalid argument fontforge-20220308/fontforge/autohint.c:168:23: warning: Either the condition 'enc!=0x490' is redundant or isdigit() argument nr 1 can have invalid value. The value is 1168 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/autohint.c:172:48: note: Assuming that condition 'enc!=0x490' is not redundant fontforge-20220308/fontforge/autohint.c:168:23: note: Invalid argument fontforge-20220308/fontforge/autohint.c:172:23: warning: Either the condition 'enc!=0x490' is redundant or isupper() argument nr 1 can have invalid value. The value is 1168 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/autohint.c:172:48: note: Assuming that condition 'enc!=0x490' is not redundant fontforge-20220308/fontforge/autohint.c:172:23: note: Invalid argument fontforge-20220308/fontforge/autohint.c:272:15: warning: Either the condition 'enc<=0x3f3' is redundant or isalnum() argument nr 1 can have invalid value. The value is 1012 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/autohint.c:274:22: note: Assuming that condition 'enc<=0x3f3' is not redundant fontforge-20220308/fontforge/autohint.c:272:15: note: Invalid argument fontforge-20220308/fontforge/autohint.c:779:12: warning: Opposite inner 'return' condition leads to a dead code block. [oppositeInnerCondition] fontforge-20220308/fontforge/autohint.c:778:13: note: outer condition: tdo==0 fontforge-20220308/fontforge/autohint.c:779:12: note: opposite inner condition: tdo>0 fontforge-20220308/fontforge/autohint.c:781:12: warning: Opposite inner 'return' condition leads to a dead code block. [oppositeInnerCondition] fontforge-20220308/fontforge/autohint.c:780:18: note: outer condition: bdo==0 fontforge-20220308/fontforge/autohint.c:781:12: note: opposite inner condition: bdo>0 fontforge-20220308/fontforge/autohint.c:3446:47: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] fontforge-20220308/fontforge/autohint.c:3446:20: note: outer condition: sf->glyphs[i]!=NULL fontforge-20220308/fontforge/autohint.c:3446:47: note: identical inner condition: sf->glyphs[i]!=NULL fontforge-20220308/fontforge/autohint.c:752:48: style: Condition 'spl->first->prev!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/autohint.c:1079:19: warning: Either the condition 't==NULL' is redundant or there is possible null pointer dereference: t. [nullPointerRedundantCheck] fontforge-20220308/fontforge/autohint.c:1080:9: note: Assuming that condition 't==NULL' is not redundant fontforge-20220308/fontforge/autohint.c:1079:19: note: Null pointer dereference fontforge-20220308/fontforge/autohint.c:1087:19: warning: Either the condition 't==NULL' is redundant or there is possible null pointer dereference: t. [nullPointerRedundantCheck] fontforge-20220308/fontforge/autohint.c:1088:9: note: Assuming that condition 't==NULL' is not redundant fontforge-20220308/fontforge/autohint.c:1087:19: note: Null pointer dereference fontforge-20220308/fontforge/autohint.c:1115:19: warning: Either the condition 't==NULL' is redundant or there is possible null pointer dereference: t. [nullPointerRedundantCheck] fontforge-20220308/fontforge/autohint.c:1116:9: note: Assuming that condition 't==NULL' is not redundant fontforge-20220308/fontforge/autohint.c:1115:19: note: Null pointer dereference fontforge-20220308/fontforge/autohint.c:1123:19: warning: Either the condition 't==NULL' is redundant or there is possible null pointer dereference: t. [nullPointerRedundantCheck] fontforge-20220308/fontforge/autohint.c:1124:9: note: Assuming that condition 't==NULL' is not redundant fontforge-20220308/fontforge/autohint.c:1123:19: note: Null pointer dereference fontforge-20220308/fontforge/autohint.c:3024:38: style:inconclusive: Function 'SplineFontAutoHint' argument 1 names different: declaration 'sf' definition '_sf'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2317:45: note: Function 'SplineFontAutoHint' argument 1 names different: declaration 'sf' definition '_sf'. fontforge-20220308/fontforge/autohint.c:3024:38: note: Function 'SplineFontAutoHint' argument 1 names different: declaration 'sf' definition '_sf'. fontforge-20220308/fontforge/autohint.c:1506:28: style: Local variable 'off' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/autohint.c:1397:17: note: Shadowed declaration fontforge-20220308/fontforge/autohint.c:1506:28: note: Shadow variable fontforge-20220308/fontforge/autohint.c:3121:18: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/autohint.c:3090:12: note: Shadowed declaration fontforge-20220308/fontforge/autohint.c:3121:18: note: Shadow variable fontforge-20220308/fontforge/autohint.c:2007:63: style: Parameter 'new' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/autohint.c:1310:20: error: Uninitialized variables: starts.me, starts.nextcp, starts.prevcp, starts.nonextcp, starts.noprevcp, starts.nextcpdef, starts.prevcpdef, starts.selected, starts.nextcpselected, starts.prevcpselected, starts.pointtype, starts.isintersection, starts.flexy, starts.flexx, starts.roundx, starts.roundy, starts.dontinterpolate, starts.ticked, starts.watched, starts.ptindex, starts.ttfindex, starts.nextcpindex, starts.next, starts.prev, starts.hintmask, starts.name [uninitvar] fontforge-20220308/fontforge/autohint.c:1289:45: note: Assuming condition is false fontforge-20220308/fontforge/autohint.c:1310:20: note: Uninitialized variables: starts.me, starts.nextcp, starts.prevcp, starts.nonextcp, starts.noprevcp, starts.nextcpdef, starts.prevcpdef, starts.selected, starts.nextcpselected, starts.prevcpselected, starts.pointtype, starts.isintersection, starts.flexy, starts.flexx, starts.roundx, starts.roundy, starts.dontinterpolate, starts.ticked, starts.watched, starts.ptindex, starts.ttfindex, starts.nextcpindex, starts.next, starts.prev, starts.hintmask, starts.name fontforge-20220308/fontforge/autohint.c:1310:37: error: Uninitialized variables: ends.me, ends.nextcp, ends.prevcp, ends.nonextcp, ends.noprevcp, ends.nextcpdef, ends.prevcpdef, ends.selected, ends.nextcpselected, ends.prevcpselected, ends.pointtype, ends.isintersection, ends.flexy, ends.flexx, ends.roundx, ends.roundy, ends.dontinterpolate, ends.ticked, ends.watched, ends.ptindex, ends.ttfindex, ends.nextcpindex, ends.next, ends.prev, ends.hintmask, ends.name [uninitvar] fontforge-20220308/fontforge/autohint.c:1289:45: note: Assuming condition is false fontforge-20220308/fontforge/autohint.c:1310:37: note: Uninitialized variables: ends.me, ends.nextcp, ends.prevcp, ends.nonextcp, ends.noprevcp, ends.nextcpdef, ends.prevcpdef, ends.selected, ends.nextcpselected, ends.prevcpselected, ends.pointtype, ends.isintersection, ends.flexy, ends.flexx, ends.roundx, ends.roundy, ends.dontinterpolate, ends.ticked, ends.watched, ends.ptindex, ends.ttfindex, ends.nextcpindex, ends.next, ends.prev, ends.hintmask, ends.name fontforge-20220308/fontforge/autohint.c:3331:13: error: Uninitialized variables: spl.first, spl.last, spl.next, spl.spiros, spl.spiro_cnt, spl.spiro_max, spl.ticked, spl.beziers_need_optimizer, spl.is_clip_path, spl.start_offset, spl.contour_name [uninitvar] fontforge-20220308/fontforge/autohint.c:3326:17: note: Assuming condition is false fontforge-20220308/fontforge/autohint.c:3331:13: note: Uninitialized variables: spl.first, spl.last, spl.next, spl.spiros, spl.spiro_cnt, spl.spiro_max, spl.ticked, spl.beziers_need_optimizer, spl.is_clip_path, spl.start_offset, spl.contour_name fontforge-20220308/fontforge/autohint.c:2713:10: style: Variable 'hcnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/autosave.c:109:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/autosave.c:145:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/autotrace.c:689:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/autotrace.c:717:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/autotrace.c:556:12: style: Local variable 'args' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/autotrace.c:518:15: note: Shadowed declaration fontforge-20220308/fontforge/autotrace.c:556:12: note: Shadow variable fontforge-20220308/fontforge/autotrace.c:590:12: style: Local variable 'args' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/autotrace.c:518:15: note: Shadowed declaration fontforge-20220308/fontforge/autotrace.c:590:12: note: Shadow variable fontforge-20220308/fontforge/autotrace.c:153:14: style: Variable 'clockwise' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/autowidth.c:557:22: style: Variable 'caps' can be declared as const array [constVariable] fontforge-20220308/fontforge/autowidth2.c:494:7: error: Common realloc mistake: 'scripts' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/autowidth2.c:966:12: style: Variable 'glyphs' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/autowidth2.c:964:26: note: glyphs is assigned fontforge-20220308/fontforge/autowidth2.c:966:12: note: glyphs is overwritten fontforge-20220308/fontforge/autowidth2.c:164:16: style: Local variable 'me' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/autowidth2.c:134:15: note: Shadowed declaration fontforge-20220308/fontforge/autowidth2.c:164:16: note: Shadow variable fontforge-20220308/fontforge/autowidth2.c:260:39: style: Parameter 'class1' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/autowidth2.c:260:52: style: Parameter 'class2' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/bezctx_ff.c:162:49: style:inconclusive: Function 'bezctx_ff_close' argument 1 names different: declaration 'bc' definition 'z'. [funcArgNamesDifferent] fontforge-20220308/fontforge/bezctx_ff.h:18:25: note: Function 'bezctx_ff_close' argument 1 names different: declaration 'bc' definition 'z'. fontforge-20220308/fontforge/bezctx_ff.c:162:49: note: Function 'bezctx_ff_close' argument 1 names different: declaration 'bc' definition 'z'. fontforge-20220308/fontforge/bitmapchar.c:556:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] fontforge-20220308/fontforge/bitmapchar.c:52:25: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:53:29: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:54:29: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:55:23: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:56:31: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:57:32: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:62:25: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:64:34: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:65:34: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:66:35: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:67:37: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:69:27: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:70:27: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:71:27: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:72:30: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:105:24: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:106:27: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:107:33: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:108:36: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:109:28: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:110:29: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:111:28: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:188:34: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:258:34: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:276:60: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/bitmapchar.c:438:2: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] fontforge-20220308/fontforge/bitmapchar.c:782:6: style: Local variable 'gid' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/bitmapchar.c:650:40: note: Shadowed declaration fontforge-20220308/fontforge/bitmapchar.c:782:6: note: Shadow variable fontforge-20220308/fontforge/bitmapcontrol.c:259:41: style: Condition 'freetypecontext==NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/bitmapcontrol.c:225:27: note: Assignment 'freetypecontext=NULL', assigned value is 0 fontforge-20220308/fontforge/bitmapcontrol.c:231:10: note: Assuming condition is false fontforge-20220308/fontforge/bitmapcontrol.c:259:41: note: Condition 'freetypecontext==NULL' is always true fontforge-20220308/fontforge/bitmapcontrol.c:181:49: style: Parameter 'sizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/bitmapcontrol.c:290:58: style: Parameter 'sizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/bvedit.c:375:1: error: Memory leak: new.bitmap [memleak] fontforge-20220308/fontforge/bvedit.c:415:1: error: Memory leak: new.bitmap [memleak] fontforge-20220308/fontforge/bvedit.c:163:11: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/bvedit.c:60:14: note: Shadowed declaration fontforge-20220308/fontforge/bvedit.c:163:11: note: Shadow variable fontforge-20220308/fontforge/bvedit.c:517:7: style: Variable 'x' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/cvexport.c:126:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/fontforge/cvexport.c:128:7: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/fontforge/cvexport.c:139:52: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforge/cvexport.c:135:52: note: First condition fontforge-20220308/fontforge/cvexport.c:139:52: note: Second condition fontforge-20220308/fontforge/cvexport.c:83:11: style: Variable 'scale' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/cvimages.c:1084:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/cvimages.c:274:6: error: Common realloc mistake: 'spiros' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/cvimages.c:303:6: error: Common realloc mistake: 'spiros' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/cvimages.c:279:6: warning: Either the condition 'cur==NULL' is redundant or there is possible null pointer dereference: cur. [nullPointerRedundantCheck] fontforge-20220308/fontforge/cvimages.c:282:14: note: Assuming that condition 'cur==NULL' is not redundant fontforge-20220308/fontforge/cvimages.c:279:6: note: Null pointer dereference fontforge-20220308/fontforge/cvimages.c:280:6: warning: Either the condition 'cur==NULL' is redundant or there is possible null pointer dereference: cur. [nullPointerRedundantCheck] fontforge-20220308/fontforge/cvimages.c:282:14: note: Assuming that condition 'cur==NULL' is not redundant fontforge-20220308/fontforge/cvimages.c:280:6: note: Null pointer dereference fontforge-20220308/fontforge/cvimages.c:308:2: warning: Either the condition 'cur==NULL' is redundant or there is possible null pointer dereference: cur. [nullPointerRedundantCheck] fontforge-20220308/fontforge/cvimages.c:311:10: note: Assuming that condition 'cur==NULL' is not redundant fontforge-20220308/fontforge/cvimages.c:308:2: note: Null pointer dereference fontforge-20220308/fontforge/cvimages.c:309:2: warning: Either the condition 'cur==NULL' is redundant or there is possible null pointer dereference: cur. [nullPointerRedundantCheck] fontforge-20220308/fontforge/cvimages.c:311:10: note: Assuming that condition 'cur==NULL' is not redundant fontforge-20220308/fontforge/cvimages.c:309:2: note: Null pointer dereference fontforge-20220308/fontforge/cvimages.c:89:15: style: Variable 'pos' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/cvimages.c:83:9: note: pos is assigned fontforge-20220308/fontforge/cvimages.c:89:15: note: pos is overwritten fontforge-20220308/fontforge/cvimages.c:647:12: style: Variable 'spl->next' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/cvimages.c:646:12: note: spl->next is assigned fontforge-20220308/fontforge/cvimages.c:647:12: note: spl->next is overwritten fontforge-20220308/fontforge/cvimages.c:290:9: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/cvimages.c:509:5: style: Variable 'sp' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/cvimages.c:519:5: style: Variable 'sp' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/cvundoes.c:1948:9: style: Condition 'sc==NULL' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/cvundoes.c:2635:1: error: Memory leak: adjust [memleak] fontforge-20220308/fontforge/cvundoes.c:412:2: warning: Possible null pointer dereference: p [nullPointer] fontforge-20220308/fontforge/cvundoes.c:407:6: note: Assignment 'p=NULL', assigned value is 0 fontforge-20220308/fontforge/cvundoes.c:408:18: note: Assuming condition is false fontforge-20220308/fontforge/cvundoes.c:412:2: note: Null pointer dereference fontforge-20220308/fontforge/cvundoes.c:781:49: style:inconclusive: Function 'SCUndoSetLBearingChange' argument 2 names different: declaration 'lb' definition 'lbc'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2345:56: note: Function 'SCUndoSetLBearingChange' argument 2 names different: declaration 'lb' definition 'lbc'. fontforge-20220308/fontforge/cvundoes.c:781:49: note: Function 'SCUndoSetLBearingChange' argument 2 names different: declaration 'lb' definition 'lbc'. fontforge-20220308/fontforge/cvundoes.c:3450:48: style:inconclusive: Function 'FVCopy' argument 2 names different: declaration 'copytype' definition 'fullcopy'. [funcArgNamesDifferent] fontforge-20220308/fontforge/cvundoes.h:67:55: note: Function 'FVCopy' argument 2 names different: declaration 'copytype' definition 'fullcopy'. fontforge-20220308/fontforge/cvundoes.c:3450:48: note: Function 'FVCopy' argument 2 names different: declaration 'copytype' definition 'fullcopy'. fontforge-20220308/fontforge/cvundoes.c:3513:44: style:inconclusive: Function 'MVCopyChar' argument 2 names different: declaration 'bdf' definition 'mvbdf'. [funcArgNamesDifferent] fontforge-20220308/fontforge/baseviews.h:403:51: note: Function 'MVCopyChar' argument 2 names different: declaration 'bdf' definition 'mvbdf'. fontforge-20220308/fontforge/cvundoes.c:3513:44: note: Function 'MVCopyChar' argument 2 names different: declaration 'bdf' definition 'mvbdf'. fontforge-20220308/fontforge/cvundoes.c:3762:45: style:inconclusive: Function 'PasteIntoMV' argument 2 names different: declaration 'bdf' definition 'mvbdf'. [funcArgNamesDifferent] fontforge-20220308/fontforge/baseviews.h:404:52: note: Function 'PasteIntoMV' argument 2 names different: declaration 'bdf' definition 'mvbdf'. fontforge-20220308/fontforge/cvundoes.c:3762:45: note: Function 'PasteIntoMV' argument 2 names different: declaration 'bdf' definition 'mvbdf'. fontforge-20220308/fontforge/cvundoes.c:1836:24: style: Local variable 'new' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/cvundoes.c:1823:18: note: Shadowed declaration fontforge-20220308/fontforge/cvundoes.c:1836:24: note: Shadow variable fontforge-20220308/fontforge/cvundoes.c:2574:17: style: Local variable 'layer' shadows outer argument [shadowArgument] fontforge-20220308/fontforge/cvundoes.c:2570:42: note: Shadowed declaration fontforge-20220308/fontforge/cvundoes.c:2574:17: note: Shadow variable fontforge-20220308/fontforge/cvundoes.c:3646:19: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/cvundoes.c:3599:12: note: Shadowed declaration fontforge-20220308/fontforge/cvundoes.c:3646:19: note: Shadow variable fontforge-20220308/fontforge/cvundoes.c:1711:38: style: Parameter 'sf' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/cvundoes.c:2339:18: style: Parameter 'trans' can be declared as const array [constParameter] fontforge-20220308/fontforge/cvundoes.c:3833:48: style: Parameter 'sf' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/cvundoes.c:3802:9: style: Variable 'first' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/cvundoes.c:3820:8: style: Variable 'first' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/dumpbdf.c:406:6: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/dumpbdf.c:256:9: note: Shadowed declaration fontforge-20220308/fontforge/dumpbdf.c:406:6: note: Shadow variable fontforge-20220308/fontforge/dumppfa.c:2052:10: error: Invalid putc() argument nr 1. The value is -128 but the valid values are '0:'. [invalidFunctionArg] fontforge-20220308/fontforge/dumppfa.c:1288:9: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforge/dumppfa.c:1283:16: note: First condition fontforge-20220308/fontforge/dumppfa.c:1288:9: note: Second condition fontforge-20220308/fontforge/dumppfa.c:1555:15: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforge/dumppfa.c:1543:15: note: First condition fontforge-20220308/fontforge/dumppfa.c:1555:15: note: Second condition fontforge-20220308/fontforge/dumppfa.c:1800:49: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforge/dumppfa.c:1796:49: note: First condition fontforge-20220308/fontforge/dumppfa.c:1800:49: note: Second condition fontforge-20220308/fontforge/dumppfa.c:1064:30: style: Condition 'pdfopers' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/dumppfa.c:1074:27: style: Condition 'pdfopers' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/dumppfa.c:1077:28: style: Condition 'pdfopers' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/dumppfa.c:1079:30: style: Condition 'pdfopers' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/dumppfa.c:2393:11: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/dumppfa.c:1471:21: style: Local variable 'subrs' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/dumppfa.c:1215:29: note: Shadowed declaration fontforge-20220308/fontforge/dumppfa.c:1471:21: note: Shadow variable fontforge-20220308/fontforge/dumppfa.c:2407:18: style: Local variable 'subrs' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/dumppfa.c:1215:29: note: Shadowed declaration fontforge-20220308/fontforge/dumppfa.c:2407:18: note: Shadow variable fontforge-20220308/fontforge/dumppfa.c:2423:10: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/dumppfa.c:2404:11: note: Shadowed declaration fontforge-20220308/fontforge/dumppfa.c:2423:10: note: Shadow variable fontforge-20220308/fontforge/dumppfa.c:481:50: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/dumppfa.c:1232:13: style: Variable 'cnts' can be declared as const array [constVariable] fontforge-20220308/fontforge/dumppfa.c:1414:59: style: Parameter 'bluevalues' can be declared as const array [constParameter] fontforge-20220308/fontforge/dumppfa.c:1414:78: style: Parameter 'otherblues' can be declared as const array [constParameter] fontforge-20220308/fontforge/dumppfa.c:1945:43: error: Uninitialized variables: mb.minx, mb.maxx, mb.miny, mb.maxy [uninitvar] fontforge-20220308/fontforge/dumppfa.c:1939:14: note: Assuming condition is false fontforge-20220308/fontforge/dumppfa.c:1945:43: note: Uninitialized variables: mb.minx, mb.maxx, mb.miny, mb.maxy fontforge-20220308/fontforge/effects.c:474:4: error: Common realloc mistake: 'ts' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/effects.c:490:4: error: Common realloc mistake: 'ts' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/effects.c:559:9: style: Variable 'x.a' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/effects.c:566:9: style: Variable 'y.a' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/encoding.c:933:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/encoding.c:2497:84: style: Condition 'sf!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/encoding.c:1042:15: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] fontforge-20220308/fontforge/encoding.c:2020:24: error: Common realloc mistake: 'unencoded' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/encoding.c:2456:2: error: Common realloc mistake: 'glyphs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/encoding.c:1495:29: style:inconclusive: Function 'SFFlatten' argument 1 names different: declaration 'cidmaster' definition 'cidmasterpp'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2376:36: note: Function 'SFFlatten' argument 1 names different: declaration 'cidmaster' definition 'cidmasterpp'. fontforge-20220308/fontforge/encoding.c:1495:29: note: Function 'SFFlatten' argument 1 names different: declaration 'cidmaster' definition 'cidmasterpp'. fontforge-20220308/fontforge/encoding.c:1526:34: style:inconclusive: Function 'SFFlattenByCMap' argument 1 names different: declaration 'sf' definition 'sfpp'. [funcArgNamesDifferent] fontforge-20220308/fontforge/encoding.h:64:41: note: Function 'SFFlattenByCMap' argument 1 names different: declaration 'sf' definition 'sfpp'. fontforge-20220308/fontforge/encoding.c:1526:34: note: Function 'SFFlattenByCMap' argument 1 names different: declaration 'sf' definition 'sfpp'. fontforge-20220308/fontforge/encoding.c:924:8: style: Local variable 'pt' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/encoding.c:917:11: note: Shadowed declaration fontforge-20220308/fontforge/encoding.c:924:8: note: Shadow variable fontforge-20220308/fontforge/encoding.c:2470:12: style: Local variable 'glyphs' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/encoding.c:2436:18: note: Shadowed declaration fontforge-20220308/fontforge/encoding.c:2470:12: note: Shadow variable fontforge-20220308/fontforge/encoding.c:2563:22: style: Variable 'from[fromlen++]' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:5854:16: warning: Either the condition 'cnt<=sizeof(baselines)/sizeof(baselines[0])' is redundant or the array 'baselines[50]' is accessed at index 50, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforge/featurefile.c:5853:11: note: Assuming that condition 'cnt<=sizeof(baselines)/sizeof(baselines[0])' is not redundant fontforge-20220308/fontforge/featurefile.c:5854:16: note: Array index out of bounds fontforge-20220308/fontforge/featurefile.c:6460:25: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR != '\0'' is always true. [redundantCondition] fontforge-20220308/fontforge/featurefile.c:2114:31: style: Condition 'output==0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:2111:18: note: Assignment 'output=0', assigned value is 0 fontforge-20220308/fontforge/featurefile.c:2112:27: note: Assuming condition is false fontforge-20220308/fontforge/featurefile.c:2114:31: note: Condition 'output==0' is always true fontforge-20220308/fontforge/featurefile.c:4563:24: style: Condition 'g->mark_count!=0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:4556:20: note: Assuming that condition 'g->mark_count==0' is not redundant fontforge-20220308/fontforge/featurefile.c:4563:24: note: Condition 'g->mark_count!=0' is always true fontforge-20220308/fontforge/featurefile.c:4849:26: style: Condition 'g->next!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:4849:49: style: Condition 'g->mark_count==g->next->mark_count' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:4844:55: note: Assuming that condition 'g->next->mark_count!=g->mark_count' is not redundant fontforge-20220308/fontforge/featurefile.c:4849:49: note: Condition 'g->mark_count==g->next->mark_count' is always true fontforge-20220308/fontforge/featurefile.c:5289:16: style: Condition 'tok->type!=tk_char' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:5231:19: note: Assuming that condition 'tok->type!=tk_char' is not redundant fontforge-20220308/fontforge/featurefile.c:5249:20: note: Assuming condition is false fontforge-20220308/fontforge/featurefile.c:5289:16: note: Condition 'tok->type!=tk_char' is always false fontforge-20220308/fontforge/featurefile.c:6187:22: style: Condition 'type!=ot_undef' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:6187:46: style: Condition 'found_type!=type' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:6810:19: style: Condition 'mcnt!=0' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:6786:19: note: Assignment 'mcnt=0', assigned value is 0 fontforge-20220308/fontforge/featurefile.c:6810:19: note: Condition 'mcnt!=0' is always false fontforge-20220308/fontforge/featurefile.c:1368:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/featurefile.c:1093:5: error: Common realloc mistake: 'marks' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/featurefile.c:5275:7: error: Common realloc mistake: 'start' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/featurefile.c:5743:3: error: Common realloc mistake: 'carets' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/featurefile.c:6382:4: error: Common realloc mistake: 'classes' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/featurefile.c:6383:4: error: Common realloc mistake: 'acs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/featurefile.c:6329:6: warning: Possible null pointer dereference: aplast [nullPointer] fontforge-20220308/fontforge/featurefile.c:6324:15: note: Assignment 'aplast=NULL', assigned value is 0 fontforge-20220308/fontforge/featurefile.c:6325:27: note: Assuming condition is false fontforge-20220308/fontforge/featurefile.c:6329:6: note: Null pointer dereference fontforge-20220308/fontforge/featurefile.c:6417:3: warning: Possible null pointer dereference: aplast [nullPointer] fontforge-20220308/fontforge/featurefile.c:6412:12: note: Assignment 'aplast=NULL', assigned value is 0 fontforge-20220308/fontforge/featurefile.c:6413:34: note: Assuming condition is false fontforge-20220308/fontforge/featurefile.c:6417:3: note: Null pointer dereference fontforge-20220308/fontforge/featurefile.c:7088:13: style: Variable 'f' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/featurefile.c:7087:8: note: f is assigned fontforge-20220308/fontforge/featurefile.c:7088:13: note: f is overwritten fontforge-20220308/fontforge/featurefile.c:5238:15: style: The comparison 'platform == 3' is always true. [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:5198:20: note: 'platform' is assigned value '3' here. fontforge-20220308/fontforge/featurefile.c:5238:15: note: The comparison 'platform == 3' is always true. fontforge-20220308/fontforge/featurefile.c:5253:25: style: The comparison 'platform == 3' is always true. [knownConditionTrueFalse] fontforge-20220308/fontforge/featurefile.c:5198:20: note: 'platform' is assigned value '3' here. fontforge-20220308/fontforge/featurefile.c:5253:25: note: The comparison 'platform == 3' is always true. fontforge-20220308/fontforge/featurefile.c:801:11: style: Local variable 'len' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/featurefile.c:768:10: note: Shadowed declaration fontforge-20220308/fontforge/featurefile.c:801:11: note: Shadow variable fontforge-20220308/fontforge/featurefile.c:802:13: style: Local variable 'start' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/featurefile.c:697:11: note: Shadowed declaration fontforge-20220308/fontforge/featurefile.c:802:13: note: Shadow variable fontforge-20220308/fontforge/featurefile.c:1655:7: style: Local variable 'pst' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/featurefile.c:1556:10: note: Shadowed declaration fontforge-20220308/fontforge/featurefile.c:1655:7: note: Shadow variable fontforge-20220308/fontforge/featurefile.c:247:22: style: Parameter 'otl' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/featurefile.c:475:62: style: Parameter 'otl' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/featurefile.c:488:64: style: Parameter 'otl' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/featurefile.c:522:57: style: Parameter 'otl' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/featurefile.c:568:64: style: Parameter 'otl' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/featurefile.c:1009:61: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/featurefile.c:1020:89: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/featurefile.c:3824:5: error: Uninitialized variable: cur [legacyUninitvar] fontforge-20220308/fontforge/featurefile.c:3888:5: error: Uninitialized variable: cur [legacyUninitvar] fontforge-20220308/fontforge/featurefile.c:1620:7: style: Variable 'k' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:3864:16: style: Variable 'apm_max' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:4598:4: style: Variable 'g' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:5025:9: style: Variable 'enumer' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:5902:10: style: Variable 'err' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:6666:11: style: Variable 'lastkp' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:6670:11: style: Variable 'lastkp' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:6688:15: style: Variable 'lastpst' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:6730:10: style: Variable 'lastkc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/featurefile.c:6734:10: style: Variable 'lastkc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/flaglist.c:32:38: style:inconclusive: Function 'FindFlagByName' argument 1 names different: declaration 'flaglist' definition 'flags'. [funcArgNamesDifferent] fontforge-20220308/fontforge/flaglist.h:37:45: note: Function 'FindFlagByName' argument 1 names different: declaration 'flaglist' definition 'flags'. fontforge-20220308/fontforge/flaglist.c:32:38: note: Function 'FindFlagByName' argument 1 names different: declaration 'flaglist' definition 'flags'. fontforge-20220308/fontforge/flaglist.c:42:46: style:inconclusive: Function 'FindNameOfFlag' argument 1 names different: declaration 'flaglist' definition 'flags'. [funcArgNamesDifferent] fontforge-20220308/fontforge/flaglist.h:38:53: note: Function 'FindNameOfFlag' argument 1 names different: declaration 'flaglist' definition 'flags'. fontforge-20220308/fontforge/flaglist.c:42:46: note: Function 'FindNameOfFlag' argument 1 names different: declaration 'flaglist' definition 'flags'. fontforge-20220308/fontforge/fontviewbase.c:1516:14: style: Local variable 'map' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/fontviewbase.c:1495:13: note: Shadowed declaration fontforge-20220308/fontforge/fontviewbase.c:1516:14: note: Shadow variable fontforge-20220308/fontforge/fontviewbase.c:468:33: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/fontviewbase.c:482:67: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/fontviewbase.c:498:52: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/fontviewbase.c:512:55: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/fontviewbase.c:530:47: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/fontviewbase.c:606:106: style: Parameter 'sel' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/fontviewbase.c:1396:59: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/fontviewbase.c:1898:28: style: Parameter 'name' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/fontviewbase.c:1911:26: style: Parameter 'name' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/fontviewbase.c:2057:38: style: Parameter 'sf' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/freetype.c:726:1: error: Memory leak: ret.bitmap [memleak] fontforge-20220308/fontforge/freetype.c:237:15: style: Local variable 'sc' shadows outer argument [shadowArgument] fontforge-20220308/fontforge/freetype.c:163:29: note: Shadowed declaration fontforge-20220308/fontforge/freetype.c:237:15: note: Shadow variable fontforge-20220308/fontforge/freetype.c:910:11: style: Parameter 'clipmask' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/ftdelta.c:74:14: style: Variable 'distance' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/fvcomposite.c:1823:33: warning: Either the condition 'basech<=0x52f' is redundant or isupper() argument nr 1 can have invalid value. The value is 1328 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/fvcomposite.c:1823:68: note: Assuming that condition 'basech<=0x52f' is not redundant fontforge-20220308/fontforge/fvcomposite.c:1823:33: note: Invalid argument fontforge-20220308/fontforge/fvcomposite.c:1837:19: warning: Either the condition 'basech<=0x52f' is redundant or isupper() argument nr 1 can have invalid value. The value is 1327 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/fvcomposite.c:1836:30: note: Assuming that condition 'basech<=0x52f' is not redundant fontforge-20220308/fontforge/fvcomposite.c:1837:19: note: Invalid argument fontforge-20220308/fontforge/fvcomposite.c:1841:15: warning: Either the condition 'basech<=0x52f' is redundant or isupper() argument nr 1 can have invalid value. The value is 1328 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/fvcomposite.c:1836:30: note: Assuming that condition 'basech<=0x52f' is not redundant fontforge-20220308/fontforge/fvcomposite.c:1841:15: note: Invalid argument fontforge-20220308/fontforge/fvcomposite.c:2168:52: style: Condition 'sc->unicodeenc==0x013d' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/fvcomposite.c:2169:19: style: Condition 'sc->unicodeenc==0x013e' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/fvcomposite.c:1911:15: warning: Either the condition 'basersc!=NULL' is redundant or there is possible null pointer dereference: sc1. [nullPointerRedundantCheck] fontforge-20220308/fontforge/fvcomposite.c:2109:18: note: Assuming that condition 'basersc!=NULL' is not redundant fontforge-20220308/fontforge/fvcomposite.c:2082:34: note: Calling function 'AnchorClassMatch', 1st argument 'basersc' value is 0 fontforge-20220308/fontforge/fvcomposite.c:1911:15: note: Null pointer dereference fontforge-20220308/fontforge/fvcomposite.c:2776:5: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] fontforge-20220308/fontforge/fvcomposite.c:1826:7: style: Local variable 'buffer' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/fvcomposite.c:1769:10: note: Shadowed declaration fontforge-20220308/fontforge/fvcomposite.c:1826:7: note: Shadow variable fontforge-20220308/fontforge/fvcomposite.c:2572:12: style: Local variable 'end' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/fvcomposite.c:2557:11: note: Shadowed declaration fontforge-20220308/fontforge/fvcomposite.c:2572:12: note: Shadow variable fontforge-20220308/fontforge/fvcomposite.c:2585:12: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/fvcomposite.c:2555:23: note: Shadowed declaration fontforge-20220308/fontforge/fvcomposite.c:2585:12: note: Shadow variable fontforge-20220308/fontforge/fvcomposite.c:1907:76: style: Parameter 'restrict_' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/fvfonts.c:612:31: style: Condition 't_bdf->pixelsize>f_bdf->pixelsize' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/fvfonts.c:601:24: note: Assuming that condition 't_bdf->pixelsize==f_bdf->pixelsize' is not redundant fontforge-20220308/fontforge/fvfonts.c:612:31: note: Condition 't_bdf->pixelsize>f_bdf->pixelsize' is always true fontforge-20220308/fontforge/fvfonts.c:593:1: error: Memory leak: nbc.bitmap [memleak] fontforge-20220308/fontforge/fvfonts.c:1046:10: style: Redundant initialization for 'base'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/fontforge/fvfonts.c:1044:14: note: base is initialized fontforge-20220308/fontforge/fvfonts.c:1046:10: note: base is overwritten fontforge-20220308/fontforge/fvfonts.c:558:46: style: Parameter 'mapping' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/fvfonts.c:1041:7: style: Parameter 'mapping' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/fvimportbdf.c:948:13: style: Condition 'ch>=gf_paint_0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/fvimportbdf.c:947:9: note: Assuming that condition 'ch>=gf_paint_0' is not redundant fontforge-20220308/fontforge/fvimportbdf.c:948:13: note: Condition 'ch>=gf_paint_0' is always true fontforge-20220308/fontforge/fvimportbdf.c:1494:41: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/fvimportbdf.c:1509:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] fontforge-20220308/fontforge/fvimportbdf.c:387:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/fvimportbdf.c:294:9: note: Shadowed declaration fontforge-20220308/fontforge/fvimportbdf.c:387:7: note: Shadow variable fontforge-20220308/fontforge/fvimportbdf.c:527:10: style: Local variable 'cnt' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/fvimportbdf.c:510:39: note: Shadowed declaration fontforge-20220308/fontforge/fvimportbdf.c:527:10: note: Shadow variable fontforge-20220308/fontforge/fvimportbdf.c:2170:7: style: Local variable 'ch' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/fvimportbdf.c:2036:9: note: Shadowed declaration fontforge-20220308/fontforge/fvimportbdf.c:2170:7: note: Shadow variable fontforge-20220308/fontforge/fvimportbdf.c:667:33: error: Uninitialized variable: enc [uninitvar] fontforge-20220308/fontforge/fvimportbdf.c:519:42: note: Assuming condition is false fontforge-20220308/fontforge/fvimportbdf.c:667:33: note: Uninitialized variable: enc fontforge-20220308/fontforge/fvmetrics.c:46:14: style: Variable 'width' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/glyphcomp.c:349:46: style:inconclusive: Function 'SSsCompare' argument 5 names different: declaration 'hmfail' definition '_hmfail'. [funcArgNamesDifferent] fontforge-20220308/fontforge/glyphcomp.h:53:124: note: Function 'SSsCompare' argument 5 names different: declaration 'hmfail' definition '_hmfail'. fontforge-20220308/fontforge/glyphcomp.c:349:46: note: Function 'SSsCompare' argument 5 names different: declaration 'hmfail' definition '_hmfail'. fontforge-20220308/fontforge/glyphcomp.c:121:19: style: Variable 'offset' can be declared as const array [constVariable] fontforge-20220308/fontforge/glyphcomp.c:1695:78: style: Parameter 'otl2' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/glyphcomp.c:1160:43: error: Uninitialized variable: val [uninitvar] fontforge-20220308/fontforge/glyphcomp.c:1096:34: note: Assuming condition is true fontforge-20220308/fontforge/glyphcomp.c:1160:43: note: Uninitialized variable: val fontforge-20220308/fontforge/glyphcomp.c:1162:6: error: Uninitialized variables: hmfail.me, hmfail.nextcp, hmfail.prevcp, hmfail.nonextcp, hmfail.noprevcp, hmfail.nextcpdef, hmfail.prevcpdef, hmfail.selected, hmfail.nextcpselected, hmfail.prevcpselected, hmfail.pointtype, hmfail.isintersection, hmfail.flexy, hmfail.flexx, hmfail.roundx, hmfail.roundy, hmfail.dontinterpolate, hmfail.ticked, hmfail.watched, hmfail.ptindex, hmfail.ttfindex, hmfail.nextcpindex, hmfail.next, hmfail.prev, hmfail.hintmask, hmfail.name [uninitvar] fontforge-20220308/fontforge/glyphcomp.c:1096:34: note: Assuming condition is true fontforge-20220308/fontforge/glyphcomp.c:1162:6: note: Uninitialized variables: hmfail.me, hmfail.nextcp, hmfail.prevcp, hmfail.nonextcp, hmfail.noprevcp, hmfail.nextcpdef, hmfail.prevcpdef, hmfail.selected, hmfail.nextcpselected, hmfail.prevcpselected, hmfail.pointtype, hmfail.isintersection, hmfail.flexy, hmfail.flexx, hmfail.roundx, hmfail.roundy, hmfail.dontinterpolate, hmfail.ticked, hmfail.watched, hmfail.ptindex, hmfail.ttfindex, hmfail.nextcpindex, hmfail.next, hmfail.prev, hmfail.hintmask, hmfail.name fontforge-20220308/fontforge/glyphcomp.c:938:16: style: struct member 'font_diff::scnt2' is never used. [unusedStructMember] fontforge-20220308/fontforge/groups.c:103:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/groups.c:229:3: error: Common realloc mistake: 'glist' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/ikarus.c:157:19: style: Variable 'urwtable[402]' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/ikarus.c:156:19: note: urwtable[402] is assigned fontforge-20220308/fontforge/ikarus.c:157:19: note: urwtable[402] is overwritten fontforge-20220308/fontforge/ikarus.c:417:11: style: Parameter 'ptype' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/ikarus.c:481:13: style: Variable 'bb.maxx' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/ikarus.c:483:13: style: Variable 'bb.maxy' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/langfreq.c:2226:27: style:inconclusive: Function 'RandomParaFromScriptLang' argument 4 names different: declaration 'freq' definition 'lf'. [funcArgNamesDifferent] fontforge-20220308/fontforge/langfreq.h:51:112: note: Function 'RandomParaFromScriptLang' argument 4 names different: declaration 'freq' definition 'lf'. fontforge-20220308/fontforge/langfreq.c:2226:27: note: Function 'RandomParaFromScriptLang' argument 4 names different: declaration 'freq' definition 'lf'. fontforge-20220308/fontforge/langfreq.c:2333:11: error: Uninitialized variable: scripts [uninitvar] fontforge-20220308/fontforge/langfreq.c:2345:26: note: Calling function 'SF2Scripts', 2nd argument 'scripts' value is fontforge-20220308/fontforge/langfreq.c:2312:21: note: Assuming condition is Assuming condition is false fontforge-20220308/fontforge/langfreq.c:2333:11: note: Uninitialized variable: scripts fontforge-20220308/fontforge/lookups.c:3162:15: style: Condition 'glyph_class==3' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/lookups.c:3163:15: style: Condition 'glyph_class==3' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/lookups.c:454:8: error: Common realloc mistake: 'scripts' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:469:2: error: Common realloc mistake: 'scripts' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:505:9: error: Common realloc mistake: 'langs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:532:2: error: Common realloc mistake: 'langs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:562:8: error: Common realloc mistake: 'features' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:588:9: error: Common realloc mistake: 'features' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:605:6: error: Common realloc mistake: 'features' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:619:2: error: Common realloc mistake: 'features' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:646:9: error: Common realloc mistake: 'lookups' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:664:2: error: Common realloc mistake: 'lookups' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:4341:7: error: Common realloc mistake: 'names' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:5015:3: error: Common realloc mistake: 'parsed' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/lookups.c:2730:13: style:inconclusive: Function 'OTLookupsCopyInto' argument 3 names different: declaration 'from_list' definition 'list'. [funcArgNamesDifferent] fontforge-20220308/fontforge/lookups.h:90:84: note: Function 'OTLookupsCopyInto' argument 3 names different: declaration 'from_list' definition 'list'. fontforge-20220308/fontforge/lookups.c:2730:13: note: Function 'OTLookupsCopyInto' argument 3 names different: declaration 'from_list' definition 'list'. fontforge-20220308/fontforge/lookups.c:770:82: style: Parameter 'subtable' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:984:66: style: Parameter 'ac' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:1006:61: style: Parameter 'dying' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:2302:54: style: Parameter 'ap' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:2313:26: style: Parameter 'from_sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:2398:77: style: Parameter 'from_sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:2594:72: style: Parameter 'before' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:3073:52: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:3338:57: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:3362:55: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:3411:54: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:3516:56: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:3802:65: style: Parameter 'flist' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/lookups.c:2760:14: style: struct member 'lookup_data::script' is never used. [unusedStructMember] fontforge-20220308/fontforge/lookups.c:1700:26: style: Variable 'script_tag' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/lookups.c:2043:16: style: Variable 'pstprev' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/lookups.c:3445:11: style: Variable 'lpos' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/macbinary.c:2497:1: error: Memory leak: font.fontImage [memleak] fontforge-20220308/fontforge/macbinary.c:2497:1: error: Memory leak: font.locs [memleak] fontforge-20220308/fontforge/macbinary.c:2497:1: error: Memory leak: font.offsetWidths [memleak] fontforge-20220308/fontforge/macbinary.c:775:15: style: Variable 'stylecode' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/macbinary.c:774:15: note: stylecode is assigned fontforge-20220308/fontforge/macbinary.c:775:15: note: stylecode is overwritten fontforge-20220308/fontforge/macbinary.c:2811:6: style: Variable 'len' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/macbinary.c:2810:6: note: len is assigned fontforge-20220308/fontforge/macbinary.c:2811:6: note: len is overwritten fontforge-20220308/fontforge/macbinary.c:795:19: style: Same expression on both sides of '-'. [duplicateExpression] fontforge-20220308/fontforge/macbinary.c:799:19: style: Same expression on both sides of '-'. [duplicateExpression] fontforge-20220308/fontforge/macbinary.c:808:19: style: Same expression on both sides of '-'. [duplicateExpression] fontforge-20220308/fontforge/macbinary.c:820:16: style: Same expression on both sides of '-'. [duplicateExpression] fontforge-20220308/fontforge/macbinary.c:1107:19: style: Same expression on both sides of '-'. [duplicateExpression] fontforge-20220308/fontforge/macbinary.c:2963:69: style: Checking if unsigned expression 'header[1]' is less than zero. [unsignedLessThanZero] fontforge-20220308/fontforge/macbinary.c:729:50: style:inconclusive: Function 'MacStyleCode' argument 2 names different: declaration 'psstyle' definition 'psstylecode'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2333:57: note: Function 'MacStyleCode' argument 2 names different: declaration 'psstyle' definition 'psstylecode'. fontforge-20220308/fontforge/macbinary.c:729:50: note: Function 'MacStyleCode' argument 2 names different: declaration 'psstyle' definition 'psstylecode'. fontforge-20220308/fontforge/macbinary.c:1571:20: style:inconclusive: Function 'WriteMacPSFont' argument 5 names different: declaration 'enc' definition 'map'. [funcArgNamesDifferent] fontforge-20220308/fontforge/macbinary.h:10:102: note: Function 'WriteMacPSFont' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/macbinary.c:1571:20: note: Function 'WriteMacPSFont' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/macbinary.c:1653:58: style:inconclusive: Function 'WriteMacTTFFont' argument 7 names different: declaration 'enc' definition 'map'. [funcArgNamesDifferent] fontforge-20220308/fontforge/macbinary.h:11:142: note: Function 'WriteMacTTFFont' argument 7 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/macbinary.c:1653:58: note: Function 'WriteMacTTFFont' argument 7 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/macbinary.c:1725:10: style:inconclusive: Function 'WriteMacBitmaps' argument 5 names different: declaration 'enc' definition 'map'. [funcArgNamesDifferent] fontforge-20220308/fontforge/macbinary.h:8:98: note: Function 'WriteMacBitmaps' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/macbinary.c:1725:10: note: Function 'WriteMacBitmaps' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/macbinary.c:1383:8: style: Local variable 'pt' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/macbinary.c:1377:51: note: Shadowed declaration fontforge-20220308/fontforge/macbinary.c:1383:8: note: Shadow variable fontforge-20220308/fontforge/macbinary.c:2103:8: style: Local variable 'buffer' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/macbinary.c:2081:11: note: Shadowed declaration fontforge-20220308/fontforge/macbinary.c:2103:8: note: Shadow variable fontforge-20220308/fontforge/macbinary.c:528:71: style: Parameter 'sizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/macbinary.c:598:11: style: Parameter 'sizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/macbinary.c:746:11: style: Parameter 'sizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/macbinary.c:2554:43: style: Parameter 'styles' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/macbinary.c:2647:23: error: Uninitialized variable: fonds [uninitvar] fontforge-20220308/fontforge/macbinary.c:2612:12: note: Assuming condition is false fontforge-20220308/fontforge/macbinary.c:2647:23: note: Uninitialized variable: fonds fontforge-20220308/fontforge/macbinary.c:2647:36: error: Uninitialized variable: styles [uninitvar] fontforge-20220308/fontforge/macbinary.c:2612:12: note: Assuming condition is false fontforge-20220308/fontforge/macbinary.c:2647:36: note: Uninitialized variable: styles fontforge-20220308/fontforge/macbinary.c:497:18: style: Variable 'width' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/macbinary.c:1087:16: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/macbinary.c:1394:13: style: Variable 'buffer[63]' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/macbinary.c:2011:21: style: Variable 'ch2' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/macbinary.c:2288:15: style: Variable 'rname' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/mem.c:34:26: style: Parameter 'data' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/mem.c:44:24: style: Parameter 'data' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/mm.c:250:40: style: Parameter 'oldkp' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/mm.c:691:26: style: Parameter 'weights' can be declared as const array [constParameter] fontforge-20220308/fontforge/namelist.c:714:24: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/namelist.c:355:13: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/namelist.c:855:72: style: Parameter 'start' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/namelist.c:49:9: style: struct member 'psaltnames::provenance' is never used. [unusedStructMember] fontforge-20220308/fontforge/namelist.c:438:14: style: Variable 'len' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/namelist.c:821:10: style: Variable 'sc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/nonlineartrans.c:804:24: style:inconclusive: Function 'SPLPoV' argument 1 names different: declaration 'spl' definition 'base'. [funcArgNamesDifferent] fontforge-20220308/fontforge/nonlineartrans.h:82:31: note: Function 'SPLPoV' argument 1 names different: declaration 'spl' definition 'base'. fontforge-20220308/fontforge/nonlineartrans.c:804:24: note: Function 'SPLPoV' argument 1 names different: declaration 'spl' definition 'base'. fontforge-20220308/fontforge/nonlineartrans.c:555:38: error: Uninitialized struct member: delta.x [uninitStructMember] fontforge-20220308/fontforge/nonlineartrans.c:556:38: error: Uninitialized struct member: delta.y [uninitStructMember] fontforge-20220308/fontforge/nonlineartrans.c:863:25: error: Uninitialized variable: layer [legacyUninitvar] fontforge-20220308/fontforge/noprefs.c:609:8: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/noprefs.c:610:12: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/noprefs.c:611:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/noprefs.c:185:10: style: struct member 'prefs_list::mn' is never used. [unusedStructMember] fontforge-20220308/fontforge/noprefs.c:186:19: style: struct member 'prefs_list::enums' is never used. [unusedStructMember] fontforge-20220308/fontforge/noprefs.c:187:18: style: struct member 'prefs_list::dontdisplay' is never used. [unusedStructMember] fontforge-20220308/fontforge/noprefs.c:188:11: style: struct member 'prefs_list::popup' is never used. [unusedStructMember] fontforge-20220308/fontforge/nowakowskittfinstr.c:3078:37: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3078:23: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3078:37: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3079:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3079:23: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3079:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3330:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3330:19: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3330:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3331:34: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3331:19: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3331:34: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3332:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3332:19: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3332:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3333:34: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3333:19: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3333:34: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3661:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3661:11: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3661:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3662:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3662:11: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3662:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3663:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3663:11: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3663:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3664:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3664:11: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3664:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3717:53: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3717:21: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3717:53: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3718:55: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:3718:16: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:3718:55: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:4930:37: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/nowakowskittfinstr.c:4930:23: note: Address of variable taken here. fontforge-20220308/fontforge/nowakowskittfinstr.c:4930:37: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/nowakowskittfinstr.c:3269:19: style: Expression is always true because 'else if' condition is opposite to previous condition at line 3267. [multiCondition] fontforge-20220308/fontforge/nowakowskittfinstr.c:3267:19: note: first condition fontforge-20220308/fontforge/nowakowskittfinstr.c:3269:19: note: else if condition is opposite to first condition fontforge-20220308/fontforge/nowakowskittfinstr.c:3759:50: style: Condition 'prev!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/nowakowskittfinstr.c:430:17: error: Common realloc mistake: 'results' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/nowakowskittfinstr.c:730:5: error: Common realloc mistake: 'cvt' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/nowakowskittfinstr.c:2666:23: error: Common realloc mistake: 'others' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/nowakowskittfinstr.c:4242:29: style: Variable 'psidx' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/nowakowskittfinstr.c:4239:19: note: psidx is assigned fontforge-20220308/fontforge/nowakowskittfinstr.c:4242:29: note: psidx is overwritten fontforge-20220308/fontforge/nowakowskittfinstr.c:4243:29: style: Variable 'nsidx' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/nowakowskittfinstr.c:4239:27: note: nsidx is assigned fontforge-20220308/fontforge/nowakowskittfinstr.c:4243:29: note: nsidx is overwritten fontforge-20220308/fontforge/nowakowskittfinstr.c:4282:57: style: Parameter 'touched' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/nowakowskittfinstr.c:4311:14: style: Parameter 'touched' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/nowakowskittfinstr.c:3511:14: style: Variable 'base' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/nowakowskittfinstr.c:3512:17: style: Variable 'advance' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/nowakowskittfinstr.c:4564:47: style: Variable 'pushpts[1]' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/nowakowskittfinstr.c:4965:16: style: Variable 'rpoint' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/othersubrs.c:548:3: error: Common realloc mistake: 'lines' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/palmfonts.c:738:9: error: Invalid putc() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] fontforge-20220308/fontforge/palmfonts.c:739:9: error: Invalid putc() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] fontforge-20220308/fontforge/palmfonts.c:156:10: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/palmfonts.c:122:27: note: Shadowed declaration fontforge-20220308/fontforge/palmfonts.c:156:10: note: Shadow variable fontforge-20220308/fontforge/palmfonts.c:291:3: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/parsepdf.c:1770:43: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/parsepdf.c:1771:43: warning: %lx in format string (no. 1) requires 'unsigned long *' but the argument type is 'signed long *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/parsepdf.c:1779:7: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/parsepdf.c:1786:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/parsepdf.c:1818:43: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/parsepdf.c:1819:43: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/parsepdf.c:1820:43: warning: %lx in format string (no. 1) requires 'unsigned long *' but the argument type is 'signed long *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/parsepdf.c:1823:7: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/parsepdf.c:1827:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforge/parsepdf.c:1695:5: error: Common realloc mistake: 'name' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/parsepdf.c:1698:2: error: Common realloc mistake: 'name' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/parsepdf.c:926:5: style: Variable 'pt' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/parsepdf.c:905:9: note: pt is assigned fontforge-20220308/fontforge/parsepdf.c:926:5: note: pt is overwritten fontforge-20220308/fontforge/parsepdf.c:926:5: style: Variable 'pt' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/parsepdf.c:908:9: note: pt is assigned fontforge-20220308/fontforge/parsepdf.c:926:5: note: pt is overwritten fontforge-20220308/fontforge/parsepdf.c:926:5: style: Variable 'pt' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/parsepdf.c:916:9: note: pt is assigned fontforge-20220308/fontforge/parsepdf.c:926:5: note: pt is overwritten fontforge-20220308/fontforge/parsepdf.c:926:5: style: Variable 'pt' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/parsepdf.c:919:9: note: pt is assigned fontforge-20220308/fontforge/parsepdf.c:926:5: note: pt is overwritten fontforge-20220308/fontforge/parsepdf.c:1995:12: style: Local variable 'fd' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsepdf.c:1958:9: note: Shadowed declaration fontforge-20220308/fontforge/parsepdf.c:1995:12: note: Shadow variable fontforge-20220308/fontforge/parsepdf.c:1218:60: style: Parameter 'trans' can be declared as const array [constParameter] fontforge-20220308/fontforge/parsepdf.c:1687:51: style: Parameter 'mappings' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsepdf.c:1052:11: error: Uninitialized variable: gen [uninitvar] fontforge-20220308/fontforge/parsepdf.c:961:22: note: Assuming condition is false fontforge-20220308/fontforge/parsepdf.c:1052:11: note: Uninitialized variable: gen fontforge-20220308/fontforge/parsepdf.c:1053:9: error: Uninitialized variable: ret [uninitvar] fontforge-20220308/fontforge/parsepdf.c:961:22: note: Assuming condition is false fontforge-20220308/fontforge/parsepdf.c:1053:9: note: Uninitialized variable: ret fontforge-20220308/fontforge/parsepdf.c:885:13: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/parsepdf.c:955:14: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/parsepfa.c:1361:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] fontforge-20220308/fontforge/parsepfa.c:1429:14: style: Condition 'instring' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/parsepfa.c:965:3: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/parsepfa.c:1287:8: style: Redundant initialization for 'index'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/fontforge/parsepfa.c:1278:12: note: index is initialized fontforge-20220308/fontforge/parsepfa.c:1287:8: note: index is overwritten fontforge-20220308/fontforge/parsepfa.c:2291:6: style: Variable 'ch1' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/parsepfa.c:2285:6: note: ch1 is assigned fontforge-20220308/fontforge/parsepfa.c:2291:6: note: ch1 is overwritten fontforge-20220308/fontforge/parsepfa.c:1225:20: style: Local variable 'r' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsepfa.c:1205:16: note: Shadowed declaration fontforge-20220308/fontforge/parsepfa.c:1225:20: note: Shadow variable fontforge-20220308/fontforge/parsepfa.c:1773:12: style: Local variable 'pt' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsepfa.c:1495:24: note: Shadowed declaration fontforge-20220308/fontforge/parsepfa.c:1773:12: note: Shadow variable fontforge-20220308/fontforge/parsepfa.c:2372:20: style: Local variable 'r' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsepfa.c:1205:16: note: Shadowed declaration fontforge-20220308/fontforge/parsepfa.c:2372:20: note: Shadow variable fontforge-20220308/fontforge/parsepfa.c:1079:48: style: Parameter 'end' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsepfa.c:2383:7: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/parsepfa.c:2395:7: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/parsepfa.c:1361:8: style: Variable 'pt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/parsepfa.c:2387:12: style: Variable 'plain' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/parsettf.c:4411:24: style: Expression is always false because 'else if' condition matches previous condition at line 4408. [multiCondition] fontforge-20220308/fontforge/parsettf.c:5561:47: style: Redundant condition: loaded_fonts_same_as_new. '!A || (A && B)' is equivalent to '!A || B' [redundantCondition] fontforge-20220308/fontforge/parsettf.c:1887:8: style: Condition 'last_off' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/parsettf.c:3373:18: warning: Either the condition 'info!=NULL' is redundant or there is possible null pointer dereference: info. [nullPointerRedundantCheck] fontforge-20220308/fontforge/parsettf.c:3421:15: note: Assuming that condition 'info!=NULL' is not redundant fontforge-20220308/fontforge/parsettf.c:3373:18: note: Null pointer dereference fontforge-20220308/fontforge/parsettf.c:5104:43: style: Same value in both branches of ternary operator. [duplicateValueTernary] fontforge-20220308/fontforge/parsettf.c:4374:19: style: Local variable 'sc' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettf.c:4352:17: note: Shadowed declaration fontforge-20220308/fontforge/parsettf.c:4374:19: note: Shadow variable fontforge-20220308/fontforge/parsettf.c:4425:16: style: Local variable 'sc' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettf.c:4352:17: note: Shadowed declaration fontforge-20220308/fontforge/parsettf.c:4425:16: note: Shadow variable fontforge-20220308/fontforge/parsettf.c:4563:16: style: Local variable 'ask_user_for_cmap' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettf.c:64:5: note: Shadowed declaration fontforge-20220308/fontforge/parsettf.c:4563:16: note: Shadow variable fontforge-20220308/fontforge/parsettf.c:4815:8: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettf.c:4560:15: note: Shadowed declaration fontforge-20220308/fontforge/parsettf.c:4815:8: note: Shadow variable fontforge-20220308/fontforge/parsettf.c:4957:8: style: Local variable 'enc' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettf.c:4544:15: note: Shadowed declaration fontforge-20220308/fontforge/parsettf.c:4957:8: note: Shadow variable fontforge-20220308/fontforge/parsettf.c:1277:9: style: Variable 'date1970' can be declared as const array [constVariable] fontforge-20220308/fontforge/parsettf.c:1854:59: style: Parameter 'endpt' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettf.c:1854:72: style: Parameter 'flags' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettf.c:1947:97: style: Parameter 'gbb' can be declared as const array [constParameter] fontforge-20220308/fontforge/parsettf.c:5370:11: style: Parameter 'bound' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettf.c:445:4: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/parsettf.c:451:4: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/parsettf.c:431:7: error: Memory is allocated but not initialized: cpt [uninitdata] fontforge-20220308/fontforge/parsettf.c:1410:3: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/parsettf.c:3591:6: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/parsettf.c:3612:6: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/parsettfatt.c:3744:34: style: Condition 'sm->info->chars[lig_glyph]!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/parsettfatt.c:297:3: error: Common realloc mistake: 'glyphs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/parsettfatt.c:2012:4: error: Common realloc mistake: 'glyph2s' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/parsettfatt.c:6120:6: error: Common realloc mistake: 'loff' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/parsettfatt.c:5677:8: warning: Either the condition 'last==NULL' is redundant or there is possible null pointer dereference: curScript. [nullPointerRedundantCheck] fontforge-20220308/fontforge/parsettfatt.c:5676:13: note: Assuming that condition 'last==NULL' is not redundant fontforge-20220308/fontforge/parsettfatt.c:5631:8: note: last is assigned 'curScript' here. fontforge-20220308/fontforge/parsettfatt.c:5677:8: note: Null pointer dereference fontforge-20220308/fontforge/parsettfatt.c:1908:7: style: Redundant initialization for 'pt'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/fontforge/parsettfatt.c:1905:23: note: pt is initialized fontforge-20220308/fontforge/parsettfatt.c:1908:7: note: pt is overwritten fontforge-20220308/fontforge/parsettfatt.c:5405:8: style: Variable 'ext' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/parsettfatt.c:5403:8: note: ext is assigned fontforge-20220308/fontforge/parsettfatt.c:5405:8: note: ext is overwritten fontforge-20220308/fontforge/parsettfatt.c:1175:21: style: Local variable 'k' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfatt.c:1133:15: note: Shadowed declaration fontforge-20220308/fontforge/parsettfatt.c:1175:21: note: Shadow variable fontforge-20220308/fontforge/parsettfatt.c:1198:21: style: Local variable 'k' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfatt.c:1133:15: note: Shadowed declaration fontforge-20220308/fontforge/parsettfatt.c:1198:21: note: Shadow variable fontforge-20220308/fontforge/parsettfatt.c:1222:21: style: Local variable 'k' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfatt.c:1133:15: note: Shadowed declaration fontforge-20220308/fontforge/parsettfatt.c:1222:21: note: Shadow variable fontforge-20220308/fontforge/parsettfatt.c:1260:21: style: Local variable 'k' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfatt.c:1133:15: note: Shadowed declaration fontforge-20220308/fontforge/parsettfatt.c:1260:21: note: Shadow variable fontforge-20220308/fontforge/parsettfatt.c:2160:11: style: Local variable 'len' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfatt.c:2080:46: note: Shadowed declaration fontforge-20220308/fontforge/parsettfatt.c:2160:11: note: Shadow variable fontforge-20220308/fontforge/parsettfatt.c:2167:32: style: Local variable 'pt' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfatt.c:2083:11: note: Shadowed declaration fontforge-20220308/fontforge/parsettfatt.c:2167:32: note: Shadow variable fontforge-20220308/fontforge/parsettfatt.c:3071:16: style: Local variable 'offsets' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfatt.c:3029:37: note: Shadowed declaration fontforge-20220308/fontforge/parsettfatt.c:3071:16: note: Shadow variable fontforge-20220308/fontforge/parsettfatt.c:3072:16: style: Local variable 'glyphs' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfatt.c:3029:15: note: Shadowed declaration fontforge-20220308/fontforge/parsettfatt.c:3072:16: note: Shadow variable fontforge-20220308/fontforge/parsettfatt.c:5383:15: style: Local variable 'start' shadows outer argument [shadowArgument] fontforge-20220308/fontforge/parsettfatt.c:5316:93: note: Shadowed declaration fontforge-20220308/fontforge/parsettfatt.c:5383:15: note: Shadow variable fontforge-20220308/fontforge/parsettfatt.c:102:45: style: Parameter 'coverageglyphs' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettfatt.c:102:70: style: Parameter 'classed' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettfatt.c:144:35: style: Parameter 'class' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettfatt.c:835:84: style: Parameter 'baseglyphs' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettfatt.c:866:84: style: Parameter 'baseglyphs' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettfatt.c:4318:11: style: Parameter 'classes_subbed' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettfatt.c:4808:28: warning: Size of pointer 'tuples' used instead of size of its data. [pointerSize] fontforge-20220308/fontforge/parsettfatt.c:1994:10: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/contrib/cidmap/src/mapjapan1.c:337:42: warning: Either the condition 'uni<0x1000000' is redundant or the array 'used[1114112]' is accessed at index 16777215, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/contrib/cidmap/src/mapjapan1.c:337:25: note: Assuming that condition 'uni<0x1000000' is not redundant fontforge-20220308/contrib/cidmap/src/mapjapan1.c:337:42: note: Array index out of bounds fontforge-20220308/fontforge/parsettfbmf.c:142:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfbmf.c:73:9: note: Shadowed declaration fontforge-20220308/fontforge/parsettfbmf.c:142:7: note: Shadow variable fontforge-20220308/fontforge/parsettfbmf.c:1216:25: style: Local variable 'bl' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/parsettfbmf.c:649:27: note: Shadowed declaration fontforge-20220308/fontforge/parsettfbmf.c:1216:25: note: Shadow variable fontforge-20220308/fontforge/parsettfbmf.c:1290:51: style: Parameter 'sizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettfvar.c:731:21: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] fontforge-20220308/fontforge/parsettfvar.c:725:17: note: outer condition: tupleIndex&0x4000 fontforge-20220308/fontforge/parsettfvar.c:731:21: note: identical inner condition: tupleIndex&0x4000 fontforge-20220308/fontforge/parsettfvar.c:372:43: style: Parameter 'points' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettfvar.c:372:56: style: Parameter 'xdeltas' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/parsettfvar.c:372:70: style: Parameter 'ydeltas' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/plugin.c:478:19: style: Local variable 'l' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/plugin.c:474:17: note: Shadowed declaration fontforge-20220308/fontforge/plugin.c:478:19: note: Shadow variable fontforge-20220308/fontforge/print.c:1713:11: style: Local variable 'gid' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/print.c:1628:20: note: Shadowed declaration fontforge-20220308/fontforge/print.c:1713:11: note: Shadow variable fontforge-20220308/fontforge/print.c:1739:11: style: Local variable 'gid' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/print.c:1628:20: note: Shadowed declaration fontforge-20220308/fontforge/print.c:1739:11: note: Shadow variable fontforge-20220308/fontforge/print.c:2711:52: style: Parameter 'scripts' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/print.c:2563:18: style: struct member 'langsamples::script' is never used. [unusedStructMember] fontforge-20220308/fontforge/print.c:625:61: style: Variable 'function_obj' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/print.c:2723:30: style: Variable 'any' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/psread.c:1372:16: style: Condition 'kv->type==ps_instr' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/psread.c:3961:16: style: Condition 'cur!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/psread.c:3985:16: style: Condition 'cur!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/psread.c:4396:14: style: Condition 'sp<=base' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/psread.c:4386:18: note: Assuming that condition 'baselayers[layer].order2!=order2 fontforge-20220308/fontforge/python.c:10970:31: note: identical inner condition: sf->layers[layer].order2!=order2 fontforge-20220308/fontforge/python.c:3326:12: style: Condition 'ss==NULL' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/python.c:5752:17: style: Condition 'len<2' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/python.c:5700:14: note: Assuming that condition 'len<2' is not redundant fontforge-20220308/fontforge/python.c:5752:17: note: Condition 'len<2' is always false fontforge-20220308/fontforge/python.c:472:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/python.c:472:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/python.c:1580:13: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/python.c:1580:13: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/python.c:1580:13: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/python.c:1583:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/python.c:1583:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/python.c:1121:2: error: Common realloc mistake: 'py_ie' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/python.c:12450:7: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] fontforge-20220308/fontforge/python.c:5363:9: style: Variable 'nexti' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/python.c:5352:12: note: nexti is assigned fontforge-20220308/fontforge/python.c:5363:9: note: nexti is overwritten fontforge-20220308/fontforge/python.c:5354:9: style: Variable 'previ' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/python.c:5352:20: note: previ is assigned fontforge-20220308/fontforge/python.c:5354:9: note: previ is overwritten fontforge-20220308/fontforge/python.c:4488:25: style:inconclusive: Function 'NibCheck' argument 1 names different: declaration 'ss' definition 'nib'. [funcArgNamesDifferent] fontforge-20220308/fontforge/python.c:1292:25: note: Function 'NibCheck' argument 1 names different: declaration 'ss' definition 'nib'. fontforge-20220308/fontforge/python.c:4488:25: note: Function 'NibCheck' argument 1 names different: declaration 'ss' definition 'nib'. fontforge-20220308/fontforge/python.c:5225:55: style:inconclusive: Function '_SSFromContour' argument 2 names different: declaration 'start' definition 'tt_start'. [funcArgNamesDifferent] fontforge-20220308/fontforge/python.c:202:55: note: Function '_SSFromContour' argument 2 names different: declaration 'start' definition 'tt_start'. fontforge-20220308/fontforge/python.c:5225:55: note: Function '_SSFromContour' argument 2 names different: declaration 'start' definition 'tt_start'. fontforge-20220308/fontforge/python.c:5429:40: style:inconclusive: Function 'SSFromContour' argument 1 names different: declaration 'contour' definition 'c'. [funcArgNamesDifferent] fontforge-20220308/fontforge/python.c:204:47: note: Function 'SSFromContour' argument 1 names different: declaration 'contour' definition 'c'. fontforge-20220308/fontforge/python.c:5429:40: note: Function 'SSFromContour' argument 1 names different: declaration 'contour' definition 'c'. fontforge-20220308/fontforge/python.c:11518:42: style:inconclusive: Function 'fontiter_New' argument 1 names different: declaration 'font' definition 'self'. [funcArgNamesDifferent] fontforge-20220308/fontforge/python.c:10492:42: note: Function 'fontiter_New' argument 1 names different: declaration 'font' definition 'self'. fontforge-20220308/fontforge/python.c:11518:42: note: Function 'fontiter_New' argument 1 names different: declaration 'font' definition 'self'. fontforge-20220308/fontforge/python.c:19446:53: style:inconclusive: Function 'CreatePyModule' argument 1 names different: declaration 'moddef' definition 'mdef'. [funcArgNamesDifferent] fontforge-20220308/fontforge/python.c:19350:54: note: Function 'CreatePyModule' argument 1 names different: declaration 'moddef' definition 'mdef'. fontforge-20220308/fontforge/python.c:19446:53: note: Function 'CreatePyModule' argument 1 names different: declaration 'moddef' definition 'mdef'. fontforge-20220308/fontforge/python.c:19576:62: style:inconclusive: Function 'PyFF_Main' argument 4 names different: declaration 'no_init' definition 'do_inits'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2480:59: note: Function 'PyFF_Main' argument 4 names different: declaration 'no_init' definition 'do_inits'. fontforge-20220308/fontforge/python.c:19576:62: note: Function 'PyFF_Main' argument 4 names different: declaration 'no_init' definition 'do_inits'. fontforge-20220308/fontforge/python.c:19577:30: style:inconclusive: Function 'PyFF_Main' argument 5 names different: declaration 'no_plugins' definition 'do_plugins'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2480:72: note: Function 'PyFF_Main' argument 5 names different: declaration 'no_plugins' definition 'do_plugins'. fontforge-20220308/fontforge/python.c:19577:30: note: Function 'PyFF_Main' argument 5 names different: declaration 'no_plugins' definition 'do_plugins'. fontforge-20220308/fontforge/python.c:19680:31: style:inconclusive: Function 'PyFF_Stdin' argument 1 names different: declaration 'no_inits' definition 'do_inits'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2479:28: note: Function 'PyFF_Stdin' argument 1 names different: declaration 'no_inits' definition 'do_inits'. fontforge-20220308/fontforge/python.c:19680:31: note: Function 'PyFF_Stdin' argument 1 names different: declaration 'no_inits' definition 'do_inits'. fontforge-20220308/fontforge/python.c:19680:45: style:inconclusive: Function 'PyFF_Stdin' argument 2 names different: declaration 'no_plugins' definition 'do_plugins'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2479:42: note: Function 'PyFF_Stdin' argument 2 names different: declaration 'no_plugins' definition 'do_plugins'. fontforge-20220308/fontforge/python.c:19680:45: note: Function 'PyFF_Stdin' argument 2 names different: declaration 'no_plugins' definition 'do_plugins'. fontforge-20220308/fontforge/python.c:19858:32: style:inconclusive: Function 'PyFF_ProcessInitFiles' argument 1 names different: declaration 'no_inits' definition 'do_inits'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2488:39: note: Function 'PyFF_ProcessInitFiles' argument 1 names different: declaration 'no_inits' definition 'do_inits'. fontforge-20220308/fontforge/python.c:19858:32: note: Function 'PyFF_ProcessInitFiles' argument 1 names different: declaration 'no_inits' definition 'do_inits'. fontforge-20220308/fontforge/python.c:19858:46: style:inconclusive: Function 'PyFF_ProcessInitFiles' argument 2 names different: declaration 'no_plugins' definition 'do_plugins'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2488:53: note: Function 'PyFF_ProcessInitFiles' argument 2 names different: declaration 'no_plugins' definition 'do_plugins'. fontforge-20220308/fontforge/python.c:19858:46: note: Function 'PyFF_ProcessInitFiles' argument 2 names different: declaration 'no_plugins' definition 'do_plugins'. fontforge-20220308/fontforge/python.c:6657:6: style: Local variable 'ret' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/python.c:6650:9: note: Shadowed declaration fontforge-20220308/fontforge/python.c:6657:6: note: Shadow variable fontforge-20220308/fontforge/python.c:9708:13: style: Local variable 'layeri' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/python.c:9699:9: note: Shadowed declaration fontforge-20220308/fontforge/python.c:9708:13: note: Shadow variable fontforge-20220308/fontforge/python.c:10939:14: style: Local variable 'name' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/python.c:10936:11: note: Shadowed declaration fontforge-20220308/fontforge/python.c:10939:14: note: Shadow variable fontforge-20220308/fontforge/python.c:13252:9: style: Local variable 'tag' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/python.c:13218:12: note: Shadowed declaration fontforge-20220308/fontforge/python.c:13252:9: note: Shadow variable fontforge-20220308/fontforge/python.c:13253:7: style: Local variable 'min' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/python.c:13219:10: note: Shadowed declaration fontforge-20220308/fontforge/python.c:13253:7: note: Shadow variable fontforge-20220308/fontforge/python.c:13253:11: style: Local variable 'max' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/python.c:13219:14: note: Shadowed declaration fontforge-20220308/fontforge/python.c:13253:11: note: Shadow variable fontforge-20220308/fontforge/python.c:19666:15: style: Local variable 'hook_dict' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/python.c:186:18: note: Shadowed declaration fontforge-20220308/fontforge/python.c:19666:15: note: Shadow variable fontforge-20220308/fontforge/python.c:1956:58: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/python.c:9656:31: error: Uninitialized variable: layeri [uninitvar] fontforge-20220308/fontforge/python.c:9649:16: note: Assuming condition is false fontforge-20220308/fontforge/python.c:9656:31: note: Uninitialized variable: layeri fontforge-20220308/fontforge/python.c:11819:33: error: Uninitialized variable: lang [legacyUninitvar] fontforge-20220308/fontforge/python.c:11837:34: error: Uninitialized variable: strid [legacyUninitvar] fontforge-20220308/fontforge/python.c:13523:28: error: Uninitialized variable: lang [legacyUninitvar] fontforge-20220308/fontforge/python.c:14620:11: error: Uninitialized variable: ok [legacyUninitvar] fontforge-20220308/fontforge/python.c:349:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/python.c:6633:5: style: Variable 'at' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/python.c:11121:5: style: Variable 'sf' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/python.c:16878:7: style: Variable 'last' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/savefont.c:831:7: style: Condition '!oerr' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/savefont.c:828:13: note: Assignment 'oerr=0', assigned value is 0 fontforge-20220308/fontforge/savefont.c:831:7: note: Condition '!oerr' is always true fontforge-20220308/fontforge/savefont.c:980:37: style: Condition 'sc!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/savefont.c:1001:21: style: Variable 'no_windowing_ui' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/savefont.c:997:18: note: no_windowing_ui is assigned fontforge-20220308/fontforge/savefont.c:1001:21: note: no_windowing_ui is overwritten fontforge-20220308/fontforge/savefont.c:518:12: warning: Redundant assignment of 'modi' to itself. [selfAssignment] fontforge-20220308/fontforge/savefont.c:1040:17: style:inconclusive: Function 'GenerateScript' argument 6 names different: declaration 'subfontdirectory' definition 'subfontdefinition'. [funcArgNamesDifferent] fontforge-20220308/fontforge/savefont.h:74:111: note: Function 'GenerateScript' argument 6 names different: declaration 'subfontdirectory' definition 'subfontdefinition'. fontforge-20220308/fontforge/savefont.c:1040:17: note: Function 'GenerateScript' argument 6 names different: declaration 'subfontdirectory' definition 'subfontdefinition'. fontforge-20220308/fontforge/savefont.c:348:65: style: Parameter 'sizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/savefont.c:550:11: style: Parameter 'mapping' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/savefont.c:594:33: style: Variable '_mapping[mapping[i]&0xff]' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/savefont.c:595:31: style: Variable '_backmap[temp.glyphcnt]' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scstyles.c:129:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:129:17: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:129:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:136:28: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:136:17: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:136:28: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:137:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:137:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:137:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:200:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:200:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:200:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:201:45: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:201:31: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:201:45: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:202:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:202:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:202:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:203:43: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:203:29: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:203:43: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:237:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:237:19: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:237:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:238:34: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:238:19: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:238:34: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:246:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:246:9: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:246:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:247:24: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:247:9: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:247:24: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:367:24: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:367:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:367:24: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:368:28: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:368:11: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:368:28: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:392:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:392:12: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:392:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:397:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:397:15: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:397:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:398:28: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:398:9: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:398:28: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:401:26: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:401:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:401:26: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:403:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:403:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:403:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:406:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:406:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:406:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:408:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:408:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:408:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:424:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:424:22: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:424:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:426:37: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:426:18: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:426:37: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:427:30: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:427:12: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:427:30: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:784:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:784:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:784:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:785:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:785:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:785:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:786:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:786:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:786:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:855:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:855:15: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:855:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:857:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:857:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:857:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:880:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:880:15: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:880:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:891:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:891:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:891:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:892:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:892:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:892:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:893:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:893:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:893:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:894:43: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:894:30: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:894:43: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:895:26: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:895:11: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:895:26: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:896:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:896:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:896:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:909:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:909:15: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:909:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:911:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:911:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:911:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:922:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:922:15: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:922:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:924:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:924:20: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:924:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:925:19: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:925:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:925:19: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:927:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:927:19: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:927:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:928:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:928:19: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:928:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:930:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:930:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:930:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:931:18: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:931:5: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:931:18: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:933:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:933:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:933:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:934:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:934:15: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:934:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:938:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:938:15: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:938:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:940:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:940:21: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:940:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:941:19: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:941:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:941:19: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:943:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:943:19: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:943:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:944:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:944:19: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:944:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:946:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:946:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:946:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:947:18: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:947:5: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:947:18: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:949:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:949:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:949:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:950:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:950:15: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:950:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:953:26: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:953:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:953:26: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:960:18: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:960:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:960:18: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:978:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:978:11: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:978:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:987:13: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:987:3: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:987:13: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:1188:31: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:1188:19: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:1188:31: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:1189:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:1189:18: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:1189:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:1190:31: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:1190:18: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:1190:31: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:1191:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:1191:17: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:1191:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:1242:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:1242:14: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:1242:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:1271:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:1271:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:1271:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:1272:18: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:1272:5: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:1272:18: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:1286:24: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:1286:11: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:1286:24: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:1524:19: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:1524:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:1524:19: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2205:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2205:13: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2205:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2236:23: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2236:13: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2236:23: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2292:20: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2292:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2292:20: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2293:17: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2293:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2293:17: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2299:20: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2299:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2299:20: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2315:20: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2315:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2315:20: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2347:19: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2347:9: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2347:19: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2350:14: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2350:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2350:14: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2356:14: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2356:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2356:14: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2366:14: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2366:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2366:14: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2368:14: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2368:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2368:14: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2379:19: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2379:5: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2379:19: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2381:19: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2381:5: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2381:19: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2382:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2382:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2382:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2389:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2389:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2389:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2391:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2391:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2391:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2392:24: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2392:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2392:24: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2407:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2407:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2407:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2409:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2409:8: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2409:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2410:24: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2410:10: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2410:24: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2413:28: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2413:4: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2413:28: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2420:48: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2420:34: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2420:48: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2434:17: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scstyles.c:2434:7: note: Address of variable taken here. fontforge-20220308/fontforge/scstyles.c:2434:17: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/scstyles.c:2052:23: warning: Either the condition 'sc->unicodeenc==0x130' is redundant or tolower() argument nr 1 can have invalid value. The value is 304 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/scstyles.c:2063:22: note: Assuming that condition 'sc->unicodeenc==0x130' is not redundant fontforge-20220308/fontforge/scstyles.c:2052:23: note: Invalid argument fontforge-20220308/fontforge/scstyles.c:2053:21: warning: Either the condition 'sc->unicodeenc==0x130' is redundant or isupper() argument nr 1 can have invalid value. The value is 304 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/scstyles.c:2063:22: note: Assuming that condition 'sc->unicodeenc==0x130' is not redundant fontforge-20220308/fontforge/scstyles.c:2053:21: note: Invalid argument fontforge-20220308/fontforge/scstyles.c:2054:14: warning: Either the condition 'sc->unicodeenc==0x130' is redundant or islower() argument nr 1 can have invalid value. The value is 304 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforge/scstyles.c:2063:22: note: Assuming that condition 'sc->unicodeenc==0x130' is not redundant fontforge-20220308/fontforge/scstyles.c:2054:14: note: Invalid argument fontforge-20220308/fontforge/scstyles.c:6824:42: warning: Either the condition 'cv!=NULL' is redundant or there is possible null pointer dereference: cv. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scstyles.c:6832:12: note: Assuming that condition 'cv!=NULL' is not redundant fontforge-20220308/fontforge/scstyles.c:6824:42: note: Null pointer dereference fontforge-20220308/fontforge/scstyles.c:6931:42: warning: Either the condition 'cv!=NULL' is redundant or there is possible null pointer dereference: cv. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scstyles.c:6938:12: note: Assuming that condition 'cv!=NULL' is not redundant fontforge-20220308/fontforge/scstyles.c:6931:42: note: Null pointer dereference fontforge-20220308/fontforge/scstyles.c:6818:49: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] fontforge-20220308/fontforge/scstyles.c:3316:9: style: Local variable 'diff' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/scstyles.c:3222:15: note: Shadowed declaration fontforge-20220308/fontforge/scstyles.c:3316:9: note: Shadow variable fontforge-20220308/fontforge/scstyles.c:6545:16: style: Local variable 'no_windowing_ui' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/cvundoes.h:7:12: note: Shadowed declaration fontforge-20220308/fontforge/scstyles.c:6545:16: note: Shadow variable fontforge-20220308/fontforge/scstyles.c:6592:16: style: Local variable 'no_windowing_ui' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/cvundoes.h:7:12: note: Shadowed declaration fontforge-20220308/fontforge/scstyles.c:6592:16: note: Shadow variable fontforge-20220308/fontforge/scstyles.c:5440:60: style: Parameter 'end' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/scstyles.c:5943:45: style: Parameter 'transform' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/scstyles.c:6150:45: style: Parameter 'transform' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/scstyles.c:6800:55: style: Parameter 'to1' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/scstyles.c:6800:73: style: Parameter 'to2' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/scstyles.c:1785:28: style: struct member 'widths::width' is never used. [unusedStructMember] fontforge-20220308/fontforge/scstyles.c:1785:35: style: struct member 'widths::total' is never used. [unusedStructMember] fontforge-20220308/fontforge/scstyles.c:4499:9: style: struct member 'italicserifdata::emsize' is never used. [unusedStructMember] fontforge-20220308/fontforge/scstyles.c:4502:12: style: struct member 'italicserifdata::ia' is never used. [unusedStructMember] fontforge-20220308/fontforge/scstyles.c:4503:12: style: struct member 'italicserifdata::stem_angle' is never used. [unusedStructMember] fontforge-20220308/fontforge/scstyles.c:378:16: style: Variable 'stroke_add' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scstyles.c:2895:62: style: Variable 'sc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scstyles.c:4312:16: style: Variable 'sc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scstyles.c:6788:16: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/search.c:170:22: style: Condition 'sc_sp->next==NULL' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/search.c:252:19: style: Condition 'sc_sp->next==NULL' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/search.c:127:19: style: Variable 'first_of_path' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/search.c:83:19: note: first_of_path is assigned fontforge-20220308/fontforge/search.c:127:19: note: first_of_path is overwritten fontforge-20220308/fontforge/search.c:106:14: style: Redundant initialization for 'p_end'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/fontforge/search.c:103:21: note: p_end is initialized fontforge-20220308/fontforge/search.c:106:14: note: p_end is overwritten fontforge-20220308/fontforge/search.c:503:21: style: Variable 'p_sp' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/search.c:502:7: note: p_sp is assigned fontforge-20220308/fontforge/search.c:503:21: note: p_sp is overwritten fontforge-20220308/fontforge/search.c:1147:28: style:inconclusive: Function 'SDDestroy' argument 1 names different: declaration 'sd' definition 'sv'. [funcArgNamesDifferent] fontforge-20220308/fontforge/search.h:69:35: note: Function 'SDDestroy' argument 1 names different: declaration 'sd' definition 'sv'. fontforge-20220308/fontforge/search.c:1147:28: note: Function 'SDDestroy' argument 1 names different: declaration 'sd' definition 'sv'. fontforge-20220308/fontforge/search.c:1164:34: style:inconclusive: Function 'SDFillup' argument 1 names different: declaration 'sd' definition 'sv'. [funcArgNamesDifferent] fontforge-20220308/fontforge/search.h:70:41: note: Function 'SDFillup' argument 1 names different: declaration 'sd' definition 'sv'. fontforge-20220308/fontforge/search.c:1164:34: note: Function 'SDFillup' argument 1 names different: declaration 'sd' definition 'sv'. fontforge-20220308/fontforge/search.c:69:15: style: Parameter 'sc_path_first' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/search.c:1411:89: style: Parameter 'this_sc' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/search.c:1440:62: style: Variable 'sc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scripting.c:8001:27: warning: The address of local variable 'xoff' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scripting.c:8001:10: note: Address of variable taken here. fontforge-20220308/fontforge/scripting.c:8001:27: note: The address of local variable 'xoff' might be accessed at non-zero index. fontforge-20220308/fontforge/scripting.c:8013:40: warning: The address of local variable 'xoff' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/scripting.c:8013:10: note: Address of variable taken here. fontforge-20220308/fontforge/scripting.c:8013:40: note: The address of local variable 'xoff' might be accessed at non-zero index. fontforge-20220308/fontforge/scripting.c:824:7: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/fontforge/scripting.c:826:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/fontforge/scripting.c:771:60: warning: Either the condition 'base>36' is redundant or strtol() argument nr 3 can have invalid value. The value is 37 but the valid values are '0,2:36'. [invalidFunctionArg] fontforge-20220308/fontforge/scripting.c:766:32: note: Assuming that condition 'base>36' is not redundant fontforge-20220308/fontforge/scripting.c:771:60: note: Invalid argument fontforge-20220308/fontforge/scripting.c:797:37: warning: Either the condition 'base>36' is redundant or strtol() argument nr 3 can have invalid value. The value is 37 but the valid values are '0,2:36'. [invalidFunctionArg] fontforge-20220308/fontforge/scripting.c:792:32: note: Assuming that condition 'base>36' is not redundant fontforge-20220308/fontforge/scripting.c:797:37: note: Invalid argument fontforge-20220308/fontforge/scripting.c:2343:22: warning: Logical conjunction always evaluates to false: c->a.argc < 2 && c->a.argc > 4. [incorrectLogicOperator] fontforge-20220308/fontforge/scripting.c:4402:14: style: Condition 'c->a.argc==3' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/scripting.c:4400:24: note: Assuming that condition 'c->a.argc==2' is not redundant fontforge-20220308/fontforge/scripting.c:4402:14: note: Condition 'c->a.argc==3' is always false fontforge-20220308/fontforge/scripting.c:9225:34: style: Condition 'found->argtype==v_int' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/scripting.c:9218:13: note: Assuming that condition 'found->argtype' is not redundant fontforge-20220308/fontforge/scripting.c:9225:34: note: Condition 'found->argtype==v_int' is always false fontforge-20220308/fontforge/scripting.c:7294:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/scripting.c:7294:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/scripting.c:2063:3: error: Common realloc mistake: 'familysfs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/scripting.c:7653:9: error: Common realloc mistake: 'val' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/scripting.c:7691:13: error: Common realloc mistake: 'val' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/scripting.c:9321:3: error: Common realloc mistake: 'body' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/scripting.c:1054:35: warning: Either the condition '(env=getenv(c->a.vals[1].u.sval))==NULL' is redundant or there is possible null pointer dereference: env. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:1051:45: note: Assuming that condition '(env=getenv(c->a.vals[1].u.sval))==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:1054:35: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:3282:23: warning: Either the condition 'file==NULL' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:3280:14: note: Assuming that condition 'file==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:3282:23: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:3325:12: warning: Either the condition 'tab==NULL' is redundant or there is possible null pointer dereference: tab. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:3323:13: note: Assuming that condition 'tab==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:3325:12: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:5640:10: warning: Either the condition 'sf==NULL' is redundant or there is possible null pointer dereference: sf. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:5638:12: note: Assuming that condition 'sf==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:5640:10: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:5673:10: warning: Either the condition 'sf==NULL' is redundant or there is possible null pointer dereference: sf. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:5671:12: note: Assuming that condition 'sf==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:5673:10: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:5891:38: warning: Either the condition 'tab==NULL' is redundant or there is possible null pointer dereference: tab. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:5888:13: note: Assuming that condition 'tab==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:5891:38: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:5902:17: warning: Either the condition 'tab==NULL' is redundant or there is possible null pointer dereference: tab. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:5900:13: note: Assuming that condition 'tab==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:5902:17: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6454:37: warning: Either the condition 'mm==NULL' is redundant or there is possible null pointer dereference: mm. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6450:12: note: Assuming that condition 'mm==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6454:37: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6455:18: warning: Either the condition 'mm==NULL' is redundant or there is possible null pointer dereference: mm. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6450:12: note: Assuming that condition 'mm==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6455:18: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6469:37: warning: Either the condition 'mm==NULL' is redundant or there is possible null pointer dereference: mm. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6465:12: note: Assuming that condition 'mm==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6469:37: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6470:18: warning: Either the condition 'mm==NULL' is redundant or there is possible null pointer dereference: mm. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6465:12: note: Assuming that condition 'mm==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6470:18: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6490:44: warning: Either the condition 'mm==NULL' is redundant or there is possible null pointer dereference: mm. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6480:12: note: Assuming that condition 'mm==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6490:44: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6491:44: warning: Either the condition 'mm==NULL' is redundant or there is possible null pointer dereference: mm. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6480:12: note: Assuming that condition 'mm==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6491:44: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6492:44: warning: Either the condition 'mm==NULL' is redundant or there is possible null pointer dereference: mm. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6480:12: note: Assuming that condition 'mm==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6492:44: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6502:33: warning: Either the condition 'mm==NULL' is redundant or there is possible null pointer dereference: mm. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6498:12: note: Assuming that condition 'mm==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6502:33: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6541:37: warning: Either the condition 'mm==NULL' is redundant or there is possible null pointer dereference: mm. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6539:12: note: Assuming that condition 'mm==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6541:37: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:6946:10: warning: Either the condition 'sub==NULL' is redundant or there is possible null pointer dereference: sub. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:6943:13: note: Assuming that condition 'sub==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:6946:10: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7036:31: warning: Either the condition 'otl2==NULL' is redundant or there is possible null pointer dereference: otl2. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7034:14: note: Assuming that condition 'otl2==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7036:31: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7077:24: warning: Either the condition 'sub2==NULL' is redundant or there is possible null pointer dereference: sub2. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7075:14: note: Assuming that condition 'sub2==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7077:24: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7273:31: warning: Either the condition 'otl==NULL' is redundant or there is possible null pointer dereference: otl. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7271:13: note: Assuming that condition 'otl==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7273:31: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7274:5: warning: Either the condition 'otl==NULL' is redundant or there is possible null pointer dereference: otl. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7271:13: note: Assuming that condition 'otl==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7274:5: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7275:5: warning: Either the condition 'otl==NULL' is redundant or there is possible null pointer dereference: otl. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7271:13: note: Assuming that condition 'otl==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7275:5: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7287:5: warning: Either the condition 'otl==NULL' is redundant or there is possible null pointer dereference: otl. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7285:13: note: Assuming that condition 'otl==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7287:5: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7319:6: warning: Either the condition 'otl==NULL' is redundant or there is possible null pointer dereference: otl. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7313:13: note: Assuming that condition 'otl==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7319:6: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7374:15: warning: Either the condition 'otl==NULL' is redundant or there is possible null pointer dereference: otl. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7372:13: note: Assuming that condition 'otl==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7374:15: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7470:34: warning: Either the condition 'sub==NULL' is redundant or there is possible null pointer dereference: sub. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7467:13: note: Assuming that condition 'sub==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7470:34: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:7485:34: warning: Either the condition 'ac==NULL' is redundant or there is possible null pointer dereference: ac. [nullPointerRedundantCheck] fontforge-20220308/fontforge/scripting.c:7482:12: note: Assuming that condition 'ac==NULL' is not redundant fontforge-20220308/fontforge/scripting.c:7485:34: note: Null pointer dereference fontforge-20220308/fontforge/scripting.c:277:21: style: Variable 'c->a.vals[i].flags' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/scripting.c:268:25: note: c->a.vals[i].flags is assigned fontforge-20220308/fontforge/scripting.c:277:21: note: c->a.vals[i].flags is overwritten fontforge-20220308/fontforge/scripting.c:4498:4: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/scripting.c:4494:7: note: i is assigned fontforge-20220308/fontforge/scripting.c:4498:4: note: i is overwritten fontforge-20220308/fontforge/scripting.c:7094:14: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/scripting.c:162:21: style:inconclusive: Function 'arraynew' argument 1 names different: declaration 'sz' definition 'count'. [funcArgNamesDifferent] fontforge-20220308/fontforge/scripting.h:114:21: note: Function 'arraynew' argument 1 names different: declaration 'sz' definition 'count'. fontforge-20220308/fontforge/scripting.c:162:21: note: Function 'arraynew' argument 1 names different: declaration 'sz' definition 'count'. fontforge-20220308/fontforge/scripting.c:399:44: style:inconclusive: Function 'ScriptErrorF' argument 2 names different: declaration 'fmt' definition 'format'. [funcArgNamesDifferent] fontforge-20220308/fontforge/scripting.h:147:44: note: Function 'ScriptErrorF' argument 2 names different: declaration 'fmt' definition 'format'. fontforge-20220308/fontforge/scripting.c:399:44: note: Function 'ScriptErrorF' argument 2 names different: declaration 'fmt' definition 'format'. fontforge-20220308/fontforge/scripting.c:513:17: style: Local variable 't1' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/scripting.c:507:11: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:513:17: note: Shadow variable fontforge-20220308/fontforge/scripting.c:1908:6: style: Local variable 's2d' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/scripting.c:1861:9: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:1908:6: note: Shadow variable fontforge-20220308/fontforge/scripting.c:2191:11: style: Local variable 'bdf' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/scripting.c:2181:14: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:2191:11: note: Shadow variable fontforge-20220308/fontforge/scripting.c:2928:9: style: Local variable 'add' shadows outer function [shadowFunction] fontforge-20220308/fontforge/scripting.c:9778:13: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:2928:9: note: Shadow variable fontforge-20220308/fontforge/scripting.c:2954:9: style: Local variable 'add' shadows outer function [shadowFunction] fontforge-20220308/fontforge/scripting.c:9778:13: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:2954:9: note: Shadow variable fontforge-20220308/fontforge/scripting.c:2987:9: style: Local variable 'add' shadows outer function [shadowFunction] fontforge-20220308/fontforge/scripting.c:9778:13: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:2987:9: note: Shadow variable fontforge-20220308/fontforge/scripting.c:3016:9: style: Local variable 'add' shadows outer function [shadowFunction] fontforge-20220308/fontforge/scripting.c:9778:13: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:3016:9: note: Shadow variable fontforge-20220308/fontforge/scripting.c:3045:9: style: Local variable 'add' shadows outer function [shadowFunction] fontforge-20220308/fontforge/scripting.c:9778:13: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:3045:9: note: Shadow variable fontforge-20220308/fontforge/scripting.c:3074:9: style: Local variable 'add' shadows outer function [shadowFunction] fontforge-20220308/fontforge/scripting.c:9778:13: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:3074:9: note: Shadow variable fontforge-20220308/fontforge/scripting.c:7770:63: style: Local variable 'kc' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/scripting.c:7728:16: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:7770:63: note: Shadow variable fontforge-20220308/fontforge/scripting.c:9465:19: style: Local variable 'sf' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/scripting.c:9346:17: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:9465:19: note: Shadow variable fontforge-20220308/fontforge/scripting.c:9491:15: style: Local variable 'sf' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/scripting.c:9346:17: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:9491:15: note: Shadow variable fontforge-20220308/fontforge/scripting.c:9507:15: style: Local variable 'sf' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/scripting.c:9346:17: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:9507:15: note: Shadow variable fontforge-20220308/fontforge/scripting.c:9709:10: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/scripting.c:9577:9: note: Shadowed declaration fontforge-20220308/fontforge/scripting.c:9709:10: note: Shadow variable fontforge-20220308/fontforge/scripting.c:1989:36: style: Argument '(fondmax=10)*sizeof(struct splinefont(*)[48])' to function malloc is always 80. It does not matter what value 'fondmax' has. [knownArgument] fontforge-20220308/fontforge/scripting.c:4894:66: style: Parameter 'refunis' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/scripting.c:7094:14: warning: Either the condition 'feat>65535' is redundant or there is signed integer overflow for expression 'feat<<16'. [integerOverflowCond] fontforge-20220308/fontforge/scripting.c:7091:62: note: Assuming that condition 'feat>65535' is not redundant fontforge-20220308/fontforge/scripting.c:7094:14: note: Integer overflow fontforge-20220308/fontforge/scripting.c:1417:3: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/scripting.c:4272:41: style: Variable 'sf_sl' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scripting.c:4273:39: style: Variable 'sf_sl' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scripting.c:4888:21: style: Variable 'maps[1].current' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scripting.c:4889:21: style: Variable 'maps[1].desired' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scripting.c:4964:8: style: Variable 'ref' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scripting.c:9308:17: style: Variable 'max' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scripting.c:9989:18: style: Variable 'temp.flags' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scripting.c:10560:18: style: Variable 'argv[0].type' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/scripting.c:10561:19: style: Variable 'argv[0].flags' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd1.c:125:15: style: Array index 'j' is used before limits check. [arrayIndexThenCheck] fontforge-20220308/fontforge/sflayout.c:1019:22: style: Condition 'li->fontlist!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/sflayout.c:194:1: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] fontforge-20220308/fontforge/sflayout.c:877:18: style: Local variable 'default_background' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/fontforge.h:56:17: note: Shadowed declaration fontforge-20220308/fontforge/sflayout.c:877:18: note: Shadow variable fontforge-20220308/fontforge/sflayout.c:172:33: style: Parameter 'tags' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/sflayout.c:186:31: style: Parameter 'tags1' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/sflayout.c:186:48: style: Parameter 'tags2' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/sflayout.c:430:6: style: Variable 'inr' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sflayout.c:462:16: style: Variable 'end_of_change' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sflayout.c:1059:14: style: Variable 'y' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sflayout.c:1207:24: style: Variable 'scripts[scnt++]' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/spiro.c:86:30: style: Condition '(ss->start_offset=0)!=0' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/spiro.c:167:53: style:inconclusive: Function 'SplineSet2SpiroCP' argument 2 names different: declaration 'cnt' definition '_cnt'. [funcArgNamesDifferent] fontforge-20220308/fontforge/spiro.h:17:61: note: Function 'SplineSet2SpiroCP' argument 2 names different: declaration 'cnt' definition '_cnt'. fontforge-20220308/fontforge/spiro.c:167:53: note: Function 'SplineSet2SpiroCP' argument 2 names different: declaration 'cnt' definition '_cnt'. fontforge-20220308/fontforge/splinechar.c:1393:21: style: Redundant condition: If 'EXPR == '['', the comparison 'EXPR != '{'' is always true. [redundantCondition] fontforge-20220308/fontforge/splinechar.c:1407:21: style: Redundant condition: If 'EXPR == ']'', the comparison 'EXPR != '}'' is always true. [redundantCondition] fontforge-20220308/fontforge/splinechar.c:249:19: style: Condition 'sp->next!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/splinechar.c:262:19: style: Condition 'sp->next==NULL' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/splinechar.c:2188:15: style: Variable 'sp1->next' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splinechar.c:2184:12: note: sp1->next is assigned fontforge-20220308/fontforge/splinechar.c:2188:15: note: sp1->next is overwritten fontforge-20220308/fontforge/splinechar.c:1258:20: style: The comparison 'cidmaster != sf' is always false because 'cidmaster' and 'sf' represent the same value. [knownConditionTrueFalse] fontforge-20220308/fontforge/splinechar.c:1230:29: note: 'cidmaster' is assigned value 'sf' here. fontforge-20220308/fontforge/splinechar.c:1258:20: note: The comparison 'cidmaster != sf' is always false because 'cidmaster' and 'sf' represent the same value. fontforge-20220308/fontforge/splinechar.c:123:84: style:inconclusive: Function 'SCSynchronizeWidth' argument 4 names different: declaration 'fv' definition 'flagfv'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2455:97: note: Function 'SCSynchronizeWidth' argument 4 names different: declaration 'fv' definition 'flagfv'. fontforge-20220308/fontforge/splinechar.c:123:84: note: Function 'SCSynchronizeWidth' argument 4 names different: declaration 'fv' definition 'flagfv'. fontforge-20220308/fontforge/splinechar.c:480:16: style: Local variable 'copymetadata' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/psfont.h:184:12: note: Shadowed declaration fontforge-20220308/fontforge/splinechar.c:480:16: note: Shadow variable fontforge-20220308/fontforge/splinechar.c:1619:16: style: Local variable 'allow_utf8_glyphnames' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinechar.c:59:5: note: Shadowed declaration fontforge-20220308/fontforge/splinechar.c:1619:16: note: Shadow variable fontforge-20220308/fontforge/splinechar.c:1983:43: style: struct member 'shapedescrip::nocp' is never used. [unusedStructMember] fontforge-20220308/fontforge/splinechar.c:899:15: style: Variable 'changed' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinechar.c:902:15: style: Variable 'changed' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinechar.c:1905:12: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinechar.c:2248:10: style: Variable 'r2' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinechar.c:2287:5: style: Variable 'r2' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinechar.c:2311:37: style: Variable 'bestrtest' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinefill.c:691:17: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] fontforge-20220308/fontforge/splinefill.c:690:13: note: outer condition: end-k>width-1 fontforge-20220308/fontforge/splinefill.c:691:17: note: identical inner condition: end-k>width-1 fontforge-20220308/fontforge/splinefill.c:1361:12: style: Condition 'sc==NULL' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/splinefill.c:1429:12: style: Condition 'sc!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/splinefill.c:1212:17: warning: Either the condition 'clipmask==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fontforge-20220308/fontforge/splinefill.c:1215:19: note: Assuming that condition 'clipmask==NULL' is not redundant fontforge-20220308/fontforge/splinefill.c:1212:17: note: Null pointer addition fontforge-20220308/fontforge/splinefill.c:1733:18: style:inconclusive: Function 'SplineFontPieceMeal' argument 6 names different: declaration 'freetype_context' definition 'ftc'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefill.h:15:102: note: Function 'SplineFontPieceMeal' argument 6 names different: declaration 'freetype_context' definition 'ftc'. fontforge-20220308/fontforge/splinefill.c:1733:18: note: Function 'SplineFontPieceMeal' argument 6 names different: declaration 'freetype_context' definition 'ftc'. fontforge-20220308/fontforge/splinefill.c:1389:7: style: Local variable 'layer' shadows outer argument [shadowArgument] fontforge-20220308/fontforge/splinefill.c:1353:58: note: Shadowed declaration fontforge-20220308/fontforge/splinefill.c:1389:7: note: Shadow variable fontforge-20220308/fontforge/splinefill.c:851:20: style: Parameter 'clipmask' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splinefill.c:1228:23: style: Parameter 'clipmask' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splinefill.c:1365:8: style: Variable 'is_aa' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinefill.c:1654:12: style: Variable 'scale' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinefit.c:883:13: style: Local variable 'b' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:655:13: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:883:13: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:884:11: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:9: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:884:11: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:915:11: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:9: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:915:11: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:918:11: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:9: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:918:11: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:969:20: style: Local variable 'nextcp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:648:15: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:969:20: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:970:12: style: Local variable 'k' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:43: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:970:12: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:984:13: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:9: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:984:13: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:991:13: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:9: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:991:13: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:997:14: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:11: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:997:14: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:1039:14: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:9: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:1039:14: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:1046:14: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:9: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:1046:14: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:1052:15: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:653:11: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:1052:15: note: Shadow variable fontforge-20220308/fontforge/splinefit.c:1191:16: style: Local variable 'nextcp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefit.c:648:15: note: Shadowed declaration fontforge-20220308/fontforge/splinefit.c:1191:16: note: Shadow variable fontforge-20220308/fontforge/splinefont.c:376:10: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforge/splinefont.c:374:10: note: First condition fontforge-20220308/fontforge/splinefont.c:376:10: note: Second condition fontforge-20220308/fontforge/splinefont.c:2070:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinefont.c:2070:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinefont.c:2070:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinefont.c:2070:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinefont.c:2070:5: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinefont.c:2070:5: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinefont.c:186:27: warning: Possible null pointer dereference: sf [nullPointer] fontforge-20220308/fontforge/splinefont.c:175:8: note: Assignment 'ssf=NULL', assigned value is 0 fontforge-20220308/fontforge/splinefont.c:176:14: note: Assuming condition is false fontforge-20220308/fontforge/splinefont.c:183:7: note: Assignment 'sf=ssf', assigned value is 0 fontforge-20220308/fontforge/splinefont.c:186:27: note: Null pointer dereference fontforge-20220308/fontforge/splinefont.c:260:9: style: Variable 'enc' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splinefont.c:258:9: note: enc is assigned fontforge-20220308/fontforge/splinefont.c:260:9: note: enc is overwritten fontforge-20220308/fontforge/splinefont.c:228:56: style:inconclusive: Function 'SFMakeChar' argument 3 names different: declaration 'i' definition 'enc'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2340:62: note: Function 'SFMakeChar' argument 3 names different: declaration 'i' definition 'enc'. fontforge-20220308/fontforge/splinefont.c:228:56: note: Function 'SFMakeChar' argument 3 names different: declaration 'i' definition 'enc'. fontforge-20220308/fontforge/splinefont.c:246:59: style:inconclusive: Function 'NameToEncoding' argument 3 names different: declaration 'uname' definition 'name'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2359:66: note: Function 'NameToEncoding' argument 3 names different: declaration 'uname' definition 'name'. fontforge-20220308/fontforge/splinefont.c:246:59: note: Function 'NameToEncoding' argument 3 names different: declaration 'uname' definition 'name'. fontforge-20220308/fontforge/splinefont.c:522:37: style:inconclusive: Function 'SFScaleToEm' argument 2 names different: declaration 'ascent' definition 'as'. [funcArgNamesDifferent] fontforge-20220308/fontforge/baseviews.h:317:44: note: Function 'SFScaleToEm' argument 2 names different: declaration 'ascent' definition 'as'. fontforge-20220308/fontforge/splinefont.c:522:37: note: Function 'SFScaleToEm' argument 2 names different: declaration 'ascent' definition 'as'. fontforge-20220308/fontforge/splinefont.c:522:45: style:inconclusive: Function 'SFScaleToEm' argument 3 names different: declaration 'descent' definition 'des'. [funcArgNamesDifferent] fontforge-20220308/fontforge/baseviews.h:317:56: note: Function 'SFScaleToEm' argument 3 names different: declaration 'descent' definition 'des'. fontforge-20220308/fontforge/splinefont.c:522:45: note: Function 'SFScaleToEm' argument 3 names different: declaration 'descent' definition 'des'. fontforge-20220308/fontforge/splinefont.c:2154:76: style:inconclusive: Function 'SplinePointListContainsPoint' argument 2 names different: declaration 'sp' definition 'sought'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2548:83: note: Function 'SplinePointListContainsPoint' argument 2 names different: declaration 'sp' definition 'sought'. fontforge-20220308/fontforge/splinefont.c:2154:76: note: Function 'SplinePointListContainsPoint' argument 2 names different: declaration 'sp' definition 'sought'. fontforge-20220308/fontforge/splinefont.c:192:15: style: Local variable 'sc' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefont.c:166:24: note: Shadowed declaration fontforge-20220308/fontforge/splinefont.c:192:15: note: Shadow variable fontforge-20220308/fontforge/splinefont.c:1095:8: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefont.c:962:22: note: Shadowed declaration fontforge-20220308/fontforge/splinefont.c:1095:8: note: Shadow variable fontforge-20220308/fontforge/splinefont.c:1148:10: style: Local variable 'len' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinefont.c:968:9: note: Shadowed declaration fontforge-20220308/fontforge/splinefont.c:1148:10: note: Shadow variable fontforge-20220308/fontforge/splinefont.c:311:45: style: Parameter 'selected' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splinefont.c:1852:68: style: Parameter 'snapcnt' can be declared as const array [constParameter] fontforge-20220308/fontforge/splinefont.c:2050:75: style: Parameter 'sought' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splinefont.c:196:23: style: Variable 'gid' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinefont.c:2085:19: style: Variable 'spline' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinefont.c:2086:18: style: Variable 'first' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinefont.c:2109:19: style: Variable 'spline' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinefont.c:2110:18: style: Variable 'first' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineorder2.c:117:12: style: Variable 't' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splineorder2.c:115:7: note: t is assigned fontforge-20220308/fontforge/splineorder2.c:117:12: note: t is overwritten fontforge-20220308/fontforge/sfd.c:6819:34: warning: The address of local variable 'names' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6819:4: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6819:34: note: The address of local variable 'names' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6820:34: warning: The address of local variable 'names' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6820:4: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6820:34: note: The address of local variable 'names' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6822:40: warning: The address of local variable 'names' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6822:10: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6822:40: note: The address of local variable 'names' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6829:37: warning: The address of local variable 'nclasses' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6829:4: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6829:37: note: The address of local variable 'nclasses' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6829:80: warning: The address of local variable 'ncnt' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6829:51: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6829:80: note: The address of local variable 'ncnt' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6830:46: warning: The address of local variable 'ncnt' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6830:17: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6830:46: note: The address of local variable 'ncnt' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6831:55: warning: The address of local variable 'nclasses' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6831:22: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6831:55: note: The address of local variable 'nclasses' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6839:39: warning: The address of local variable 'ncovers' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6839:4: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6839:39: note: The address of local variable 'ncovers' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6839:85: warning: The address of local variable 'ncnt' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6839:53: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6839:85: note: The address of local variable 'ncnt' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6840:49: warning: The address of local variable 'ncnt' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6840:17: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6840:49: note: The address of local variable 'ncnt' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6843:43: warning: The address of local variable 'ncovers' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6843:8: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6843:43: note: The address of local variable 'ncovers' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6844:43: warning: The address of local variable 'ncovers' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6844:8: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6844:43: note: The address of local variable 'ncovers' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:6846:49: warning: The address of local variable 'ncovers' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/sfd.c:6846:14: note: Address of variable taken here. fontforge-20220308/fontforge/sfd.c:6846:49: note: The address of local variable 'ncovers' might be accessed at non-zero index. fontforge-20220308/fontforge/sfd.c:3105:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/sfd.c:3141:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/sfd.c:6260:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/sfd.c:7113:18: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/sfd.c:7142:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/sfd.c:7165:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/sfd.c:7188:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/sfd.c:7230:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforge/sfd.c:5276:23: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true. [redundantCondition] fontforge-20220308/fontforge/sfd.c:426:7: style: Condition '!done' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/sfd.c:425:9: note: Assignment 'done=0', assigned value is 0 fontforge-20220308/fontforge/sfd.c:426:7: note: Condition '!done' is always true fontforge-20220308/fontforge/sfd.c:521:7: style: Condition '!done' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/sfd.c:520:9: note: Assignment 'done=0', assigned value is 0 fontforge-20220308/fontforge/sfd.c:521:7: note: Condition '!done' is always true fontforge-20220308/fontforge/sfd.c:3309:7: style: Condition '!idx' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/sfd.c:3303:42: note: Assuming that condition 'idx>0' is not redundant fontforge-20220308/fontforge/sfd.c:3309:7: note: Condition '!idx' is always false fontforge-20220308/fontforge/sfd.c:935:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:936:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1252:2: warning: %d in format string (no. 10) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1323:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1351:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1581:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1583:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1585:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1587:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1658:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1658:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1658:6: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:1706:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2241:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2241:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2254:7: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2355:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2357:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2364:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2366:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2368:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2388:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2389:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2407:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2409:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2412:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2414:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2416:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2418:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2454:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2454:6: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2467:7: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2820:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2821:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2835:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2844:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:3005:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:9484:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:9489:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/sfd.c:2218:6: error: Memory pointed to by 'buf' is freed twice. [doubleFree] fontforge-20220308/fontforge/sfd.c:2217:55: note: Memory pointed to by 'buf' is freed twice. fontforge-20220308/fontforge/sfd.c:2218:6: note: Memory pointed to by 'buf' is freed twice. fontforge-20220308/fontforge/sfd.c:7052:2: error: Common realloc mistake: 'sofar' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/sfd.c:7391:9: error: Common realloc mistake: 'langs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/sfd.c:7529:10: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/sfd.c:7536:5: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/sfd.c:8487:2: error: Common realloc mistake: 'sf' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/sfd.c:2951:35: warning: Possible null pointer dereference: dirname [nullPointer] fontforge-20220308/fontforge/sfd.c:2897:48: note: Calling function 'SFD_Dump', 6th argument 'NULL' value is 0 fontforge-20220308/fontforge/sfd.c:2951:35: note: Null pointer dereference fontforge-20220308/fontforge/sfd.c:2954:42: warning: Possible null pointer dereference: dirname [nullPointer] fontforge-20220308/fontforge/sfd.c:2897:48: note: Calling function 'SFD_Dump', 6th argument 'NULL' value is 0 fontforge-20220308/fontforge/sfd.c:2954:42: note: Null pointer dereference fontforge-20220308/fontforge/sfd.c:3848:6: warning: Possible null pointer dereference: pt [nullPointer] fontforge-20220308/fontforge/sfd.c:3830:15: note: Assignment 'buf=NULL', assigned value is 0 fontforge-20220308/fontforge/sfd.c:3830:25: note: Assignment 'pt=buf', assigned value is 0 fontforge-20220308/fontforge/sfd.c:3835:29: note: Assuming condition is false fontforge-20220308/fontforge/sfd.c:3848:6: note: Null pointer dereference fontforge-20220308/fontforge/sfd.c:3971:6: warning: Possible null pointer dereference: pt [nullPointer] fontforge-20220308/fontforge/sfd.c:3947:15: note: Assignment 'buf=NULL', assigned value is 0 fontforge-20220308/fontforge/sfd.c:3947:25: note: Assignment 'pt=buf', assigned value is 0 fontforge-20220308/fontforge/sfd.c:3958:29: note: Assuming condition is false fontforge-20220308/fontforge/sfd.c:3971:6: note: Null pointer dereference fontforge-20220308/fontforge/sfd.c:478:9: warning: Either the condition 'pt' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fontforge-20220308/fontforge/sfd.c:482:17: note: Assuming that condition 'pt' is not redundant fontforge-20220308/fontforge/sfd.c:478:9: note: Null pointer addition fontforge-20220308/fontforge/sfd.c:1645:28: style: Variable 'limit' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:1643:23: note: limit is assigned fontforge-20220308/fontforge/sfd.c:1645:28: note: limit is overwritten fontforge-20220308/fontforge/sfd.c:4031:8: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4030:8: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4031:8: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4032:8: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4031:8: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4032:8: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4033:8: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4032:8: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4033:8: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4034:8: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4033:8: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4034:8: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4051:8: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4034:8: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4051:8: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4054:5: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4053:5: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4054:5: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4055:5: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4054:5: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4055:5: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4056:5: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4055:5: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4056:5: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4057:5: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4056:5: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4057:5: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4058:5: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4057:5: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4058:5: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4059:5: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4058:5: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4059:5: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:4609:13: style: Variable 'ch' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/sfd.c:4591:5: note: ch is assigned fontforge-20220308/fontforge/sfd.c:4609:13: note: ch is overwritten fontforge-20220308/fontforge/sfd.c:5068:14: style: The comparison 'script != 0' is always false. [knownConditionTrueFalse] fontforge-20220308/fontforge/sfd.c:5000:23: note: 'script' is assigned value '0' here. fontforge-20220308/fontforge/sfd.c:5068:14: note: The comparison 'script != 0' is always false. fontforge-20220308/fontforge/sfd.c:7194:9: style: The comparison 'i != 0' is always false. [knownConditionTrueFalse] fontforge-20220308/fontforge/sfd.c:7184:14: note: 'i' is assigned value '0' here. fontforge-20220308/fontforge/sfd.c:7194:9: note: The comparison 'i != 0' is always false. fontforge-20220308/fontforge/sfd.c:2217:12: style: Checking if unsigned expression 'bread' is less than zero. [unsignedLessThanZero] fontforge-20220308/fontforge/sfd.c:3624:31: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/sfd.c:3232:8: style:inconclusive: Function 'SFDWriteBakExtended' argument 6 names different: declaration 'localPrefMaxBackupsToKeep' definition 'localRevisionsToRetain'. [funcArgNamesDifferent] fontforge-20220308/fontforge/sfd.h:114:109: note: Function 'SFDWriteBakExtended' argument 6 names different: declaration 'localPrefMaxBackupsToKeep' definition 'localRevisionsToRetain'. fontforge-20220308/fontforge/sfd.c:3232:8: note: Function 'SFDWriteBakExtended' argument 6 names different: declaration 'localPrefMaxBackupsToKeep' definition 'localRevisionsToRetain'. fontforge-20220308/fontforge/sfd.c:1758:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:1540:9: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:1758:7: note: Shadow variable fontforge-20220308/fontforge/sfd.c:4102:10: style: Local variable 'flags' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:4075:9: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:4102:10: note: Shadow variable fontforge-20220308/fontforge/sfd.c:4316:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:4242:9: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:4316:7: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5162:11: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5111:60: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5162:11: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5461:10: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5297:60: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5461:10: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5515:7: style: Local variable 'ch' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5292:21: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5515:7: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5563:10: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5297:66: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5563:10: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5598:31: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5297:60: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5598:31: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5645:21: style: Local variable 'last' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5298:10: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5645:21: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5763:21: style: Local variable 'last' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5298:10: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5763:21: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5801:22: style: Local variable 'last' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5298:10: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5801:22: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5884:11: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5297:60: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5884:11: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5960:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5297:66: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5960:7: note: Shadow variable fontforge-20220308/fontforge/sfd.c:5980:15: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:5297:60: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:5980:15: note: Shadow variable fontforge-20220308/fontforge/sfd.c:6887:6: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:6741:13: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:6887:6: note: Shadow variable fontforge-20220308/fontforge/sfd.c:7776:11: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:7634:9: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:7776:11: note: Shadow variable fontforge-20220308/fontforge/sfd.c:8233:6: style: Local variable 'old' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:7636:9: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:8233:6: note: Shadow variable fontforge-20220308/fontforge/sfd.c:8341:6: style: Local variable 'old' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:7636:9: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:8341:6: note: Shadow variable fontforge-20220308/fontforge/sfd.c:8638:10: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:8470:18: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:8638:10: note: Shadow variable fontforge-20220308/fontforge/sfd.c:9004:10: style: Local variable 'enc' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/sfd.c:8475:15: note: Shadowed declaration fontforge-20220308/fontforge/sfd.c:9004:10: note: Shadow variable fontforge-20220308/fontforge/sfd.c:278:21: style: Variable 'prev_cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:278:29: style: Variable 'prev' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:278:35: style: Variable 'in' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:371:11: style: Variable 'prev_cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:371:16: style: Variable 'prev' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:378:11: style: Variable 'prev_cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:378:16: style: Variable 'prev' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:895:12: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:4059:5: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5111:16: style: Variable 'isliga' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5122:13: style: Variable 'script' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5125:13: style: Variable 'script' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5216:11: style: Variable 'last' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5223:6: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5236:6: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5250:9: style: Variable 'last' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5297:16: style: Variable 'isliga' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5644:19: style: Variable 'undo' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5645:26: style: Variable 'last' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5945:6: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:5958:6: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:6355:18: style: Variable 'undo' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/sfd.c:7635:19: style: Variable 'kc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineoverlap.c:2373:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineoverlap.c:2373:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineoverlap.c:2373:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineoverlap.c:2375:37: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineoverlap.c:2375:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineoverlap.c:2375:37: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineoverlap.c:2380:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineoverlap.c:2380:21: note: Address of variable taken here. fontforge-20220308/fontforge/splineoverlap.c:2380:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineoverlap.c:2382:37: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineoverlap.c:2382:21: note: Address of variable taken here. fontforge-20220308/fontforge/splineoverlap.c:2382:37: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineoverlap.c:736:5: warning: Either the condition 'output_list_pos!=NULL' is redundant or there is possible null pointer dereference: output_list_pos. [nullPointerRedundantCheck] fontforge-20220308/fontforge/splineoverlap.c:734:28: note: Assuming that condition 'output_list_pos!=NULL' is not redundant fontforge-20220308/fontforge/splineoverlap.c:736:5: note: Null pointer dereference fontforge-20220308/fontforge/splineoverlap.c:1863:11: style: Variable 'x1o' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splineoverlap.c:1822:8: note: x1o is assigned fontforge-20220308/fontforge/splineoverlap.c:1863:11: note: x1o is overwritten fontforge-20220308/fontforge/splineoverlap.c:1863:21: style: Variable 'x2o' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splineoverlap.c:1822:18: note: x2o is assigned fontforge-20220308/fontforge/splineoverlap.c:1863:21: note: x2o is overwritten fontforge-20220308/fontforge/splineoverlap.c:1966:11: style: Variable 'y1o' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splineoverlap.c:1926:8: note: y1o is assigned fontforge-20220308/fontforge/splineoverlap.c:1966:11: note: y1o is overwritten fontforge-20220308/fontforge/splineoverlap.c:1966:21: style: Variable 'y2o' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splineoverlap.c:1926:18: note: y2o is assigned fontforge-20220308/fontforge/splineoverlap.c:1966:21: note: y2o is overwritten fontforge-20220308/fontforge/splineoverlap.c:1675:25: style: Local variable 't1' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineoverlap.c:1661:14: note: Shadowed declaration fontforge-20220308/fontforge/splineoverlap.c:1675:25: note: Shadow variable fontforge-20220308/fontforge/splineoverlap.c:1675:28: style: Local variable 't2' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineoverlap.c:1661:17: note: Shadowed declaration fontforge-20220308/fontforge/splineoverlap.c:1675:28: note: Shadow variable fontforge-20220308/fontforge/splineoverlap.c:1760:12: style: Local variable 't1' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineoverlap.c:1661:14: note: Shadowed declaration fontforge-20220308/fontforge/splineoverlap.c:1760:12: note: Shadow variable fontforge-20220308/fontforge/splineoverlap.c:1760:16: style: Local variable 't2' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineoverlap.c:1661:17: note: Shadowed declaration fontforge-20220308/fontforge/splineoverlap.c:1760:16: note: Shadow variable fontforge-20220308/fontforge/splineoverlap.c:1870:12: style: Local variable 't1' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineoverlap.c:1661:14: note: Shadowed declaration fontforge-20220308/fontforge/splineoverlap.c:1870:12: note: Shadow variable fontforge-20220308/fontforge/splineoverlap.c:1870:16: style: Local variable 't2' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineoverlap.c:1661:17: note: Shadowed declaration fontforge-20220308/fontforge/splineoverlap.c:1870:16: note: Shadow variable fontforge-20220308/fontforge/splineoverlap.c:446:76: style: Parameter 'findm' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineoverlap.c:453:77: style: Parameter 'findm' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineoverlap.c:475:83: style: Parameter 'findm' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineoverlap.c:978:55: style: Parameter 'm' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineoverlap.c:1627:37: style: Parameter 'inter' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineoverlap.c:3018:47: style: Parameter 'curil' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineoverlap.c:3061:56: style: Parameter 'finalm' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineoverlap.c:1248:12: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineoverlap.c:1663:19: style: Variable 'oncebefore' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineoverlap.c:3293:22: style: Variable 'reverse_flag' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineoverlap.c:3781:39: style: Variable 't' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinesave.c:1132:3: error: Address of local auto-variable assigned to a function parameter. [autoVariables] fontforge-20220308/fontforge/splinesave.c:476:14: style: Condition 'max-min==5' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/splinesave.c:474:15: note: Assuming that condition 'max-1>min' is not redundant fontforge-20220308/fontforge/splinesave.c:476:14: note: Condition 'max-min==5' is always false fontforge-20220308/fontforge/splinesave.c:2686:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2702:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2703:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2704:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2705:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2706:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2707:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2708:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2709:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2710:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2711:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2712:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2713:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:2714:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splinesave.c:1394:5: warning: Either the condition 'hdb!=NULL' is redundant or there is possible null pointer dereference: hdb. [nullPointerRedundantCheck] fontforge-20220308/fontforge/splinesave.c:1396:13: note: Assuming that condition 'hdb!=NULL' is not redundant fontforge-20220308/fontforge/splinesave.c:1394:5: note: Null pointer dereference fontforge-20220308/fontforge/splinesave.c:1581:10: warning: Either the condition 'gi' is redundant or there is possible null pointer dereference: gi. [nullPointerRedundantCheck] fontforge-20220308/fontforge/splinesave.c:1565:7: note: Assuming that condition 'gi' is not redundant fontforge-20220308/fontforge/splinesave.c:1581:10: note: Null pointer dereference fontforge-20220308/fontforge/splinesave.c:3245:2: warning: Either the condition 'sc!=NULL' is redundant or there is possible null pointer dereference: sc. [nullPointerRedundantCheck] fontforge-20220308/fontforge/splinesave.c:3241:37: note: Assuming that condition 'sc!=NULL' is not redundant fontforge-20220308/fontforge/splinesave.c:3245:2: note: Null pointer dereference fontforge-20220308/fontforge/splinesave.c:2069:23: style: Variable 'gi.instance_count' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splinesave.c:2062:23: note: gi.instance_count is assigned fontforge-20220308/fontforge/splinesave.c:2069:23: note: gi.instance_count is overwritten fontforge-20220308/fontforge/splinesave.c:428:21: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3357:21: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3361:21: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3365:21: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3371:21: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3372:21: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3373:21: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3567:35: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3571:35: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3575:35: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3581:35: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3582:35: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:3583:35: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesave.c:1224:11: style: Local variable 'refs' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinesave.c:1208:29: note: Shadowed declaration fontforge-20220308/fontforge/splinesave.c:1224:11: note: Shadow variable fontforge-20220308/fontforge/splinesave.c:598:34: style: Parameter 'mask' can be declared as const array [constParameter] fontforge-20220308/fontforge/splinesave.c:906:65: style: Parameter 'rpos' can be declared as const array [constParameter] fontforge-20220308/fontforge/splinesave.c:1189:39: style: Parameter 'r' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splinesave.c:2284:42: style: Parameter 'mask' can be declared as const array [constParameter] fontforge-20220308/fontforge/splinesave.c:2354:79: style: Parameter 'done' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splinesave.c:2475:80: style: Parameter 'done' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splinesave.c:2169:15: warning: Size of pointer 'fdind' used instead of size of its data. [pointerSize] fontforge-20220308/fontforge/splinesave.c:2170:22: warning: Size of pointer 'fdind' used instead of size of its data. [pointerSize] fontforge-20220308/fontforge/splinesave.c:824:21: error: Uninitialized variables: to.x, to.y [uninitvar] fontforge-20220308/fontforge/splinesave.c:817:17: note: Assuming condition is false fontforge-20220308/fontforge/splinesave.c:821:10: note: Assignment 'to=temp', assigned value is fontforge-20220308/fontforge/splinesave.c:824:21: note: Uninitialized variables: to.x, to.y fontforge-20220308/fontforge/splinesave.c:1440:13: error: Uninitialized variables: refs.checked, refs.selected, refs.point_match, refs.encoded, refs.justtranslated, refs.use_my_metrics, refs.round_translation_to_grid, refs.point_match_out_of_date, refs.adobe_enc, refs.orig_pos, refs.unicode_enc, refs.layers, refs.layer_cnt, refs.next, refs.bb, refs.sc, refs.top, refs.match_pt_base, refs.match_pt_ref [uninitvar] fontforge-20220308/fontforge/splinesave.c:1438:17: note: Assuming condition is false fontforge-20220308/fontforge/splinesave.c:1440:13: note: Uninitialized variables: refs.checked, refs.selected, refs.point_match, refs.encoded, refs.justtranslated, refs.use_my_metrics, refs.round_translation_to_grid, refs.point_match_out_of_date, refs.adobe_enc, refs.orig_pos, refs.unicode_enc, refs.layers, refs.layer_cnt, refs.next, refs.bb, refs.sc, refs.top, refs.match_pt_base, refs.match_pt_ref fontforge-20220308/fontforge/splinesave.c:1528:3: error: Uninitialized variable: hm [legacyUninitvar] fontforge-20220308/fontforge/splinesave.c:145:9: style: struct member 'glyphinfo::subfontcnt' is never used. [unusedStructMember] fontforge-20220308/fontforge/splinesave.c:2373:19: style: Variable 'hvcnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinesave.c:2531:5: style: Variable 'hv' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splinestroke.c:891:58: style:inconclusive: Function 'AppendCubicSplinePortion' argument 2 names different: declaration 't_start' definition 't_fm'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinestroke.h:30:65: note: Function 'AppendCubicSplinePortion' argument 2 names different: declaration 't_start' definition 't_fm'. fontforge-20220308/fontforge/splinestroke.c:891:58: note: Function 'AppendCubicSplinePortion' argument 2 names different: declaration 't_start' definition 't_fm'. fontforge-20220308/fontforge/splinestroke.c:891:72: style:inconclusive: Function 'AppendCubicSplinePortion' argument 3 names different: declaration 't_end' definition 't_to'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinestroke.h:31:54: note: Function 'AppendCubicSplinePortion' argument 3 names different: declaration 't_end' definition 't_to'. fontforge-20220308/fontforge/splinestroke.c:891:72: note: Function 'AppendCubicSplinePortion' argument 3 names different: declaration 't_end' definition 't_to'. fontforge-20220308/fontforge/splinestroke.c:892:52: style:inconclusive: Function 'AppendCubicSplinePortion' argument 4 names different: declaration 'start' definition 'tailp'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinestroke.h:31:74: note: Function 'AppendCubicSplinePortion' argument 4 names different: declaration 'start' definition 'tailp'. fontforge-20220308/fontforge/splinestroke.c:892:52: note: Function 'AppendCubicSplinePortion' argument 4 names different: declaration 'start' definition 'tailp'. fontforge-20220308/fontforge/splinestroke.c:954:50: style:inconclusive: Function 'AppendCubicSplineSetPortion' argument 1 names different: declaration 's' definition 'spline_fm'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinestroke.h:32:57: note: Function 'AppendCubicSplineSetPortion' argument 1 names different: declaration 's' definition 'spline_fm'. fontforge-20220308/fontforge/splinestroke.c:954:50: note: Function 'AppendCubicSplineSetPortion' argument 1 names different: declaration 's' definition 'spline_fm'. fontforge-20220308/fontforge/splinestroke.c:954:69: style:inconclusive: Function 'AppendCubicSplineSetPortion' argument 2 names different: declaration 't_start' definition 't_fm'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinestroke.h:32:68: note: Function 'AppendCubicSplineSetPortion' argument 2 names different: declaration 't_start' definition 't_fm'. fontforge-20220308/fontforge/splinestroke.c:954:69: note: Function 'AppendCubicSplineSetPortion' argument 2 names different: declaration 't_start' definition 't_fm'. fontforge-20220308/fontforge/splinestroke.c:955:50: style:inconclusive: Function 'AppendCubicSplineSetPortion' argument 3 names different: declaration 's_end' definition 'spline_to'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinestroke.h:33:57: note: Function 'AppendCubicSplineSetPortion' argument 3 names different: declaration 's_end' definition 'spline_to'. fontforge-20220308/fontforge/splinestroke.c:955:50: note: Function 'AppendCubicSplineSetPortion' argument 3 names different: declaration 's_end' definition 'spline_to'. fontforge-20220308/fontforge/splinestroke.c:955:69: style:inconclusive: Function 'AppendCubicSplineSetPortion' argument 4 names different: declaration 't_end' definition 't_to'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinestroke.h:33:72: note: Function 'AppendCubicSplineSetPortion' argument 4 names different: declaration 't_end' definition 't_to'. fontforge-20220308/fontforge/splinestroke.c:955:69: note: Function 'AppendCubicSplineSetPortion' argument 4 names different: declaration 't_end' definition 't_to'. fontforge-20220308/fontforge/splinestroke.c:956:20: style:inconclusive: Function 'AppendCubicSplineSetPortion' argument 5 names different: declaration 'dst_start' definition 'tailp'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinestroke.h:34:62: note: Function 'AppendCubicSplineSetPortion' argument 5 names different: declaration 'dst_start' definition 'tailp'. fontforge-20220308/fontforge/splinestroke.c:956:20: note: Function 'AppendCubicSplineSetPortion' argument 5 names different: declaration 'dst_start' definition 'tailp'. fontforge-20220308/fontforge/splinestroke.c:1896:49: error: Uninitialized struct member: cv_fm.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1907:43: error: Uninitialized struct member: cv_fm.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1909:23: error: Uninitialized struct member: cv_fm.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1896:49: error: Uninitialized struct member: cv_fm.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1907:43: error: Uninitialized struct member: cv_fm.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1909:23: error: Uninitialized struct member: cv_fm.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1886:54: error: Uninitialized struct member: cv_to.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1907:23: error: Uninitialized struct member: cv_to.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1909:43: error: Uninitialized struct member: cv_to.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1886:54: error: Uninitialized struct member: cv_to.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1907:23: error: Uninitialized struct member: cv_to.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1909:43: error: Uninitialized struct member: cv_to.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1892:36: error: Uninitialized struct member: center_fm.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1902:27: error: Uninitialized struct member: center_fm.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1892:36: error: Uninitialized struct member: center_fm.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1902:27: error: Uninitialized struct member: center_fm.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1882:41: error: Uninitialized struct member: center_to.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1902:44: error: Uninitialized struct member: center_to.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1882:41: error: Uninitialized struct member: center_to.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1902:44: error: Uninitialized struct member: center_to.y [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1930:40: error: Uninitialized struct member: i2.x [uninitStructMember] fontforge-20220308/fontforge/splinestroke.c:1930:40: error: Uninitialized struct member: i2.y [uninitStructMember] fontforge-20220308/fontforge/splinesaveafm.c:461:12: style: Condition 'sc==NULL' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/splinesaveafm.c:680:12: style: Condition 'sc==NULL' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/splinesaveafm.c:1177:56: style: Condition 'sc!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/splinesaveafm.c:3179:33: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforge/splinesaveafm.c:148:8: warning:inconclusive: Width 40 given in format string (no. 1) is smaller than destination buffer 'name[44]'. [invalidScanfFormatWidth_smaller] fontforge-20220308/fontforge/splinesaveafm.c:151:4: warning:inconclusive: Width 40 given in format string (no. 1) is smaller than destination buffer 'second[44]'. [invalidScanfFormatWidth_smaller] fontforge-20220308/fontforge/splinesaveafm.c:151:4: warning:inconclusive: Width 40 given in format string (no. 2) is smaller than destination buffer 'lig[44]'. [invalidScanfFormatWidth_smaller] fontforge-20220308/fontforge/splinesaveafm.c:1894:3: error: Common realloc mistake: 'all' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/splinesaveafm.c:1421:39: warning: Either the condition 'map!=NULL' is redundant or there is possible null pointer dereference: map. [nullPointerRedundantCheck] fontforge-20220308/fontforge/splinesaveafm.c:1423:14: note: Assuming that condition 'map!=NULL' is not redundant fontforge-20220308/fontforge/splinesaveafm.c:1421:39: note: Null pointer dereference fontforge-20220308/fontforge/splinesaveafm.c:2131:14: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesaveafm.c:2132:14: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesaveafm.c:2133:14: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/splinesaveafm.c:145:12: style: Local variable 'pt' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinesaveafm.c:119:24: note: Shadowed declaration fontforge-20220308/fontforge/splinesaveafm.c:145:12: note: Shadow variable fontforge-20220308/fontforge/splinesaveafm.c:1411:15: style: Local variable 'ap' shadows outer argument [shadowArgument] fontforge-20220308/fontforge/splinesaveafm.c:1409:60: note: Shadowed declaration fontforge-20220308/fontforge/splinesaveafm.c:1411:15: note: Shadow variable fontforge-20220308/fontforge/splinesaveafm.c:1460:15: style: Local variable 'ap' shadows outer argument [shadowArgument] fontforge-20220308/fontforge/splinesaveafm.c:1449:56: note: Shadowed declaration fontforge-20220308/fontforge/splinesaveafm.c:1460:15: note: Shadow variable fontforge-20220308/fontforge/splinesaveafm.c:2789:10: style: Local variable 'diff' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splinesaveafm.c:2737:27: note: Shadowed declaration fontforge-20220308/fontforge/splinesaveafm.c:2789:10: note: Shadow variable fontforge-20220308/fontforge/splinesaveafm.c:2193:26: style: Parameter 'winmap' can be declared as const array [constParameter] fontforge-20220308/fontforge/splinesaveafm.c:3160:45: warning: Either the condition 'lkcnt-former[i]-1>=128' is redundant or there is signed integer overflow for expression '(lkcnt-former[i]-1)<<24'. [integerOverflowCond] fontforge-20220308/fontforge/splinesaveafm.c:3161:27: note: Assuming that condition 'lkcnt-former[i]-1>=128' is not redundant fontforge-20220308/fontforge/splinesaveafm.c:3160:45: note: Integer overflow fontforge-20220308/fontforge/splinesaveafm.c:3186:48: error: Signed integer overflow for expression '(lknext==NULL?128:0)<<24'. [integerOverflow] fontforge-20220308/fontforge/splinesaveafm.c:2567:13: style: struct member 'tfm_header::ignored' is never used. [unusedStructMember] fontforge-20220308/fontforge/splinesaveafm.c:2574:14: style: struct member 'tfm_params::slant' is never used. [unusedStructMember] fontforge-20220308/fontforge/splinesaveafm.c:2575:14: style: struct member 'tfm_params::space' is never used. [unusedStructMember] fontforge-20220308/fontforge/splinesaveafm.c:2576:14: style: struct member 'tfm_params::space_stretch' is never used. [unusedStructMember] fontforge-20220308/fontforge/splinesaveafm.c:2578:14: style: struct member 'tfm_params::space_shrink' is never used. [unusedStructMember] fontforge-20220308/fontforge/splinesaveafm.c:2580:14: style: struct member 'tfm_params::x_height' is never used. [unusedStructMember] fontforge-20220308/fontforge/splinesaveafm.c:2581:14: style: struct member 'tfm_params::quad' is never used. [unusedStructMember] fontforge-20220308/fontforge/splinesaveafm.c:2582:14: style: struct member 'tfm_params::extra_space' is never used. [unusedStructMember] fontforge-20220308/fontforge/splineutil.c:4741:25: warning: Either the condition 'i==-1' is redundant or the array 'ts[4]' is accessed at index -1, which is out of bounds. [negativeIndex] fontforge-20220308/fontforge/splineutil.c:4747:11: note: Assuming that condition 'i==-1' is not redundant fontforge-20220308/fontforge/splineutil.c:4741:25: note: Negative array index fontforge-20220308/fontforge/splineutil.c:4223:47: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4223:27: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4223:47: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4225:48: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4225:30: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4225:48: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4330:43: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4330:36: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4330:43: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4331:43: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4331:36: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4331:43: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4332:43: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4332:36: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4332:43: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4333:43: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4333:36: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4333:43: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4341:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4341:22: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4341:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4342:29: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4342:15: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4342:29: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4345:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4345:22: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4345:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4346:29: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4346:15: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4346:29: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4357:35: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4357:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4357:35: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4358:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4358:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4358:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4366:35: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4366:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4366:35: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4367:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4367:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4367:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4370:35: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4370:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4370:35: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:4371:33: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:4371:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:4371:33: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7027:28: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7027:8: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7027:28: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7028:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7028:4: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7028:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7037:26: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7037:8: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7037:26: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7038:22: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7038:4: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7038:22: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7073:41: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7073:9: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7073:41: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7074:41: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7074:10: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7074:41: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7075:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7075:9: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7075:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7089:39: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7089:21: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7089:39: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7090:29: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7090:7: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7090:29: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7091:29: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7091:7: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7091:29: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7092:25: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7092:7: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7092:25: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7093:34: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7093:12: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7093:34: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7094:30: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7094:8: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7094:30: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7095:26: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7095:4: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7095:26: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7096:31: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7096:9: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7096:31: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7099:34: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7099:12: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7099:34: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7100:30: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7100:8: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7100:30: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7101:26: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7101:4: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7101:26: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7102:31: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7102:9: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7102:31: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7122:24: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7122:6: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7122:24: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7125:24: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7125:6: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7125:24: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7320:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7320:12: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7320:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7323:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7323:8: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7323:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7324:44: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7324:25: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7324:44: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7326:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7326:4: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7326:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7334:25: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7334:8: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7334:25: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7335:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7335:25: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7335:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7336:24: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7336:7: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7336:24: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7337:45: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7337:32: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7337:45: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:7338:21: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil.c:7338:4: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil.c:7338:21: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil.c:3390:34: style: Expression is always true because 'else if' condition is opposite to previous condition at line 3385. [multiCondition] fontforge-20220308/fontforge/splineutil.c:3385:34: note: first condition fontforge-20220308/fontforge/splineutil.c:3390:34: note: else if condition is opposite to first condition fontforge-20220308/fontforge/splineutil.c:1709:22: style: Redundant condition: !everything. 'everything || (!everything && img->selected)' is equivalent to 'everything || img->selected' [redundantCondition] fontforge-20220308/fontforge/splineutil.c:7163:20: style: Redundant condition: sel. '!sel || (sel && sp->selected)' is equivalent to '!sel || sp->selected' [redundantCondition] fontforge-20220308/fontforge/splineutil.c:7184:23: style: Redundant condition: sel. '!sel || (sel && sp->selected)' is equivalent to '!sel || sp->selected' [redundantCondition] fontforge-20220308/fontforge/splineutil.c:2562:10: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforge/splineutil.c:2560:10: note: First condition fontforge-20220308/fontforge/splineutil.c:2562:10: note: Second condition fontforge-20220308/fontforge/splineutil.c:1091:15: style: Condition 'sp->next!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/splineutil.c:1094:15: style: Condition 'sp->prev!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/splineutil.c:3162:20: style: Condition 'rf->layer_cnt>0' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/splineutil.c:3101:21: note: Assignment 'rf->layer_cnt=0', assigned value is 0 fontforge-20220308/fontforge/splineutil.c:3102:13: note: Assuming condition is false fontforge-20220308/fontforge/splineutil.c:3162:20: note: Condition 'rf->layer_cnt>0' is always false fontforge-20220308/fontforge/splineutil.c:5535:23: style: Condition 'pst->type==pst_position' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/splineutil.c:5533:23: note: Assuming that condition 'pst->type!=pst_position' is not redundant fontforge-20220308/fontforge/splineutil.c:5535:23: note: Condition 'pst->type==pst_position' is always true fontforge-20220308/fontforge/splineutil.c:1888:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforge/splineutil.c:4650:2: warning: Either the condition 'spl!=NULL' is redundant or there is possible null pointer dereference: spl. [nullPointerRedundantCheck] fontforge-20220308/fontforge/splineutil.c:4648:13: note: Assuming that condition 'spl!=NULL' is not redundant fontforge-20220308/fontforge/splineutil.c:4650:2: note: Null pointer dereference fontforge-20220308/fontforge/splineutil.c:2447:17: style: Variable 'sf->descent' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splineutil.c:2444:36: note: sf->descent is assigned fontforge-20220308/fontforge/splineutil.c:2447:17: note: sf->descent is overwritten fontforge-20220308/fontforge/splineutil.c:7779:10: style: Variable 'w[0]' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splineutil.c:7776:10: note: w[0] is assigned fontforge-20220308/fontforge/splineutil.c:7779:10: note: w[0] is overwritten fontforge-20220308/fontforge/splineutil.c:7842:6: style: Variable 'ecnt' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splineutil.c:7832:11: note: ecnt is assigned fontforge-20220308/fontforge/splineutil.c:7842:6: note: ecnt is overwritten fontforge-20220308/fontforge/splineutil.c:114:29: style:inconclusive: Function 'strconcat' argument 1 names different: declaration 'str' definition 'str1'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2096:36: note: Function 'strconcat' argument 1 names different: declaration 'str' definition 'str1'. fontforge-20220308/fontforge/splineutil.c:114:29: note: Function 'strconcat' argument 1 names different: declaration 'str' definition 'str1'. fontforge-20220308/fontforge/splineutil.c:1983:33: style:inconclusive: Function 'SplinePointListTransform' argument 3 names different: declaration 'allpoints' definition 'tpt'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2222:116: note: Function 'SplinePointListTransform' argument 3 names different: declaration 'allpoints' definition 'tpt'. fontforge-20220308/fontforge/splineutil.c:1983:33: note: Function 'SplinePointListTransform' argument 3 names different: declaration 'allpoints' definition 'tpt'. fontforge-20220308/fontforge/splineutil.c:3543:73: style:inconclusive: Function 'SplineSolve' argument 4 names different: declaration 'sought_y' definition 'sought'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2252:80: note: Function 'SplineSolve' argument 4 names different: declaration 'sought_y' definition 'sought'. fontforge-20220308/fontforge/splineutil.c:3543:73: note: Function 'SplineSolve' argument 4 names different: declaration 'sought_y' definition 'sought'. fontforge-20220308/fontforge/splineutil.c:3566:78: style:inconclusive: Function 'SplineSolveFixup' argument 4 names different: declaration 'sought_y' definition 'sought'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2254:85: note: Function 'SplineSolveFixup' argument 4 names different: declaration 'sought_y' definition 'sought'. fontforge-20220308/fontforge/splineutil.c:3566:78: note: Function 'SplineSolveFixup' argument 4 names different: declaration 'sought_y' definition 'sought'. fontforge-20220308/fontforge/splineutil.c:3633:11: style:inconclusive: Function 'IterateSplineSolve' argument 4 names different: declaration 'sought_y' definition 'sought'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splineutil.h:37:95: note: Function 'IterateSplineSolve' argument 4 names different: declaration 'sought_y' definition 'sought'. fontforge-20220308/fontforge/splineutil.c:3633:11: note: Function 'IterateSplineSolve' argument 4 names different: declaration 'sought_y' definition 'sought'. fontforge-20220308/fontforge/splineutil.c:3683:11: style:inconclusive: Function 'IterateSplineSolveFixup' argument 4 names different: declaration 'sought_y' definition 'sought'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splineutil.h:39:100: note: Function 'IterateSplineSolveFixup' argument 4 names different: declaration 'sought_y' definition 'sought'. fontforge-20220308/fontforge/splineutil.c:3683:11: note: Function 'IterateSplineSolveFixup' argument 4 names different: declaration 'sought_y' definition 'sought'. fontforge-20220308/fontforge/splineutil.c:5522:19: style:inconclusive: Function 'PSTFree' argument 1 names different: declaration 'lig' definition 'pst'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2153:26: note: Function 'PSTFree' argument 1 names different: declaration 'lig' definition 'pst'. fontforge-20220308/fontforge/splineutil.c:5522:19: note: Function 'PSTFree' argument 1 names different: declaration 'lig' definition 'pst'. fontforge-20220308/fontforge/splineutil.c:2579:9: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineutil.c:2545:12: note: Shadowed declaration fontforge-20220308/fontforge/splineutil.c:2579:9: note: Shadow variable fontforge-20220308/fontforge/splineutil.c:3394:11: style: Local variable 'd' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineutil.c:3332:14: note: Shadowed declaration fontforge-20220308/fontforge/splineutil.c:3394:11: note: Shadow variable fontforge-20220308/fontforge/splineutil.c:7867:32: style: Local variable 'best' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineutil.c:7766:21: note: Shadowed declaration fontforge-20220308/fontforge/splineutil.c:7867:32: note: Shadow variable fontforge-20220308/fontforge/splineutil.c:1703:52: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/splineutil.c:1733:63: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/splineutil.c:1824:47: style: Parameter 'transform' can be declared as const array [constParameter] fontforge-20220308/fontforge/splineutil.c:2468:51: style: Parameter 'fontmatrix' can be declared as const array [constParameter] fontforge-20220308/fontforge/splineutil.c:3231:52: style: Parameter 'rsc' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineutil.c:5324:85: style: Parameter 'from' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineutil.c:7553:32: style: Parameter 'ss' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineutil.c:7566:30: style: Parameter 's' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineutil.c:7582:31: style: Parameter 'sp' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineutil.c:7697:34: style: Parameter 'w' can be declared as const array [constParameter] fontforge-20220308/fontforge/splineutil.c:7729:34: style: Parameter 'w' can be declared as const array [constParameter] fontforge-20220308/fontforge/splineutil.c:7400:9: error: Uninitialized variable: changed [uninitvar] fontforge-20220308/fontforge/splineutil.c:7394:25: note: Assuming condition is false fontforge-20220308/fontforge/splineutil.c:7400:9: note: Uninitialized variable: changed fontforge-20220308/fontforge/splineutil.c:7813:18: error: Uninitialized variable: tzeros [uninitvar] fontforge-20220308/fontforge/splineutil.c:7794:19: note: Assuming condition is false fontforge-20220308/fontforge/splineutil.c:7813:18: note: Uninitialized variable: tzeros fontforge-20220308/fontforge/splineutil.c:7859:17: error: Uninitialized variable: tzeros [uninitvar] fontforge-20220308/fontforge/splineutil.c:7848:14: note: Assuming condition is false fontforge-20220308/fontforge/splineutil.c:7859:17: note: Uninitialized variable: tzeros fontforge-20220308/fontforge/splineutil.c:96:30: style: struct member 'chunk::next' is never used. [unusedStructMember] fontforge-20220308/fontforge/splineutil.c:97:32: style: struct member 'chunk2::next' is never used. [unusedStructMember] fontforge-20220308/fontforge/splineutil.c:97:42: style: struct member 'chunk2::flag' is never used. [unusedStructMember] fontforge-20220308/fontforge/splineutil.c:520:7: style: Variable 'last' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineutil.c:528:7: style: Variable 'last' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineutil.c:3044:15: style: Variable 'j' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineutil.c:3530:7: style: Variable 'top' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineutil.c:3533:10: style: Variable 'bottom' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineutil.c:3905:14: style: Variable 'j' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/start.c:84:40: style: Expression is always true because 'else if' condition is opposite to previous condition at line 83. [multiCondition] fontforge-20220308/fontforge/start.c:83:35: note: first condition fontforge-20220308/fontforge/start.c:84:40: note: else if condition is opposite to first condition fontforge-20220308/fontforge/splineutil2.c:234:41: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil2.c:234:23: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil2.c:234:41: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil2.c:236:37: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil2.c:236:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil2.c:236:37: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil2.c:237:28: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil2.c:237:10: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil2.c:237:28: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil2.c:242:41: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil2.c:242:23: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil2.c:242:41: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil2.c:244:37: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil2.c:244:19: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil2.c:244:37: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil2.c:245:28: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/splineutil2.c:245:10: note: Address of variable taken here. fontforge-20220308/fontforge/splineutil2.c:245:28: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/splineutil2.c:3102:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/fontforge/splineutil2.c:3104:7: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/fontforge/splineutil2.c:3574:15: style: Condition 'sp->prev!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/splineutil2.c:1140:11: warning: Either the condition 'curp==NULL' is redundant or there is possible null pointer dereference: curp. [nullPointerRedundantCheck] fontforge-20220308/fontforge/splineutil2.c:1148:11: note: Assuming that condition 'curp==NULL' is not redundant fontforge-20220308/fontforge/splineutil2.c:1140:11: note: Null pointer dereference fontforge-20220308/fontforge/splineutil2.c:2030:11: warning: Either the condition 'sp->next!=NULL' is redundant or there is possible null pointer dereference: sp->next. [nullPointerRedundantCheck] fontforge-20220308/fontforge/splineutil2.c:2032:12: note: Assuming that condition 'sp->next!=NULL' is not redundant fontforge-20220308/fontforge/splineutil2.c:2030:11: note: Null pointer dereference fontforge-20220308/fontforge/splineutil2.c:2046:24: warning: Either the condition 'next==NULL' is redundant or there is possible null pointer dereference: next. [nullPointerRedundantCheck] fontforge-20220308/fontforge/splineutil2.c:2066:15: note: Assuming that condition 'next==NULL' is not redundant fontforge-20220308/fontforge/splineutil2.c:2046:24: note: Null pointer dereference fontforge-20220308/fontforge/splineutil2.c:299:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/splineutil2.c:294:6: note: ret is assigned fontforge-20220308/fontforge/splineutil2.c:299:6: note: ret is overwritten fontforge-20220308/fontforge/splineutil2.c:2176:1: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] fontforge-20220308/fontforge/splineutil2.c:3049:16: style: Local variable 'default_fv_row_count' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineutil2.c:58:5: note: Shadowed declaration fontforge-20220308/fontforge/splineutil2.c:3049:16: note: Shadow variable fontforge-20220308/fontforge/splineutil2.c:3049:38: style: Local variable 'default_fv_col_count' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineutil2.c:59:5: note: Shadowed declaration fontforge-20220308/fontforge/splineutil2.c:3049:38: note: Shadow variable fontforge-20220308/fontforge/splineutil2.c:3283:16: style: Local variable 'snaptoint' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineutil2.c:63:5: note: Shadowed declaration fontforge-20220308/fontforge/splineutil2.c:3283:16: note: Shadow variable fontforge-20220308/fontforge/splineutil2.c:3312:16: style: Local variable 'snaptoint' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineutil2.c:63:5: note: Shadowed declaration fontforge-20220308/fontforge/splineutil2.c:3312:16: note: Shadow variable fontforge-20220308/fontforge/splineutil2.c:3360:16: style: Local variable 'snaptoint' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineutil2.c:63:5: note: Shadowed declaration fontforge-20220308/fontforge/splineutil2.c:3360:16: note: Shadow variable fontforge-20220308/fontforge/splineutil2.c:3465:16: style: Local variable 'snaptoint' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/splineutil2.c:63:5: note: Shadowed declaration fontforge-20220308/fontforge/splineutil2.c:3465:16: note: Shadow variable fontforge-20220308/fontforge/splineutil2.c:3903:60: style: Parameter 'search' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineutil2.c:3918:31: style: Parameter 'spline' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/splineutil2.c:1828:13: style: Variable 'found' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/splineutil2.c:1833:13: style: Variable 'found' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/svg.c:752:19: style: Condition 'c>bestc' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/svg.c:752:12: note: Assuming that condition 'c>1' is not redundant fontforge-20220308/fontforge/svg.c:746:15: note: Assignment 'bestc=0', assigned value is 0 fontforge-20220308/fontforge/svg.c:752:19: note: Condition 'c>bestc' is always true fontforge-20220308/fontforge/svg.c:1243:14: style: Variable 'choice' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforge/svg.c:1234:12: note: choice is assigned fontforge-20220308/fontforge/svg.c:1243:14: note: choice is overwritten fontforge-20220308/fontforge/svg.c:1024:10: style:inconclusive: Function '_WriteSVGFont' argument 4 names different: declaration 'enc' definition 'map'. [funcArgNamesDifferent] fontforge-20220308/fontforge/svg.h:14:73: note: Function '_WriteSVGFont' argument 4 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/svg.c:1024:10: note: Function '_WriteSVGFont' argument 4 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/svg.c:1035:10: style:inconclusive: Function 'WriteSVGFont' argument 5 names different: declaration 'enc' definition 'map'. [funcArgNamesDifferent] fontforge-20220308/fontforge/svg.h:13:106: note: Function 'WriteSVGFont' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/svg.c:1035:10: note: Function 'WriteSVGFont' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/svg.c:3710:133: style:inconclusive: Function 'SplinePointListInterpretSVG' argument 7 names different: declaration 'eip' definition 'ip'. [funcArgNamesDifferent] fontforge-20220308/fontforge/svg.h:18:144: note: Function 'SplinePointListInterpretSVG' argument 7 names different: declaration 'eip' definition 'ip'. fontforge-20220308/fontforge/svg.c:3710:133: note: Function 'SplinePointListInterpretSVG' argument 7 names different: declaration 'eip' definition 'ip'. fontforge-20220308/fontforge/svg.c:2554:13: style: Local variable 'pt' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/svg.c:2485:11: note: Shadowed declaration fontforge-20220308/fontforge/svg.c:2554:13: note: Shadow variable fontforge-20220308/fontforge/svg.c:3317:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/svg.c:3184:9: note: Shadowed declaration fontforge-20220308/fontforge/svg.c:3317:7: note: Shadow variable fontforge-20220308/fontforge/svg.c:250:52: style: Parameter 'cpen' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/svg.c:315:52: style: Parameter 'cbrush' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/svg.c:2578:20: style: Parameter 'inherit' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/svg.c:183:15: style: Variable 'closed' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/svg.c:753:5: style: Variable 'c' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/svg.c:1978:4: style: Variable 'x' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/svg.c:1979:4: style: Variable 'y' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/svg.c:2127:6: style: Variable 'scnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/svg.c:2365:5: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/tottf.c:3782:7: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/fontforge/tottf.c:1054:29: warning: Logical disjunction always evaluates to true: EXPR >= -2 || EXPR <= 1.999939. [incorrectLogicOperator] fontforge-20220308/fontforge/tottf.c:1055:25: warning: Logical disjunction always evaluates to true: EXPR >= -2 || EXPR <= 1.999939. [incorrectLogicOperator] fontforge-20220308/fontforge/tottf.c:1056:25: warning: Logical disjunction always evaluates to true: EXPR >= -2 || EXPR <= 1.999939. [incorrectLogicOperator] fontforge-20220308/fontforge/tottf.c:1057:25: warning: Logical disjunction always evaluates to true: EXPR >= -2 || EXPR <= 1.999939. [incorrectLogicOperator] fontforge-20220308/fontforge/tottf.c:1158:40: style: Condition 'ref->sc->ttf_glyph==-1' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/tottf.c:4288:41: style: Condition 'jj<1' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/tottf.c:4288:19: note: Assuming that condition 'jj<2' is not redundant fontforge-20220308/fontforge/tottf.c:4288:41: note: Condition 'jj<1' is always false fontforge-20220308/fontforge/tottf.c:4289:18: style: Condition 'jj==0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/tottf.c:4594:26: style: Condition 'first_delta!=-1' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/tottf.c:4575:6: error: Common realloc mistake: 'cmapseg' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/tottf.c:5801:12: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] fontforge-20220308/fontforge/tottf.c:5803:7: note: Found duplicate branches for 'if' and 'else'. fontforge-20220308/fontforge/tottf.c:5801:12: note: Found duplicate branches for 'if' and 'else'. fontforge-20220308/fontforge/tottf.c:566:15: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/tottf.c:1581:10: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/tottf.c:1585:11: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/tottf.c:1586:11: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/tottf.c:1587:11: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/tottf.c:6136:58: style:inconclusive: Function '_WriteTTFFont' argument 7 names different: declaration 'enc' definition 'map'. [funcArgNamesDifferent] fontforge-20220308/fontforge/tottf.h:18:135: note: Function '_WriteTTFFont' argument 7 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/tottf.c:6136:58: note: Function '_WriteTTFFont' argument 7 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/tottf.c:6207:58: style:inconclusive: Function 'WriteTTFFont' argument 7 names different: declaration 'enc' definition 'map'. [funcArgNamesDifferent] fontforge-20220308/fontforge/tottf.h:17:139: note: Function 'WriteTTFFont' argument 7 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/tottf.c:6207:58: note: Function 'WriteTTFFont' argument 7 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/tottf.c:6312:20: style:inconclusive: Function '_WriteType42SFNTS' argument 5 names different: declaration 'enc' definition 'map'. [funcArgNamesDifferent] fontforge-20220308/fontforge/tottf.h:19:103: note: Function '_WriteType42SFNTS' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/tottf.c:6312:20: note: Function '_WriteType42SFNTS' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/tottf.c:5863:17: style: Local variable 'tab' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/tottf.c:5735:23: note: Shadowed declaration fontforge-20220308/fontforge/tottf.c:5863:17: note: Shadow variable fontforge-20220308/fontforge/tottf.c:5929:17: style: Local variable 'tab' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/tottf.c:5735:23: note: Shadowed declaration fontforge-20220308/fontforge/tottf.c:5929:17: note: Shadow variable fontforge-20220308/fontforge/tottf.c:782:71: style: Parameter 'fs' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottf.c:1367:87: style: Parameter 'bsizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottf.c:2663:65: style: Parameter 'bsizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottf.c:3112:35: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour. See condition at line 3111. [shiftTooManyBitsSigned] fontforge-20220308/fontforge/tottf.c:3111:25: note: Assuming that condition 'sc->unicodeenc<256' is not redundant fontforge-20220308/fontforge/tottf.c:3112:35: note: Shift fontforge-20220308/fontforge/tottf.c:3112:35: warning: Either the condition 'sc->unicodeenc<256' is redundant or there is signed integer overflow for expression '1<<(sc->unicodeenc&31)'. [integerOverflowCond] fontforge-20220308/fontforge/tottf.c:3111:25: note: Assuming that condition 'sc->unicodeenc<256' is not redundant fontforge-20220308/fontforge/tottf.c:3112:35: note: Integer overflow fontforge-20220308/fontforge/tottf.c:4748:20: error: Uninitialized variable: vsbuf [uninitvar] fontforge-20220308/fontforge/tottf.c:4742:19: note: Assuming condition is false fontforge-20220308/fontforge/tottf.c:4748:20: note: Uninitialized variable: vsbuf fontforge-20220308/fontforge/tottf.c:643:11: style: Variable 'lasti' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/tottf.c:643:19: style: Variable 'lastv' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/tottf.c:1249:24: style: Variable 'contourcnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/tottf.c:2987:16: style: Variable 'samewid' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/stemdb.c:1008:31: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:1008:15: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:1008:31: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:1009:31: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:1009:15: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:1009:31: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2672:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2672:22: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2672:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2673:61: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2673:47: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2673:61: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2674:61: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2674:47: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2674:61: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2687:40: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2687:23: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2687:40: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2692:42: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2692:23: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2692:42: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2696:36: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2696:19: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2696:36: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2697:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2697:19: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2697:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2707:54: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2707:44: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2707:54: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2720:28: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2720:12: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2720:28: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2721:28: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2721:12: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2721:28: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2939:48: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2939:41: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2939:48: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2940:26: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:2940:19: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:2940:26: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:3976:37: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:3976:23: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:3976:37: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:3977:38: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:3977:23: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:3977:38: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:3984:36: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:3984:22: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:3984:36: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:3996:36: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:3996:22: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:3996:36: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4019:36: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4019:22: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4019:36: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4020:37: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4020:22: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4020:37: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4029:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4029:22: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4029:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4033:34: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4033:23: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4033:34: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4060:32: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4060:22: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4060:32: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4064:34: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4064:23: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4064:34: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4946:26: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4946:11: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4946:26: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4947:19: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4947:4: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4947:19: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4948:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4948:11: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4948:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4949:20: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4949:4: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4949:20: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4950:26: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4950:11: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4950:26: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4951:19: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4951:4: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4951:19: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4952:27: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4952:11: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4952:27: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:4953:20: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:4953:4: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:4953:20: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:5641:31: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:5641:15: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:5641:31: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:5642:31: warning: The address of local variable 'x' might be accessed at non-zero index. [objectIndex] fontforge-20220308/fontforge/stemdb.c:5642:15: note: Address of variable taken here. fontforge-20220308/fontforge/stemdb.c:5642:31: note: The address of local variable 'x' might be accessed at non-zero index. fontforge-20220308/fontforge/stemdb.c:2381:14: style: Redundant condition: !fp. '!fp && (!fp || t<0.5)' is equivalent to '!fp' [redundantCondition] fontforge-20220308/fontforge/stemdb.c:2353:15: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforge/stemdb.c:2352:15: note: First condition fontforge-20220308/fontforge/stemdb.c:2353:15: note: Second condition fontforge-20220308/fontforge/stemdb.c:1762:7: style: Condition 'hv' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/stemdb.c:504:6: error: Common realloc mistake: 'stems' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/stemdb.c:505:6: error: Common realloc mistake: 'is_l' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/stemdb.c:157:18: warning: Either the condition 'prev!=NULL' is redundant or there is possible null pointer dereference: prev. [nullPointerRedundantCheck] fontforge-20220308/fontforge/stemdb.c:153:18: note: Assuming that condition 'prev!=NULL' is not redundant fontforge-20220308/fontforge/stemdb.c:157:18: note: Null pointer dereference fontforge-20220308/fontforge/stemdb.c:167:18: warning: Either the condition 'next!=NULL' is redundant or there is possible null pointer dereference: next. [nullPointerRedundantCheck] fontforge-20220308/fontforge/stemdb.c:163:18: note: Assuming that condition 'next!=NULL' is not redundant fontforge-20220308/fontforge/stemdb.c:167:18: note: Null pointer dereference fontforge-20220308/fontforge/stemdb.c:2112:7: warning: Either the condition 'tstem==stem' is redundant or there is possible null pointer dereference: tstem. [nullPointerRedundantCheck] fontforge-20220308/fontforge/stemdb.c:5954:29: note: Calling function 'HalfStemNoOpposite', 3rd argument 'NULL' value is 0 fontforge-20220308/fontforge/stemdb.c:2112:50: note: Assuming that condition 'tstem==stem' is not redundant fontforge-20220308/fontforge/stemdb.c:2112:7: note: Null pointer dereference fontforge-20220308/fontforge/stemdb.c:2338:12: warning: Either the condition 'other==NULL' is redundant or there is possible null pointer dereference: other. [nullPointerRedundantCheck] fontforge-20220308/fontforge/stemdb.c:2346:15: note: Assuming that condition 'other==NULL' is not redundant fontforge-20220308/fontforge/stemdb.c:2338:12: note: Null pointer dereference fontforge-20220308/fontforge/stemdb.c:4643:33: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] fontforge-20220308/fontforge/stemdb.c:4644:32: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] fontforge-20220308/fontforge/stemdb.c:4648:32: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] fontforge-20220308/fontforge/stemdb.c:4651:33: style: Same expression in both branches of ternary operator. [duplicateExpressionTernary] fontforge-20220308/fontforge/stemdb.c:511:66: style: Parameter 'stem' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/stemdb.c:627:10: style: Parameter 'findme' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/stemdb.c:1173:41: style: Parameter 'unit1' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/stemdb.c:1173:59: style: Parameter 'unit2' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/stemdb.c:2106:22: style: Parameter 'stem' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/stemdb.c:2210:25: style: Parameter 'findme' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/stemdb.c:2289:50: style: Parameter 'from' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/stemdb.c:2289:69: style: Parameter 'to' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/stemdb.c:2435:41: style: Variable 'needs_hv' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/stemdb.c:4023:10: style: Variable 'llen' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/stemdb.c:4023:28: style: Variable 'rlen' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/stemdb.c:4295:11: style: Variable 'dist' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/tottfgpos.c:1109:21: style: Condition 'first' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/tottfgpos.c:3264:18: style: Condition 'ginfo.sc==0' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/tottfgpos.c:4744:29: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] fontforge-20220308/fontforge/tottfgpos.c:4751:27: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] fontforge-20220308/fontforge/tottfgpos.c:2132:6: error: Common realloc mistake: 'ligoffsets' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/tottfgpos.c:2675:2: error: Common realloc mistake: 'marks' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/tottfgpos.c:2676:2: error: Common realloc mistake: 'subcnts' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/tottfgpos.c:4654:3: error: Common realloc mistake: 'langs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/tottfgpos.c:1107:11: warning: Either the condition 'pst' is redundant or there is possible null pointer dereference: pst. [nullPointerRedundantCheck] fontforge-20220308/fontforge/tottfgpos.c:1109:30: note: Assuming that condition 'pst' is not redundant fontforge-20220308/fontforge/tottfgpos.c:1107:11: note: Null pointer dereference fontforge-20220308/fontforge/tottfgpos.c:1118:8: warning: Either the condition 'pst' is redundant or there is possible null pointer dereference: pst. [nullPointerRedundantCheck] fontforge-20220308/fontforge/tottfgpos.c:1109:30: note: Assuming that condition 'pst' is not redundant fontforge-20220308/fontforge/tottfgpos.c:1118:8: note: Null pointer dereference fontforge-20220308/fontforge/tottfgpos.c:4744:28: style: Checking if unsigned expression 'here=ftell(jstf)' is less than zero. [unsignedLessThanZero] fontforge-20220308/fontforge/tottfgpos.c:4751:26: style: Checking if unsigned expression 'lbase=ftell(jstf)' is less than zero. [unsignedLessThanZero] fontforge-20220308/fontforge/tottfgpos.c:453:6: style: Local variable 'uni' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/tottfgpos.c:437:21: note: Shadowed declaration fontforge-20220308/fontforge/tottfgpos.c:453:6: note: Shadow variable fontforge-20220308/fontforge/tottfgpos.c:3035:15: style: Local variable 'scripts' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/tottfgpos.c:63:17: note: Shadowed declaration fontforge-20220308/fontforge/tottfgpos.c:3035:15: note: Shadow variable fontforge-20220308/fontforge/tottfgpos.c:3670:18: style: Local variable 'sc' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/tottfgpos.c:3659:27: note: Shadowed declaration fontforge-20220308/fontforge/tottfgpos.c:3670:18: note: Shadow variable fontforge-20220308/fontforge/tottfgpos.c:4563:12: style: Local variable 'here' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/tottfgpos.c:4475:14: note: Shadowed declaration fontforge-20220308/fontforge/tottfgpos.c:4563:12: note: Shadow variable fontforge-20220308/fontforge/tottfgpos.c:4631:25: style: Local variable 'scripts' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/tottfgpos.c:63:17: note: Shadowed declaration fontforge-20220308/fontforge/tottfgpos.c:4631:25: note: Shadow variable fontforge-20220308/fontforge/tottfgpos.c:2656:29: style: Argument '(cmax=20)*sizeof(struct splinechar**)' to function malloc is always 160. It does not matter what value 'cmax' has. [knownArgument] fontforge-20220308/fontforge/tottfgpos.c:500:69: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottfgpos.c:642:61: style: Parameter 'ac' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottfgpos.c:1553:107: style: Parameter 'initial' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottfgpos.c:1553:88: style: Parameter 'classes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottfgpos.c:2708:49: style: Parameter 'otl' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottfgpos.c:539:16: error: Uninitialized variable: space [uninitvar] fontforge-20220308/fontforge/tottfgpos.c:501:36: note: Assignment 'space=spc', assigned value is fontforge-20220308/fontforge/tottfgpos.c:508:30: note: Assuming condition is false fontforge-20220308/fontforge/tottfgpos.c:539:16: note: Uninitialized variable: space fontforge-20220308/fontforge/tottfgpos.c:2224:22: error: Memory is allocated but not initialized: glyphs[i] [uninitdata] fontforge-20220308/fontforge/tottfaat.c:814:6: error: Common realloc mistake: 'states' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/tottfaat.c:829:8: error: Common realloc mistake: 'states' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/tottfaat.c:1414:9: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/tottfaat.c:1426:2: error: Common realloc mistake: 'ret' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/tottfaat.c:1768:6: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] fontforge-20220308/fontforge/tottfaat.c:1772:8: note: Found duplicate branches for 'if' and 'else'. fontforge-20220308/fontforge/tottfaat.c:1768:6: note: Found duplicate branches for 'if' and 'else'. fontforge-20220308/fontforge/tottfaat.c:1764:23: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] fontforge-20220308/fontforge/tottfaat.c:2009:51: style:inconclusive: Function 'aat_dumpopbd' argument 2 names different: declaration 'sf' definition '_sf'. [funcArgNamesDifferent] fontforge-20220308/fontforge/tottfaat.h:13:58: note: Function 'aat_dumpopbd' argument 2 names different: declaration 'sf' definition '_sf'. fontforge-20220308/fontforge/tottfaat.c:2009:51: note: Function 'aat_dumpopbd' argument 2 names different: declaration 'sf' definition '_sf'. fontforge-20220308/fontforge/tottfaat.c:710:26: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottfaat.c:734:26: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/tottfaat.c:699:31: error: Uninitialized variable: glyphs [uninitvar] fontforge-20220308/fontforge/tottfaat.c:683:8: note: Assuming condition is false fontforge-20220308/fontforge/tottfaat.c:699:31: note: Uninitialized variable: glyphs fontforge-20220308/fontforge/tottfaat.c:699:38: error: Uninitialized variable: maps [uninitvar] fontforge-20220308/fontforge/tottfaat.c:683:8: note: Assuming condition is false fontforge-20220308/fontforge/tottfaat.c:699:38: note: Uninitialized variable: maps fontforge-20220308/fontforge/tottfaat.c:1030:25: error: Uninitialized variable: glyphs [uninitvar] fontforge-20220308/fontforge/tottfaat.c:1024:7: note: Assuming condition is false fontforge-20220308/fontforge/tottfaat.c:1030:25: note: Uninitialized variable: glyphs fontforge-20220308/fontforge/tottfaat.c:1030:32: error: Uninitialized variable: map [uninitvar] fontforge-20220308/fontforge/tottfaat.c:1024:7: note: Assuming condition is false fontforge-20220308/fontforge/tottfaat.c:1030:32: note: Uninitialized variable: map fontforge-20220308/fontforge/tottfaat.c:1748:23: error: Uninitialized variable: chains_features [uninitvar] fontforge-20220308/fontforge/tottfaat.c:1717:18: note: Assuming condition is false fontforge-20220308/fontforge/tottfaat.c:1748:23: note: Uninitialized variable: chains_features fontforge-20220308/fontforge/tottfaat.c:306:3: style: Variable 'first_cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/tottfaat.c:780:6: style: Variable 'j' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/tottfaat.c:974:10: style: Variable 'l' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/tottfaat.c:2021:8: style: Variable 'l' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/tottfvar.c:575:29: warning: Logical disjunction always evaluates to true: EXPR > 0x7f || EXPR < 0x80. [incorrectLogicOperator] fontforge-20220308/fontforge/tottfvar.c:577:36: warning: Logical disjunction always evaluates to true: EXPR > 0x7f || EXPR < 0x80. [incorrectLogicOperator] fontforge-20220308/fontforge/tottfvar.c:578:64: warning: Logical disjunction always evaluates to true: EXPR > 0x7f || EXPR < 0x80. [incorrectLogicOperator] fontforge-20220308/fontforge/tottfvar.c:588:36: warning: Logical disjunction always evaluates to true: EXPR > 0x7f || EXPR < 0x80. [incorrectLogicOperator] fontforge-20220308/fontforge/tottfvar.c:625:22: warning: Logical disjunction always evaluates to true: EXPR > 0x7f || EXPR < 0x80. [incorrectLogicOperator] fontforge-20220308/fontforge/tottfvar.c:627:24: warning: Logical disjunction always evaluates to true: EXPR > 0x7f || EXPR < 0x80. [incorrectLogicOperator] fontforge-20220308/fontforge/tottfvar.c:628:53: warning: Logical disjunction always evaluates to true: EXPR > 0x7f || EXPR < 0x80. [incorrectLogicOperator] fontforge-20220308/fontforge/tottfvar.c:638:24: warning: Logical disjunction always evaluates to true: EXPR > 0x7f || EXPR < 0x80. [incorrectLogicOperator] fontforge-20220308/fontforge/tottfvar.c:640:27: warning: Logical conjunction always evaluates to false: EXPR <= 0x7f && EXPR >= 0x80. [incorrectLogicOperator] fontforge-20220308/fontforge/tottfvar.c:640:49: style: Redundant condition: If 'EXPR >= 0x80', the comparison 'EXPR != 0' is always true. [redundantCondition] fontforge-20220308/fontforge/tottfvar.c:71:12: error: Memory is allocated but not initialized: ss[0] [uninitdata] fontforge-20220308/fontforge/ttfinstrs.c:299:13: style: Variable 'npos' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforge/ttfspecial.c:454:18: style: Local variable 'base' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/ttfspecial.c:378:14: note: Shadowed declaration fontforge-20220308/fontforge/ttfspecial.c:454:18: note: Shadow variable fontforge-20220308/fontforge/ttfspecial.c:2014:61: style: Parameter 'sizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/ttfspecial.c:924:3: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforge/ttfspecial.c:1511:17: error: Memory is allocated but not initialized: layers[i].type [uninitdata] fontforge-20220308/fontforge/ttfspecial.c:1548:30: style: struct member 'tagoff::tag' is never used. [unusedStructMember] fontforge-20220308/fontforge/ttfspecial.c:1548:35: style: struct member 'tagoff::offset' is never used. [unusedStructMember] fontforge-20220308/fontforge/winfonts.c:600:6: style: Local variable 'gid' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/winfonts.c:466:9: note: Shadowed declaration fontforge-20220308/fontforge/winfonts.c:600:6: note: Shadow variable fontforge-20220308/fontforge/winfonts.c:601:11: style: Local variable 'bdfc' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/winfonts.c:467:14: note: Shadowed declaration fontforge-20220308/fontforge/winfonts.c:601:11: note: Shadow variable fontforge-20220308/fontforge/winfonts.c:757:57: style: Parameter 'sizes' can be declared as pointer to const [constParameter] fontforge-20220308/fontforge/winfonts.c:840:8: error: Uninitialized variable: dpi [uninitvar] fontforge-20220308/fontforge/winfonts.c:792:24: note: Assuming condition is false fontforge-20220308/fontforge/winfonts.c:840:8: note: Uninitialized variable: dpi fontforge-20220308/fontforge/winfonts.c:139:27: style: struct member 'v2chars::width' is never used. [unusedStructMember] fontforge-20220308/fontforge/winfonts.c:139:43: style: struct member 'v2chars::offset' is never used. [unusedStructMember] fontforge-20220308/fontforge/winfonts.c:147:14: style: struct member 'winmz_header::magic' is never used. [unusedStructMember] fontforge-20220308/fontforge/winfonts.c:149:14: style: struct member 'winmz_header::skip' is never used. [unusedStructMember] fontforge-20220308/fontforge/winfonts.c:150:14: style: struct member 'winmz_header::lfanew' is never used. [unusedStructMember] fontforge-20220308/fontforge/winfonts.c:154:14: style: struct member 'winne_header::magic' is never used. [unusedStructMember] fontforge-20220308/fontforge/winfonts.c:156:13: style: struct member 'winne_header::skip' is never used. [unusedStructMember] fontforge-20220308/fontforge/winfonts.c:157:14: style: struct member 'winne_header::resource_tab_offset' is never used. [unusedStructMember] fontforge-20220308/fontforge/winfonts.c:158:14: style: struct member 'winne_header::rname_tab_offset' is never used. [unusedStructMember] fontforge-20220308/fontforge/woff.c:309:6: style: Local variable 'checksum' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/woff.c:200:42: note: Shadowed declaration fontforge-20220308/fontforge/woff.c:309:6: note: Shadow variable fontforge-20220308/fontforge/woff.c:361:9: style: Local variable 'len' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/woff.c:195:9: note: Shadowed declaration fontforge-20220308/fontforge/woff.c:361:9: note: Shadow variable fontforge-20220308/fontforgeexe/alignment.c:636:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] fontforge-20220308/fontforgeexe/alignment.c:636:6: style: Variable 'e21' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/anchorsaway.c:1013:40: style: Redundant condition: ap->type==at_baselig. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] fontforge-20220308/fontforgeexe/anchorsaway.c:602:33: style: Condition 'event->u.mouse.x>=a->ctl_len' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/anchorsaway.c:591:26: note: Assuming that condition 'event->u.mouse.xctl_len' is not redundant fontforge-20220308/fontforgeexe/anchorsaway.c:602:33: note: Condition 'event->u.mouse.x>=a->ctl_len' is always true fontforge-20220308/fontforgeexe/anchorsaway.c:907:7: style: Local variable 'buffer' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/anchorsaway.c:890:10: note: Shadowed declaration fontforge-20220308/fontforgeexe/anchorsaway.c:907:7: note: Shadow variable fontforge-20220308/fontforgeexe/anchorsaway.c:572:60: style: Parameter 'ap' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/anchorsaway.c:214:9: error: Uninitialized variable: ti [uninitvar] fontforge-20220308/fontforgeexe/anchorsaway.c:186:7: note: Assuming condition is false fontforge-20220308/fontforgeexe/anchorsaway.c:214:9: note: Uninitialized variable: ti fontforge-20220308/fontforgeexe/basedlg.c:622:10: style: Condition 'cnt!=0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/basedlg.c:609:4: note: Assignment 'i=0', assigned value is 0 fontforge-20220308/fontforgeexe/basedlg.c:610:72: note: i is incremented', new value is 1 fontforge-20220308/fontforgeexe/basedlg.c:611:72: note: i is incremented', new value is 2 fontforge-20220308/fontforgeexe/basedlg.c:612:72: note: i is incremented', new value is 3 fontforge-20220308/fontforgeexe/basedlg.c:613:72: note: i is incremented', new value is 4 fontforge-20220308/fontforgeexe/basedlg.c:614:72: note: i is incremented', new value is 5 fontforge-20220308/fontforgeexe/basedlg.c:615:72: note: i is incremented', new value is 6 fontforge-20220308/fontforgeexe/basedlg.c:616:72: note: i is incremented', new value is 7 fontforge-20220308/fontforgeexe/basedlg.c:617:8: note: Assignment 'cnt=i', assigned value is 7 fontforge-20220308/fontforgeexe/basedlg.c:622:10: note: Condition 'cnt!=0' is always true fontforge-20220308/fontforgeexe/basedlg.c:640:8: style: Condition 'i!=0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/basedlg.c:609:4: note: Assignment 'i=0', assigned value is 0 fontforge-20220308/fontforgeexe/basedlg.c:610:72: note: i is incremented', new value is 1 fontforge-20220308/fontforgeexe/basedlg.c:611:72: note: i is incremented', new value is 2 fontforge-20220308/fontforgeexe/basedlg.c:612:72: note: i is incremented', new value is 3 fontforge-20220308/fontforgeexe/basedlg.c:613:72: note: i is incremented', new value is 4 fontforge-20220308/fontforgeexe/basedlg.c:614:72: note: i is incremented', new value is 5 fontforge-20220308/fontforgeexe/basedlg.c:615:72: note: i is incremented', new value is 6 fontforge-20220308/fontforgeexe/basedlg.c:616:72: note: i is incremented', new value is 7 fontforge-20220308/fontforgeexe/basedlg.c:617:8: note: Assignment 'cnt=i', assigned value is 7 fontforge-20220308/fontforgeexe/basedlg.c:626:22: note: Assuming condition is false fontforge-20220308/fontforgeexe/basedlg.c:639:25: note: Assignment 'b->old->baseline_cnt=cnt', assigned value is 7 fontforge-20220308/fontforgeexe/basedlg.c:617:6: note: cnt is assigned 'i' here. fontforge-20220308/fontforgeexe/basedlg.c:639:23: note: b->old->baseline_cnt is assigned 'cnt' here. fontforge-20220308/fontforgeexe/basedlg.c:640:8: note: Condition 'i!=0' is always true fontforge-20220308/fontforgeexe/basedlg.c:647:14: style: Condition 'cnt==0' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/basedlg.c:609:4: note: Assignment 'i=0', assigned value is 0 fontforge-20220308/fontforgeexe/basedlg.c:610:72: note: i is incremented', new value is 1 fontforge-20220308/fontforgeexe/basedlg.c:611:72: note: i is incremented', new value is 2 fontforge-20220308/fontforgeexe/basedlg.c:612:72: note: i is incremented', new value is 3 fontforge-20220308/fontforgeexe/basedlg.c:613:72: note: i is incremented', new value is 4 fontforge-20220308/fontforgeexe/basedlg.c:614:72: note: i is incremented', new value is 5 fontforge-20220308/fontforgeexe/basedlg.c:615:72: note: i is incremented', new value is 6 fontforge-20220308/fontforgeexe/basedlg.c:616:72: note: i is incremented', new value is 7 fontforge-20220308/fontforgeexe/basedlg.c:617:8: note: Assignment 'cnt=i', assigned value is 7 fontforge-20220308/fontforgeexe/basedlg.c:626:22: note: Assuming condition is false fontforge-20220308/fontforgeexe/basedlg.c:647:14: note: Condition 'cnt==0' is always false fontforge-20220308/fontforgeexe/basedlg.c:651:14: style: Condition 'cnt!=0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/basedlg.c:609:4: note: Assignment 'i=0', assigned value is 0 fontforge-20220308/fontforgeexe/basedlg.c:610:72: note: i is incremented', new value is 1 fontforge-20220308/fontforgeexe/basedlg.c:611:72: note: i is incremented', new value is 2 fontforge-20220308/fontforgeexe/basedlg.c:612:72: note: i is incremented', new value is 3 fontforge-20220308/fontforgeexe/basedlg.c:613:72: note: i is incremented', new value is 4 fontforge-20220308/fontforgeexe/basedlg.c:614:72: note: i is incremented', new value is 5 fontforge-20220308/fontforgeexe/basedlg.c:615:72: note: i is incremented', new value is 6 fontforge-20220308/fontforgeexe/basedlg.c:616:72: note: i is incremented', new value is 7 fontforge-20220308/fontforgeexe/basedlg.c:617:8: note: Assignment 'cnt=i', assigned value is 7 fontforge-20220308/fontforgeexe/basedlg.c:626:22: note: Assuming condition is false fontforge-20220308/fontforgeexe/basedlg.c:651:14: note: Condition 'cnt!=0' is always true fontforge-20220308/fontforgeexe/basedlg.c:723:10: style: Variable 'b.sf' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/basedlg.c:722:10: note: b.sf is assigned fontforge-20220308/fontforgeexe/basedlg.c:723:10: note: b.sf is overwritten fontforge-20220308/fontforgeexe/basedlg.c:231:11: style: Local variable 'g' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/basedlg.c:227:33: note: Shadowed declaration fontforge-20220308/fontforgeexe/basedlg.c:231:11: note: Shadow variable fontforge-20220308/fontforgeexe/basedlg.c:599:11: style: Local variable 'g' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/basedlg.c:595:29: note: Shadowed declaration fontforge-20220308/fontforgeexe/basedlg.c:599:11: note: Shadow variable fontforge-20220308/fontforgeexe/basedlg.c:321:15: style: Variable 'k' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/bdfinfo.c:502:17: style: Local variable '_ggadget_Default_Box' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/bdfinfo.c:44:13: note: Shadowed declaration fontforge-20220308/fontforgeexe/bdfinfo.c:502:17: note: Shadow variable fontforge-20220308/fontforge/ufo.c:2845:21: warning: Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt] fontforge-20220308/fontforge/ufo.c:2928:29: warning: Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt] fontforge-20220308/fontforge/ufo.c:2946:55: warning: Comparison of a boolean expression with an integer other than 0 or 1. [compareBoolExpressionWithInt] fontforge-20220308/fontforge/ufo.c:396:21: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/fontforge/ufo.c:1382:35: style: Condition '!(glflags&0x10)' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:1380:21: note: Assignment 'glflags=0x10', assigned value is 16 fontforge-20220308/fontforge/ufo.c:1382:35: note: Condition '!(glflags&0x10)' is always false fontforge-20220308/fontforge/ufo.c:1384:40: style: Condition '!(glflags&0x10)' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:1380:21: note: Assignment 'glflags=0x10', assigned value is 16 fontforge-20220308/fontforge/ufo.c:1384:40: note: Condition '!(glflags&0x10)' is always false fontforge-20220308/fontforge/ufo.c:1387:34: style: Condition '!(glflags&0x10)' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:1380:21: note: Assignment 'glflags=0x10', assigned value is 16 fontforge-20220308/fontforge/ufo.c:1387:34: note: Condition '!(glflags&0x10)' is always false fontforge-20220308/fontforge/ufo.c:2020:11: style: Condition 'name_err' is always false [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:2006:22: note: Assignment 'name_err=0', assigned value is 0 fontforge-20220308/fontforge/ufo.c:2020:11: note: Condition 'name_err' is always false fontforge-20220308/fontforge/ufo.c:2574:32: style: Condition 'name!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:2619:27: style: Condition 'sc!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:2911:32: style: Condition 'xs!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:2912:32: style: Condition 'ys!=NULL' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:4205:36: style: Condition 'layercontentsvaluecount>1' is always true [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:4200:33: note: Assignment 'layercontentsvaluecount=2', assigned value is 2 fontforge-20220308/fontforge/ufo.c:4205:36: note: Condition 'layercontentsvaluecount>1' is always true fontforge-20220308/fontforge/ufo.c:202:5: error: Common realloc mistake: 'output2' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/ufo.c:222:11: error: Common realloc mistake: 'full_name_base' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/ufo.c:231:13: error: Common realloc mistake: 'name_base' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/ufo.c:498:52: error: Common realloc mistake: 'tmp' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/ufo.c:541:52: error: Common realloc mistake: 'tmp' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/ufo.c:4168:9: error: Common realloc mistake: 'layernames' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/ufo.c:4209:9: error: Common realloc mistake: 'layernames' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforge/ufo.c:500:9: warning: Either the condition 'tmp!=NULL' is redundant or there is possible null pointer dereference: tmp. [nullPointerRedundantCheck] fontforge-20220308/fontforge/ufo.c:501:17: note: Assuming that condition 'tmp!=NULL' is not redundant fontforge-20220308/fontforge/ufo.c:500:9: note: Null pointer dereference fontforge-20220308/fontforge/ufo.c:543:9: warning: Either the condition 'tmp!=NULL' is redundant or there is possible null pointer dereference: tmp. [nullPointerRedundantCheck] fontforge-20220308/fontforge/ufo.c:544:17: note: Assuming that condition 'tmp!=NULL' is not redundant fontforge-20220308/fontforge/ufo.c:543:9: note: Null pointer dereference fontforge-20220308/fontforge/ufo.c:935:8: warning: Either the condition 'sp' is redundant or there is possible null pointer dereference: sp. [nullPointerRedundantCheck] fontforge-20220308/fontforge/ufo.c:939:7: note: Assuming that condition 'sp' is not redundant fontforge-20220308/fontforge/ufo.c:935:8: note: Null pointer dereference fontforge-20220308/fontforge/ufo.c:945:8: warning: Either the condition 'sp' is redundant or there is possible null pointer dereference: sp. [nullPointerRedundantCheck] fontforge-20220308/fontforge/ufo.c:939:7: note: Assuming that condition 'sp' is not redundant fontforge-20220308/fontforge/ufo.c:945:8: note: Null pointer dereference fontforge-20220308/fontforge/ufo.c:939:97: style: Same expression 'sp->next' found multiple times in chain of '&&' operators. [duplicateExpression] fontforge-20220308/fontforge/ufo.c:1382:45: style: Same expression on both sides of '&'. [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:1380:21: note: 'glflags' is assigned value '0x10' here. fontforge-20220308/fontforge/ufo.c:1382:45: note: Same expression on both sides of '&'. fontforge-20220308/fontforge/ufo.c:1384:50: style: Same expression on both sides of '&'. [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:1380:21: note: 'glflags' is assigned value '0x10' here. fontforge-20220308/fontforge/ufo.c:1384:50: note: Same expression on both sides of '&'. fontforge-20220308/fontforge/ufo.c:1387:44: style: Same expression on both sides of '&'. [knownConditionTrueFalse] fontforge-20220308/fontforge/ufo.c:1380:21: note: 'glflags' is assigned value '0x10' here. fontforge-20220308/fontforge/ufo.c:1387:44: note: Same expression on both sides of '&'. fontforge-20220308/fontforge/ufo.c:2057:30: style:inconclusive: Function 'WriteUFOFont' argument 1 names different: declaration 'fontname' definition 'basedir'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2132:37: note: Function 'WriteUFOFont' argument 1 names different: declaration 'fontname' definition 'basedir'. fontforge-20220308/fontforge/ufo.c:2057:30: note: Function 'WriteUFOFont' argument 1 names different: declaration 'fontname' definition 'basedir'. fontforge-20220308/fontforge/ufo.c:2057:71: style:inconclusive: Function 'WriteUFOFont' argument 3 names different: declaration 'format' definition 'ff'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2132:79: note: Function 'WriteUFOFont' argument 3 names different: declaration 'format' definition 'ff'. fontforge-20220308/fontforge/ufo.c:2057:71: note: Function 'WriteUFOFont' argument 3 names different: declaration 'format' definition 'ff'. fontforge-20220308/fontforge/ufo.c:2058:16: style:inconclusive: Function 'WriteUFOFont' argument 5 names different: declaration 'enc' definition 'map'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2132:112: note: Function 'WriteUFOFont' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/ufo.c:2058:16: note: Function 'WriteUFOFont' argument 5 names different: declaration 'enc' definition 'map'. fontforge-20220308/fontforge/ufo.c:3788:29: style:inconclusive: Function 'SFReadUFO' argument 1 names different: declaration 'filename' definition 'basedir'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2326:36: note: Function 'SFReadUFO' argument 1 names different: declaration 'filename' definition 'basedir'. fontforge-20220308/fontforge/ufo.c:3788:29: note: Function 'SFReadUFO' argument 1 names different: declaration 'filename' definition 'basedir'. fontforge-20220308/fontforge/ufo.c:4357:29: style:inconclusive: Function 'SplinePointListInterpretGlif' argument 7 names different: declaration 'stroked' definition 'is_stroked'. [funcArgNamesDifferent] fontforge-20220308/fontforge/splinefont.h:2349:132: note: Function 'SplinePointListInterpretGlif' argument 7 names different: declaration 'stroked' definition 'is_stroked'. fontforge-20220308/fontforge/ufo.c:4357:29: note: Function 'SplinePointListInterpretGlif' argument 7 names different: declaration 'stroked' definition 'is_stroked'. fontforge-20220308/fontforge/ufo.c:3954:13: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforge/ufo.c:3796:11: note: Shadowed declaration fontforge-20220308/fontforge/ufo.c:3954:13: note: Shadow variable fontforge-20220308/fontforge/ufo.c:3253:36: portability: '(void*)tmp_offsets' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3253:135: portability: '(void*)(sf->kerns->offsets)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3263:42: portability: '(void*)tmp_offsets_flags' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3263:143: portability: '(void*)(sf->kerns->offsets_flags)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3273:36: portability: '(void*)tmp_adjusts' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3273:139: portability: '(void*)(sf->kerns->adjusts)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3285:36: portability: '(void*)tmp_offsets' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3285:137: portability: '(void*)(sf->vkerns->offsets)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3295:42: portability: '(void*)tmp_offsets_flags' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3295:145: portability: '(void*)(sf->vkerns->offsets_flags)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3305:36: portability: '(void*)tmp_adjusts' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3305:141: portability: '(void*)(sf->vkerns->adjusts)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3314:37: portability: '(void*)sf->kerns->firsts' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3316:43: portability: '(void*)sf->kerns->firsts_names' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3318:43: portability: '(void*)sf->kerns->firsts_flags' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3323:38: portability: '(void*)sf->kerns->seconds' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3325:44: portability: '(void*)sf->kerns->seconds_names' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3327:44: portability: '(void*)sf->kerns->seconds_flags' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3332:38: portability: '(void*)sf->vkerns->firsts' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3334:44: portability: '(void*)sf->vkerns->firsts_names' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3336:44: portability: '(void*)sf->vkerns->firsts_flags' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3341:39: portability: '(void*)sf->vkerns->seconds' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3343:45: portability: '(void*)sf->vkerns->seconds_names' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:3345:45: portability: '(void*)sf->vkerns->seconds_flags' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforge/ufo.c:1325:42: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] fontforge-20220308/fontforge/ufo.c:1324:20: note: Assuming that condition 'j<32' is not redundant fontforge-20220308/fontforge/ufo.c:1325:42: note: Shift fontforge-20220308/fontforge/ufo.c:1336:38: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] fontforge-20220308/fontforge/ufo.c:1335:18: note: Assuming that condition 'j<32' is not redundant fontforge-20220308/fontforge/ufo.c:1336:38: note: Shift fontforge-20220308/fontforge/ufo.c:1325:42: error: Signed integer overflow for expression '1<=0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/charview.c:7560:13: note: Assuming that condition 'pos<0' is not redundant fontforge-20220308/fontforgeexe/charview.c:7565:13: note: Condition 'pos>=0' is always true fontforge-20220308/fontforgeexe/charview.c:12803:8: style: Condition 'xc' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/charview.c:8811:7: warning: Either the condition 'sp!=NULL' is redundant or there is possible null pointer dereference: sp. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/charview.c:8805:15: note: Assuming that condition 'sp!=NULL' is not redundant fontforge-20220308/fontforgeexe/charview.c:8811:7: note: Null pointer dereference fontforge-20220308/fontforgeexe/charview.c:8813:2: warning: Either the condition 'sp!=NULL' is redundant or there is possible null pointer dereference: sp. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/charview.c:8805:15: note: Assuming that condition 'sp!=NULL' is not redundant fontforge-20220308/fontforgeexe/charview.c:8813:2: note: Null pointer dereference fontforge-20220308/fontforgeexe/charview.c:5386:11: style: Variable 'cv->p.ex' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/charview.c:5383:15: note: cv->p.ex is assigned fontforge-20220308/fontforgeexe/charview.c:5386:11: note: cv->p.ex is overwritten fontforge-20220308/fontforgeexe/charview.c:7715:7: style: Variable 'to.x' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/charview.c:7699:10: note: to.x is assigned fontforge-20220308/fontforgeexe/charview.c:7715:7: note: to.x is overwritten fontforge-20220308/fontforgeexe/charview.c:7716:7: style: Variable 'to.y' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/charview.c:7700:10: note: to.y is assigned fontforge-20220308/fontforgeexe/charview.c:7716:7: note: to.y is overwritten fontforge-20220308/fontforgeexe/charview.c:1184:9: style: Local variable 'gp' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:1139:12: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:1184:9: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:1186:8: style: Local variable 'sizedelta' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:1165:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:1186:8: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:2159:18: style: Local variable 'end' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:2016:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:2159:18: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:2168:18: style: Local variable 'end' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:2016:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:2168:18: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:2903:28: style: Local variable 'strokeFillMode' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:2798:27: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:2903:28: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:2993:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:2797:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:2993:7: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:3016:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:2797:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:3016:7: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:3606:16: style: Local variable 'updateflex' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:89:5: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:3606:16: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:3688:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:3607:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:3688:7: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:3752:18: style: Local variable 'sf' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:3744:17: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:3752:18: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:4523:24: style: Local variable 'found' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:4506:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:4523:24: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:4635:6: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:4598:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:4635:6: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:4647:6: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:4598:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:4647:6: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:4749:10: style: Local variable 'fs' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:4720:13: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:4749:10: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:5127:16: style: Local variable 'updateflex' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:89:5: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:5127:16: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:5184:16: style: Local variable 'updateflex' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:89:5: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:5184:16: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:7738:11: style: Local variable 'dx' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:7711:10: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:7738:11: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:7739:11: style: Local variable 'm' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:7721:7: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:7739:11: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:7752:11: style: Local variable 'dx' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:7711:10: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:7752:11: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:7753:11: style: Local variable 'm' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:7721:7: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:7753:11: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:7925:18: style: Local variable 'arrowAmount' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:85:7: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:7925:18: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:7925:31: style: Local variable 'arrowAccelFactor' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:86:7: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:7925:31: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:10898:31: style: Local variable 'spl' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:10821:22: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:10898:31: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:12505:16: style: Local variable 'updateflex' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charview.c:89:5: note: Shadowed declaration fontforge-20220308/fontforgeexe/charview.c:12505:16: note: Shadow variable fontforge-20220308/fontforgeexe/charview.c:2487:32: style: Parameter 'ap' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/charview.c:13588:45: style: Parameter 'sp' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/charview.c:13607:45: style: Parameter 'sp' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/charview.c:12106:15: error: Uninitialized variable: sub [uninitvar] fontforge-20220308/fontforgeexe/charview.c:12103:7: note: Assuming condition is false fontforge-20220308/fontforgeexe/charview.c:12106:15: note: Uninitialized variable: sub fontforge-20220308/fontforgeexe/charview.c:2380:34: style: Variable 'or' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/charview.c:2770:16: style: Variable 'rlayer' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/charview.c:3018:14: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/charview.c:4634:17: style: Variable 'xc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/charview.c:4646:17: style: Variable 'xc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/charview.c:12946:32: style: Variable 'label[0].text_is_1byte' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/contextchain.c:2392:20: warning: Either the condition 'i==0' is redundant or the array 'extrabuttonsgcd[3]' is accessed at index -1, which is out of bounds. [negativeIndex] fontforge-20220308/fontforgeexe/contextchain.c:2426:8: note: Assuming that condition 'i==0' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:2396:21: note: i is incremented', new value is -1 fontforge-20220308/fontforgeexe/contextchain.c:2392:20: note: Negative array index fontforge-20220308/fontforgeexe/contextchain.c:2393:67: warning: Either the condition 'i==0' is redundant or the array 'extrabuttonslab[3]' is accessed at index -1, which is out of bounds. [negativeIndex] fontforge-20220308/fontforgeexe/contextchain.c:2426:8: note: Assuming that condition 'i==0' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:2396:21: note: i is incremented', new value is -1 fontforge-20220308/fontforgeexe/contextchain.c:2393:67: note: Negative array index fontforge-20220308/fontforgeexe/contextchain.c:2394:20: warning: Either the condition 'i==0' is redundant or the array 'extrabuttonsgcd[3]' is accessed at index -1, which is out of bounds. [negativeIndex] fontforge-20220308/fontforgeexe/contextchain.c:2426:8: note: Assuming that condition 'i==0' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:2396:21: note: i is incremented', new value is -1 fontforge-20220308/fontforgeexe/contextchain.c:2394:20: note: Negative array index fontforge-20220308/fontforgeexe/contextchain.c:2395:20: warning: Either the condition 'i==0' is redundant or the array 'extrabuttonsgcd[3]' is accessed at index -1, which is out of bounds. [negativeIndex] fontforge-20220308/fontforgeexe/contextchain.c:2426:8: note: Assuming that condition 'i==0' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:2396:21: note: i is incremented', new value is -1 fontforge-20220308/fontforgeexe/contextchain.c:2395:20: note: Negative array index fontforge-20220308/fontforgeexe/contextchain.c:2396:20: warning: Either the condition 'i==0' is redundant or the array 'extrabuttonsgcd[3]' is accessed at index -1, which is out of bounds. [negativeIndex] fontforge-20220308/fontforgeexe/contextchain.c:2426:8: note: Assuming that condition 'i==0' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:2396:21: note: i is incremented', new value is -1 fontforge-20220308/fontforgeexe/contextchain.c:2396:20: note: Negative array index fontforge-20220308/fontforgeexe/contextchain.c:491:22: warning: Either the condition 'ch==0x21d2' is redundant or isspace() argument nr 1 can have invalid value. The value is 8658 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforgeexe/contextchain.c:493:24: note: Assuming that condition 'ch==0x21d2' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:491:22: note: Invalid argument fontforge-20220308/fontforgeexe/contextchain.c:496:23: warning: Either the condition 'ch!=0x21d2' is redundant or isspace() argument nr 1 can have invalid value. The value is 8658 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforgeexe/contextchain.c:490:23: note: Assuming that condition 'ch!=0x21d2' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:496:23: note: Invalid argument fontforge-20220308/fontforgeexe/contextchain.c:514:22: warning: Either the condition 'ch==0x21d2' is redundant or isspace() argument nr 1 can have invalid value. The value is 8658 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforgeexe/contextchain.c:518:24: note: Assuming that condition 'ch==0x21d2' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:514:22: note: Invalid argument fontforge-20220308/fontforgeexe/contextchain.c:521:23: warning: Either the condition 'ch!=0x21d2' is redundant or isspace() argument nr 1 can have invalid value. The value is 8658 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforgeexe/contextchain.c:513:23: note: Assuming that condition 'ch!=0x21d2' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:521:23: note: Invalid argument fontforge-20220308/fontforgeexe/contextchain.c:870:5: error: Memory pointed to by 'temp' is freed twice. [doubleFree] fontforge-20220308/fontforgeexe/contextchain.c:867:5: note: Memory pointed to by 'temp' is freed twice. fontforge-20220308/fontforgeexe/contextchain.c:870:5: note: Memory pointed to by 'temp' is freed twice. fontforge-20220308/fontforgeexe/contextchain.c:873:5: error: Memory pointed to by 'temp' is freed twice. [doubleFree] fontforge-20220308/fontforgeexe/contextchain.c:867:5: note: Memory pointed to by 'temp' is freed twice. fontforge-20220308/fontforgeexe/contextchain.c:873:5: note: Memory pointed to by 'temp' is freed twice. fontforge-20220308/fontforgeexe/contextchain.c:1989:18: warning: Either the condition 'fpst!=NULL' is redundant or there is possible null pointer dereference: fpst. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/contextchain.c:2045:10: note: Assuming that condition 'fpst!=NULL' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:2040:34: note: Calling function 'CanBeSimple', 1st argument 'fpst' value is 0 fontforge-20220308/fontforgeexe/contextchain.c:1989:18: note: Null pointer dereference fontforge-20220308/fontforgeexe/contextchain.c:2037:20: warning: Either the condition 'fpst!=NULL' is redundant or there is possible null pointer dereference: fpst. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/contextchain.c:2045:10: note: Assuming that condition 'fpst!=NULL' is not redundant fontforge-20220308/fontforgeexe/contextchain.c:2037:20: note: Null pointer dereference fontforge-20220308/fontforgeexe/contextchain.c:2863:6: style: Variable 'j' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/contextchain.c:2469:36: note: j is assigned fontforge-20220308/fontforgeexe/contextchain.c:2863:6: note: j is overwritten fontforge-20220308/fontforgeexe/contextchain.c:1059:7: style: Local variable 'ans' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/contextchain.c:982:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/contextchain.c:1059:7: note: Shadow variable fontforge-20220308/fontforgeexe/contextchain.c:1101:34: style: Local variable 'clen' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/contextchain.c:978:32: note: Shadowed declaration fontforge-20220308/fontforgeexe/contextchain.c:1101:34: note: Shadow variable fontforge-20220308/fontforgeexe/contextchain.c:1129:12: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/contextchain.c:984:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/contextchain.c:1129:12: note: Shadow variable fontforge-20220308/fontforgeexe/contextchain.c:1536:9: style: Local variable 'section' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/contextchain.c:1933:18: note: Shadowed declaration fontforge-20220308/fontforgeexe/contextchain.c:1536:9: note: Shadow variable fontforge-20220308/fontforgeexe/contextchain.c:2783:15: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/contextchain.c:2008:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/contextchain.c:2783:15: note: Shadow variable fontforge-20220308/fontforgeexe/contextchain.c:2957:15: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/contextchain.c:2008:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/contextchain.c:2957:15: note: Shadow variable fontforge-20220308/fontforgeexe/contextchain.c:481:36: style: Parameter 'clen' can be declared as const array [constParameter] fontforge-20220308/fontforgeexe/cvaddpoints.c:309:18: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforgeexe/cvaddpoints.c:307:18: note: First condition fontforge-20220308/fontforgeexe/cvaddpoints.c:309:18: note: Second condition fontforge-20220308/fontforgeexe/cvaddpoints.c:509:17: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforgeexe/cvaddpoints.c:507:17: note: First condition fontforge-20220308/fontforgeexe/cvaddpoints.c:509:17: note: Second condition fontforge-20220308/fontforgeexe/cvfreehand.c:394:5: warning: Either the condition 'head' is redundant or there is possible null pointer dereference: head. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/cvfreehand.c:320:10: note: Assuming that condition 'head' is not redundant fontforge-20220308/fontforgeexe/cvfreehand.c:394:5: note: Null pointer dereference fontforge-20220308/fontforgeexe/cvgetinfo.c:1706:9: style: Variable 'j' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/cvgetinfo.c:1684:2: note: j is assigned fontforge-20220308/fontforgeexe/cvgetinfo.c:1706:9: note: j is overwritten fontforge-20220308/fontforgeexe/cvgetinfo.c:2092:78: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/cvgetinfo.c:2121:61: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/cvgetinfo.c:1074:26: style: Variable 'sf' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/cvgetinfo.c:1401:26: style: Variable 'sf' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/cvgetinfo.c:3282:2: style: Variable 'j' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/cvgetinfo.c:3735:2: style: Variable 'j' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/cvknife.c:193:21: style: Variable 'spiro_index' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/cvpalettes.c:3587:9: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforgeexe/cvpalettes.c:3566:9: note: First condition fontforge-20220308/fontforgeexe/cvpalettes.c:3587:9: note: Second condition fontforge-20220308/fontforgeexe/cvpalettes.c:904:9: style: Condition '!cache' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/cvpalettes.c:903:17: note: Assignment 'cache=0', assigned value is 0 fontforge-20220308/fontforgeexe/cvpalettes.c:904:9: note: Condition '!cache' is always true fontforge-20220308/fontforgeexe/cvpalettes.c:918:9: style: Condition '!cache' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/cvpalettes.c:917:17: note: Assignment 'cache=0', assigned value is 0 fontforge-20220308/fontforgeexe/cvpalettes.c:918:9: note: Condition '!cache' is always true fontforge-20220308/fontforgeexe/cvpalettes.c:2480:40: style: Condition 'i==-1' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/cvpalettes.c:2472:8: note: Assuming that condition 'i>=0' is not redundant fontforge-20220308/fontforgeexe/cvpalettes.c:2480:40: note: Condition 'i==-1' is always false fontforge-20220308/fontforgeexe/cvpalettes.c:3622:6: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] fontforge-20220308/fontforgeexe/cvpalettes.c:4240:25: style: Local variable 'tools' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/cvpalettes.c:103:16: note: Shadowed declaration fontforge-20220308/fontforgeexe/cvpalettes.c:4240:25: note: Shadow variable fontforge-20220308/fontforgeexe/cvpalettes.c:228:67: style: Parameter 'off' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/cvpalettes.c:1822:16: style: Variable 'mids' can be declared as const array [constVariable] fontforge-20220308/fontforgeexe/cvpalettes.c:2107:43: style: Parameter 'old' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/cvpalettes.c:2748:16: style: Variable 'mids' can be declared as const array [constVariable] fontforge-20220308/fontforgeexe/cvpalettes.c:3855:39: style: Parameter 'sf' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/cvpalettes.c:2395:16: style: Variable 'togsize' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/cvpalettes.c:3352:5: style: Variable 'i' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/cvpalettes.c:3694:3: style: Variable 'i' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/cvpointer.c:200:17: style: Variable 'needsupdate' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/cvpointer.c:147:18: note: needsupdate is assigned fontforge-20220308/fontforgeexe/cvpointer.c:200:17: note: needsupdate is overwritten fontforge-20220308/fontforgeexe/cvpointer.c:200:17: style: Variable 'needsupdate' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/cvpointer.c:157:15: note: needsupdate is assigned fontforge-20220308/fontforgeexe/cvpointer.c:200:17: note: needsupdate is overwritten fontforge-20220308/fontforgeexe/cvpointer.c:200:17: style: Variable 'needsupdate' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/cvpointer.c:168:15: note: needsupdate is assigned fontforge-20220308/fontforgeexe/cvpointer.c:200:17: note: needsupdate is overwritten fontforge-20220308/fontforgeexe/cvpointer.c:200:17: style: Variable 'needsupdate' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/cvpointer.c:175:18: note: needsupdate is assigned fontforge-20220308/fontforgeexe/cvpointer.c:200:17: note: needsupdate is overwritten fontforge-20220308/fontforgeexe/cvpointer.c:200:17: style: Variable 'needsupdate' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/cvpointer.c:183:19: note: needsupdate is assigned fontforge-20220308/fontforgeexe/cvpointer.c:200:17: note: needsupdate is overwritten fontforge-20220308/fontforgeexe/cvpointer.c:200:17: style: Variable 'needsupdate' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/cvpointer.c:189:18: note: needsupdate is assigned fontforge-20220308/fontforgeexe/cvpointer.c:200:17: note: needsupdate is overwritten fontforge-20220308/fontforgeexe/cvpointer.c:200:17: style: Variable 'needsupdate' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/cvpointer.c:195:14: note: needsupdate is assigned fontforge-20220308/fontforgeexe/cvpointer.c:200:17: note: needsupdate is overwritten fontforge-20220308/fontforgeexe/cvruler.c:87:7: style: Local variable 'len' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/cvruler.c:77:12: note: Shadowed declaration fontforge-20220308/fontforgeexe/cvruler.c:87:7: note: Shadow variable fontforge-20220308/fontforgeexe/cvruler.c:113:10: style: Local variable 't' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/cvruler.c:80:12: note: Shadowed declaration fontforge-20220308/fontforgeexe/cvruler.c:113:10: note: Shadow variable fontforge-20220308/fontforgeexe/cvruler.c:992:8: style: Local variable 'len' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/cvruler.c:951:6: note: Shadowed declaration fontforge-20220308/fontforgeexe/cvruler.c:992:8: note: Shadow variable fontforge-20220308/fontforgeexe/cvruler.c:995:7: style: Local variable 'x' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/cvruler.c:944:6: note: Shadowed declaration fontforge-20220308/fontforgeexe/cvruler.c:995:7: note: Shadow variable fontforge-20220308/fontforgeexe/cvruler.c:995:9: style: Local variable 'y' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/cvruler.c:945:6: note: Shadowed declaration fontforge-20220308/fontforgeexe/cvruler.c:995:9: note: Shadow variable fontforge-20220308/fontforgeexe/cvshapes.c:40:39: style: struct member 'shapedescrip::nocp' is never used. [unusedStructMember] fontforge-20220308/fontforgeexe/cvstroke.c:2602:14: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] fontforge-20220308/fontforgeexe/cvstroke.c:2602:13: style: Checking if unsigned expression 'col' is less than zero. [unsignedLessThanZero] fontforge-20220308/fontforgeexe/deltaui.c:651:22: style: The statement 'if (size!=parent->first[l].size) size=parent->first[l].size' is logically equivalent to 'size=parent->first[l].size'. [duplicateConditionalAssign] fontforge-20220308/fontforgeexe/deltaui.c:652:8: note: Assignment 'size=parent->first[l].size' fontforge-20220308/fontforgeexe/deltaui.c:651:22: note: Condition 'size!=parent->first[l].size' is redundant fontforge-20220308/fontforgeexe/deltaui.c:685:20: style: The statement 'if (pt!=parent->first[l].nearestpt) pt=parent->first[l].nearestpt' is logically equivalent to 'pt=parent->first[l].nearestpt'. [duplicateConditionalAssign] fontforge-20220308/fontforgeexe/deltaui.c:686:6: note: Assignment 'pt=parent->first[l].nearestpt' fontforge-20220308/fontforgeexe/deltaui.c:685:20: note: Condition 'pt!=parent->first[l].nearestpt' is redundant fontforge-20220308/fontforgeexe/deltaui.c:720:20: style: The statement 'if (sc!=parent->first[l].sc) sc=parent->first[l].sc' is logically equivalent to 'sc=parent->first[l].sc'. [duplicateConditionalAssign] fontforge-20220308/fontforgeexe/deltaui.c:721:6: note: Assignment 'sc=parent->first[l].sc' fontforge-20220308/fontforgeexe/deltaui.c:720:20: note: Condition 'sc!=parent->first[l].sc' is redundant fontforge-20220308/fontforgeexe/deltaui.c:774:20: style: The statement 'if (sc!=qg->qg[l].sc) sc=qg->qg[l].sc' is logically equivalent to 'sc=qg->qg[l].sc'. [duplicateConditionalAssign] fontforge-20220308/fontforgeexe/deltaui.c:775:6: note: Assignment 'sc=qg->qg[l].sc' fontforge-20220308/fontforgeexe/deltaui.c:774:20: note: Condition 'sc!=qg->qg[l].sc' is redundant fontforge-20220308/fontforgeexe/deltaui.c:807:22: style: The statement 'if (size!=qg->qg[l].size) size=qg->qg[l].size' is logically equivalent to 'size=qg->qg[l].size'. [duplicateConditionalAssign] fontforge-20220308/fontforgeexe/deltaui.c:808:8: note: Assignment 'size=qg->qg[l].size' fontforge-20220308/fontforgeexe/deltaui.c:807:22: note: Condition 'size!=qg->qg[l].size' is redundant fontforge-20220308/fontforgeexe/deltaui.c:392:40: style: Parameter 'cv' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/displayfonts.c:983:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforgeexe/displayfonts.c:983:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforgeexe/displayfonts.c:1570:68: warning: Either the condition 'mv!=NULL' is redundant or there is possible null pointer dereference: mv. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/displayfonts.c:1595:12: note: Assuming that condition 'mv!=NULL' is not redundant fontforge-20220308/fontforgeexe/displayfonts.c:1570:68: note: Null pointer dereference fontforge-20220308/fontforgeexe/displayfonts.c:919:14: style: Local variable 'ti' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/displayfonts.c:911:17: note: Shadowed declaration fontforge-20220308/fontforgeexe/displayfonts.c:919:14: note: Shadow variable fontforge-20220308/fontforgeexe/displayfonts.c:920:6: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/displayfonts.c:909:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/displayfonts.c:920:6: note: Shadow variable fontforge-20220308/fontforgeexe/displayfonts.c:1579:16: style: Local variable '_GScrollBar_Width' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/ggadgetP.h:539:12: note: Shadowed declaration fontforge-20220308/fontforgeexe/displayfonts.c:1579:16: note: Shadow variable fontforge-20220308/fontforgeexe/displayfonts.c:1184:12: style: Variable 'size' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/encodingui.c:333:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforgeexe/encodingui.c:565:69: style: Parameter 'enc' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/fontinfo.c:4807:23: warning: Either the condition 'info.weight>0' is redundant or the array 'weightclass[10]' is accessed at index -1, which is out of bounds. [negativeIndex] fontforge-20220308/fontforgeexe/fontinfo.c:4805:21: note: Assuming that condition 'info.weight>0' is not redundant fontforge-20220308/fontforgeexe/fontinfo.c:4807:23: note: Negative array index fontforge-20220308/fontforgeexe/fontinfo.c:9048:14: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] fontforge-20220308/fontforgeexe/fontinfo.c:10414:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/fontforgeexe/fontinfo.c:10433:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/fontforgeexe/fontinfo.c:3900:11: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforgeexe/fontinfo.c:1996:6: error: Common realloc mistake: 'new' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/fontinfo.c:1987:15: style: Variable '*(char*)pt' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/fontinfo.c:1985:25: note: *(char*)pt is assigned fontforge-20220308/fontforgeexe/fontinfo.c:1987:15: note: *(char*)pt is overwritten fontforge-20220308/fontforgeexe/fontinfo.c:6569:7: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] fontforge-20220308/fontforgeexe/fontinfo.c:6571:2: note: Found duplicate branches for 'if' and 'else'. fontforge-20220308/fontforgeexe/fontinfo.c:6569:7: note: Found duplicate branches for 'if' and 'else'. fontforge-20220308/fontforgeexe/fontinfo.c:2252:10: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:2234:6: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:2252:10: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:3993:31: style: Local variable 'fstype' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:129:18: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:3993:31: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:3993:49: style: Local variable 'stylemap' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:220:18: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:3993:49: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:4025:10: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:3990:6: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:4025:10: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:4169:7: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:3990:6: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:4169:7: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:6446:18: style: Local variable 'ti' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:6325:13: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:6446:18: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:6496:17: style: Local variable '_ggadget_Default_Box' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:63:13: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:6496:17: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:6624:30: style: Local variable 'sub' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/fontinfo.c:6555:74: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:6624:30: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:6807:6: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:6756:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:6807:6: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:6857:18: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:6756:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:6857:18: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:6858:8: style: Local variable 'buts' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:6757:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:6858:8: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:6930:13: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontinfo.c:6926:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontinfo.c:6930:13: note: Shadow variable fontforge-20220308/fontforgeexe/fontinfo.c:1949:12: error: Memory is allocated but not initialized: new [uninitdata] fontforge-20220308/fontforgeexe/fontinfo.c:1839:47: style: struct member 'Anonymous1::arr_size' is never used. [unusedStructMember] fontforge-20220308/fontforgeexe/fontinfo.c:1839:57: style: struct member 'Anonymous1::present' is never used. [unusedStructMember] fontforge-20220308/fontforgeexe/fontinfo.c:2086:65: style: Variable 'tmplocale' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/fontview.c:2084:18: warning: Either the condition 'sc->unicodeenc>0xffff' is redundant or isupper() argument nr 1 can have invalid value. The value is 65535 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforgeexe/fontview.c:2083:59: note: Assuming that condition 'sc->unicodeenc>0xffff' is not redundant fontforge-20220308/fontforgeexe/fontview.c:2084:18: note: Invalid argument fontforge-20220308/fontforgeexe/fontview.c:2087:18: warning: Either the condition 'sc->unicodeenc>0xffff' is redundant or islower() argument nr 1 can have invalid value. The value is 65535 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforgeexe/fontview.c:2086:64: note: Assuming that condition 'sc->unicodeenc>0xffff' is not redundant fontforge-20220308/fontforgeexe/fontview.c:2087:18: note: Invalid argument fontforge-20220308/fontforgeexe/fontview.c:2045:11: style: Condition 'done==2' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/fontview.c:2043:13: note: Assuming that condition '!done' is not redundant fontforge-20220308/fontforgeexe/fontview.c:2045:11: note: Condition 'done==2' is always false fontforge-20220308/fontforgeexe/fontview.c:2306:11: style: Condition 'done==2' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/fontview.c:2304:13: note: Assuming that condition '!done' is not redundant fontforge-20220308/fontforgeexe/fontview.c:2306:11: note: Condition 'done==2' is always false fontforge-20220308/fontforgeexe/fontview.c:3114:25: style: Condition 'bdf->pixelsize>48' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/fontview.c:3111:17: note: Assuming that condition 'bdf->pixelsize<=48' is not redundant fontforge-20220308/fontforgeexe/fontview.c:3114:25: note: Condition 'bdf->pixelsize>48' is always true fontforge-20220308/fontforgeexe/fontview.c:3117:32: style: Condition 'bdf->pixelsize>=96' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/fontview.c:3114:25: note: Assuming that condition 'bdf->pixelsize>48' is not redundant fontforge-20220308/fontforgeexe/fontview.c:3117:32: note: Condition 'bdf->pixelsize>=96' is always false fontforge-20220308/fontforgeexe/fontview.c:1821:34: warning: Either the condition 'pattern==NULL' is redundant or there is possible null pointer dereference: pattern. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/fontview.c:1823:17: note: Assuming that condition 'pattern==NULL' is not redundant fontforge-20220308/fontforgeexe/fontview.c:1821:34: note: Null pointer dereference fontforge-20220308/fontforgeexe/fontview.c:1118:31: warning: Either the condition 'fpt!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fontforge-20220308/fontforgeexe/fontview.c:1114:29: note: Assuming that condition 'fpt!=NULL' is not redundant fontforge-20220308/fontforgeexe/fontview.c:1118:31: note: Null pointer addition fontforge-20220308/fontforgeexe/fontview.c:1821:25: warning: Either the condition 'pattern==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fontforge-20220308/fontforgeexe/fontview.c:1823:17: note: Assuming that condition 'pattern==NULL' is not redundant fontforge-20220308/fontforgeexe/fontview.c:1821:25: note: Null pointer addition fontforge-20220308/fontforgeexe/fontview.c:1925:19: style: Variable 'wattrs.is_dlg' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/fontview.c:1921:19: note: wattrs.is_dlg is assigned fontforge-20220308/fontforgeexe/fontview.c:1925:19: note: wattrs.is_dlg is overwritten fontforge-20220308/fontforgeexe/fontview.c:5994:9: style: Variable 'width' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/fontview.c:5986:9: note: width is assigned fontforge-20220308/fontforgeexe/fontview.c:5994:9: note: width is overwritten fontforge-20220308/fontforgeexe/fontview.c:5994:9: style: Variable 'width' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/fontview.c:5992:13: note: width is assigned fontforge-20220308/fontforgeexe/fontview.c:5994:9: note: width is overwritten fontforge-20220308/fontforgeexe/fontview.c:4014:8: warning: Redundant assignment of 'fv' to itself. [selfAssignment] fontforge-20220308/fontforgeexe/fontview.c:316:11: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:256:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:316:11: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:820:18: style: Local variable 'sf' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:800:17: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:820:18: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:2308:10: style: Local variable 'merge' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:2186:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:2308:10: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:3908:6: style: Local variable 'enc' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:3897:15: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:3908:6: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:5893:8: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:5775:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:5893:8: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:5903:12: style: Local variable 'uni' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:5823:10: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:5903:12: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:5909:12: style: Local variable 'uni' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:5823:10: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:5909:12: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:5924:8: style: Local variable 'uni' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:5823:10: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:5924:8: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:5928:8: style: Local variable 'uni' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:5823:10: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:5928:8: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:6139:16: style: Local variable 'navigation_mask' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/fontview.c:81:5: note: Shadowed declaration fontforge-20220308/fontforgeexe/fontview.c:6139:16: note: Shadow variable fontforge-20220308/fontforgeexe/fontview.c:3206:66: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/fontview.c:3214:64: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/fontview.c:3222:67: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/fontview.c:3231:67: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/fontview.c:1067:28: style: Parameter 'fv' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/fontview.c:7418:38: style: Parameter 'sf' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/fontview.c:4014:8: style: Variable 'fv' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/fontview.c:7756:15: style: Variable 'subsize.x' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/fontview.c:7756:30: style: Variable 'subsize.y' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/fvfontsdlg.c:80:36: style: Parameter 'except' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/fvfontsdlg.c:116:14: style: struct member 'mf_data::amount' is never used. [unusedStructMember] fontforge-20220308/fontforgeexe/groupsdlg.c:880:12: style: Condition 'pos!=-1' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/groupsdlg.c:896:15: style: Condition 'pos!=-1' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/groupsdlg.c:870:9: style: Local variable 'end' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/groupsdlg.c:857:19: note: Shadowed declaration fontforge-20220308/fontforgeexe/groupsdlg.c:870:9: note: Shadow variable fontforge-20220308/fontforgeexe/groupsdlg.c:1403:6: style: Local variable 'gid' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/groupsdlg.c:1387:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/groupsdlg.c:1403:6: note: Shadow variable fontforge-20220308/fontforgeexe/groupsdlg.c:932:17: style: Variable 'len' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/groupsdlg.c:932:21: style: Variable 'max' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/histograms.c:70:67: style: Parameter 'selected' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/histograms.c:145:72: style: Parameter 'selected' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/images.c:12238:23: style: Variable 'corner0_clut.clut[0]' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/images.c:12231:23: note: corner0_clut.clut[0] is assigned fontforge-20220308/fontforgeexe/images.c:12238:23: note: corner0_clut.clut[0] is overwritten fontforge-20220308/fontforgeexe/images.c:12239:23: style: Variable 'corner0_clut.clut[0]' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/images.c:12238:23: note: corner0_clut.clut[0] is assigned fontforge-20220308/fontforgeexe/images.c:12239:23: note: corner0_clut.clut[0] is overwritten fontforge-20220308/fontforgeexe/images.c:12240:23: style: Variable 'corner0_clut.clut[0]' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/images.c:12239:23: note: corner0_clut.clut[0] is assigned fontforge-20220308/fontforgeexe/images.c:12240:23: note: corner0_clut.clut[0] is overwritten fontforge-20220308/fontforgeexe/justifydlg.c:109:32: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] fontforge-20220308/fontforgeexe/justifydlg.c:108:34: note: outer condition: needswork[j][i].title!=NULL fontforge-20220308/fontforgeexe/justifydlg.c:109:32: note: identical inner condition: needswork[j][i].title!=NULL fontforge-20220308/fontforgeexe/justifydlg.c:527:31: style: Parameter 'str' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/kernclass.c:3269:21: warning: Either the condition 'kcld' is redundant or there is possible null pointer dereference: kcld. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/kernclass.c:3251:6: note: Assuming that condition 'kcld' is not redundant fontforge-20220308/fontforgeexe/kernclass.c:3269:21: note: Null pointer dereference fontforge-20220308/fontforgeexe/kernclass.c:1562:8: style: Local variable 'bpt' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/kernclass.c:1511:24: note: Shadowed declaration fontforge-20220308/fontforgeexe/kernclass.c:1562:8: note: Shadow variable fontforge-20220308/fontforgeexe/kernclass.c:1619:10: style: Local variable 'fg' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/kernclass.c:1573:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/kernclass.c:1619:10: note: Shadow variable fontforge-20220308/fontforgeexe/kernclass.c:1638:10: style: Local variable 'fg' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/kernclass.c:1573:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/kernclass.c:1638:10: note: Shadow variable fontforge-20220308/fontforgeexe/kernclass.c:3449:38: style: Parameter 'kcld' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/kernclass.c:168:34: style: Variable 'sf' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/kernclass.c:169:33: style: Variable 'sf' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/kernclass.c:187:34: style: Variable 'sf' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/kernclass.c:188:33: style: Variable 'sf' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/lookupui.c:4153:28: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true. [redundantCondition] fontforge-20220308/fontforgeexe/lookupui.c:4376:10: style: Condition 'DEBUG' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/lookupui.c:4626:54: style: Condition 'add_char_to_name_list' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/lookupui.c:1558:4: error: Common realloc mistake: 'langs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/lookupui.c:1651:6: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/lookupui.c:1697:4: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/lookupui.c:3666:4: error: Common realloc mistake: 'psts' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/lookupui.c:3686:2: error: Common realloc mistake: 'psts' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/lookupui.c:3918:6: error: Common realloc mistake: 'psts' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/lookupui.c:1226:12: style: Local variable 'tag' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/lookupui.c:1093:14: note: Shadowed declaration fontforge-20220308/fontforgeexe/lookupui.c:1226:12: note: Shadow variable fontforge-20220308/fontforgeexe/lookupui.c:1619:14: style: Local variable 'scripts' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/lookupui.c:187:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/lookupui.c:1619:14: note: Shadow variable fontforge-20220308/fontforgeexe/lookupui.c:3786:25: style: Local variable 'scripts' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/lookupui.c:187:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/lookupui.c:3786:25: note: Shadow variable fontforge-20220308/fontforgeexe/lookupui.c:6130:16: style: Local variable 'default_autokern_dlg' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/lookupui.c:53:5: note: Shadowed declaration fontforge-20220308/fontforgeexe/lookupui.c:6130:16: note: Shadow variable fontforge-20220308/fontforgeexe/lookupui.c:1645:23: style: Argument 'bmax=100' to function malloc is always 100. It does not matter what value 'bmax' has. [knownArgument] fontforge-20220308/fontforgeexe/lookupui.c:2095:72: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/lookupui.c:2104:85: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/lookupui.c:2113:84: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/lookupui.c:2122:89: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/lookupui.c:2527:89: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/lookupui.c:5277:85: style: Parameter 'exclude' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/lookupui.c:6710:75: style: Parameter 'sub' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/lookupui.c:6967:75: style: Parameter 'before' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/lookupui.c:93:9: error: Uninitialized variable: ti [uninitvar] fontforge-20220308/fontforgeexe/lookupui.c:88:7: note: Assuming condition is false fontforge-20220308/fontforgeexe/lookupui.c:93:9: note: Uninitialized variable: ti fontforge-20220308/fontforgeexe/lookupui.c:118:9: error: Uninitialized variable: ti [uninitvar] fontforge-20220308/fontforgeexe/lookupui.c:115:7: note: Assuming condition is false fontforge-20220308/fontforgeexe/lookupui.c:118:9: note: Uninitialized variable: ti fontforge-20220308/fontforgeexe/lookupui.c:147:9: error: Uninitialized variable: ti [uninitvar] fontforge-20220308/fontforgeexe/lookupui.c:144:7: note: Assuming condition is false fontforge-20220308/fontforgeexe/lookupui.c:147:9: note: Uninitialized variable: ti fontforge-20220308/fontforgeexe/lookupui.c:1828:9: error: Uninitialized variable: ti [uninitvar] fontforge-20220308/fontforgeexe/lookupui.c:1825:7: note: Assuming condition is false fontforge-20220308/fontforgeexe/lookupui.c:1828:9: note: Uninitialized variable: ti fontforge-20220308/fontforgeexe/lookupui.c:1516:21: style: Variable 'lcnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/lookupui.c:1677:21: style: Variable 'bpos' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/lookupui.c:2602:17: style: Variable 'gw' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/lookupui.c:3149:9: style: Variable 'second' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/lookupui.c:4044:20: style: Variable 'sc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/lookupui.c:4045:14: style: Variable 'pst' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/lookupui.c:5591:15: style: Variable 'subsize.x' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/lookupui.c:5591:30: style: Variable 'subsize.y' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/macencui.c:538:1: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] fontforge-20220308/fontforgeexe/macencui.c:891:1: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] fontforge-20220308/fontforgeexe/macencui.c:1238:1: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] fontforge-20220308/fontforgeexe/math.c:1433:12: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforgeexe/math.c:1431:12: note: First condition fontforge-20220308/fontforgeexe/math.c:1433:12: note: Second condition fontforge-20220308/fontforgeexe/math.c:876:15: style: Local variable 'g' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/math.c:848:29: note: Shadowed declaration fontforge-20220308/fontforgeexe/math.c:876:15: note: Shadow variable fontforge-20220308/fontforgeexe/math.c:946:15: style: Local variable 'g' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/math.c:848:29: note: Shadowed declaration fontforge-20220308/fontforgeexe/math.c:946:15: note: Shadow variable fontforge-20220308/fontforgeexe/math.c:1461:15: style: Local variable 'list' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/math.c:1412:17: note: Shadowed declaration fontforge-20220308/fontforgeexe/math.c:1461:15: note: Shadow variable fontforge-20220308/fontforgeexe/metricsview.c:758:25: style: Condition 'buf[strlen(buf)-1]=='0'' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/metricsview.c:757:23: note: Assignment 'buf[strlen(buf)-1]='\0'', assigned value is 0 fontforge-20220308/fontforgeexe/metricsview.c:758:25: note: Condition 'buf[strlen(buf)-1]=='0'' is always false fontforge-20220308/fontforgeexe/metricsview.c:760:29: style: Condition 'buf[strlen(buf)-1]=='.'' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/metricsview.c:759:27: note: Assignment 'buf[strlen(buf)-1]='\0'', assigned value is 0 fontforge-20220308/fontforgeexe/metricsview.c:760:29: note: Condition 'buf[strlen(buf)-1]=='.'' is always false fontforge-20220308/fontforgeexe/metricsview.c:769:25: style: Condition 'buf[strlen(buf)-1]=='0'' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/metricsview.c:768:23: note: Assignment 'buf[strlen(buf)-1]='\0'', assigned value is 0 fontforge-20220308/fontforgeexe/metricsview.c:769:25: note: Condition 'buf[strlen(buf)-1]=='0'' is always false fontforge-20220308/fontforgeexe/metricsview.c:771:29: style: Condition 'buf[strlen(buf)-1]=='.'' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/metricsview.c:770:27: note: Assignment 'buf[strlen(buf)-1]='\0'', assigned value is 0 fontforge-20220308/fontforgeexe/metricsview.c:771:29: note: Condition 'buf[strlen(buf)-1]=='.'' is always false fontforge-20220308/fontforgeexe/metricsview.c:1164:59: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforgeexe/metricsview.c:1209:58: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforgeexe/metricsview.c:4778:56: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] fontforge-20220308/fontforgeexe/metricsview.c:581:6: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforgeexe/metricsview.c:581:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] fontforge-20220308/fontforgeexe/metricsview.c:417:14: style: Redundant initialization for 'lscale'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/fontforgeexe/metricsview.c:413:14: note: lscale is initialized fontforge-20220308/fontforgeexe/metricsview.c:417:14: note: lscale is overwritten fontforge-20220308/fontforgeexe/metricsview.c:824:16: style: Variable 'label.text' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/metricsview.c:819:16: note: label.text is assigned fontforge-20220308/fontforgeexe/metricsview.c:824:16: note: label.text is overwritten fontforge-20220308/fontforgeexe/metricsview.c:829:16: style: Variable 'label.text' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/metricsview.c:824:16: note: label.text is assigned fontforge-20220308/fontforgeexe/metricsview.c:829:16: note: label.text is overwritten fontforge-20220308/fontforgeexe/metricsview.c:833:16: style: Variable 'label.text' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/metricsview.c:829:16: note: label.text is assigned fontforge-20220308/fontforgeexe/metricsview.c:833:16: note: label.text is overwritten fontforge-20220308/fontforgeexe/metricsview.c:1916:9: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/metricsview.c:1909:9: note: ret is assigned fontforge-20220308/fontforgeexe/metricsview.c:1916:9: note: ret is overwritten fontforge-20220308/fontforgeexe/metricsview.c:5313:16: style: Variable 'label.text' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/metricsview.c:5301:16: note: label.text is assigned fontforge-20220308/fontforgeexe/metricsview.c:5313:16: note: label.text is overwritten fontforge-20220308/fontforgeexe/metricsview.c:1375:10: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/metricsview.c:1303:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/metricsview.c:1375:10: note: Shadow variable fontforge-20220308/fontforgeexe/metricsview.c:1493:6: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/metricsview.c:1303:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/metricsview.c:1493:6: note: Shadow variable fontforge-20220308/fontforgeexe/metricsview.c:1504:7: style: Local variable 'which' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/metricsview.c:1298:50: note: Shadowed declaration fontforge-20220308/fontforgeexe/metricsview.c:1504:7: note: Shadow variable fontforge-20220308/fontforgeexe/metricsview.c:5321:19: style: Local variable 'label' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/metricsview.c:5198:15: note: Shadowed declaration fontforge-20220308/fontforgeexe/metricsview.c:5321:19: note: Shadow variable fontforge-20220308/fontforgeexe/metricsview.c:730:49: style: Parameter 'sc' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/metricsview.c:1105:34: style: Parameter 'end' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/metricsview.c:1997:9: style: Variable 'gt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/metricsview.c:2105:11: style: Variable 'sstr' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/metricsview.c:2179:10: style: Variable 'sub' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/metricsview.c:4205:13: style: Variable 'j' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/mmdlg.c:845:0: error: #error "The mastercounts array needs to be expanded to match AppleMmMax" [preprocessorErrorDirective] fontforge-20220308/fontforgeexe/multidialog.c:374:13: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] fontforge-20220308/fontforgeexe/multidialog.c:290:61: portability: '(void*)(unsigned long)mpp->listcid' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforgeexe/multidialog.c:299:61: portability: '(void*)(unsigned long)mpp->listcid' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] fontforge-20220308/fontforgeexe/nonlineartransui.c:179:8: style: Condition 'd.done' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/nonlineartransui.c:177:13: note: Assuming that condition '!d.done' is not redundant fontforge-20220308/fontforgeexe/nonlineartransui.c:179:8: note: Condition 'd.done' is always false fontforge-20220308/fontforgeexe/nonlineartransui.c:581:8: style: Condition 'd.done' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/nonlineartransui.c:579:13: note: Assuming that condition '!d.done' is not redundant fontforge-20220308/fontforgeexe/nonlineartransui.c:581:8: note: Condition 'd.done' is always false fontforge-20220308/fontforgeexe/openfontdlg.c:218:5: error: Uninitialized variable: ti [uninitvar] fontforge-20220308/fontforgeexe/openfontdlg.c:206:7: note: Assuming condition is true fontforge-20220308/fontforgeexe/openfontdlg.c:218:5: note: Uninitialized variable: ti fontforge-20220308/fontforgeexe/openfontdlg.c:355:22: error: Uninitialized variable: md [uninitvar] fontforge-20220308/fontforgeexe/openfontdlg.c:351:7: note: Assuming condition is false fontforge-20220308/fontforgeexe/openfontdlg.c:355:22: note: Uninitialized variable: md fontforge-20220308/fontforgeexe/prefs.c:938:8: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforgeexe/prefs.c:939:12: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforgeexe/prefs.c:940:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforgeexe/prefs.c:1060:8: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforgeexe/prefs.c:1061:12: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforgeexe/prefs.c:1062:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/fontforgeexe/prefs.c:898:4: error: Common realloc mistake: 'user_font_filters' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/prefs.c:1020:4: error: Common realloc mistake: 'user_font_filters' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/prefs.c:2481:18: style: Redundant initialization for 'pl'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/fontforgeexe/prefs.c:2474:27: note: pl is initialized fontforge-20220308/fontforgeexe/prefs.c:2481:18: note: pl is overwritten fontforge-20220308/fontforgeexe/prefs.c:2561:18: style: Redundant initialization for 'pl'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/fontforgeexe/prefs.c:2539:27: note: pl is initialized fontforge-20220308/fontforgeexe/prefs.c:2561:18: note: pl is overwritten fontforge-20220308/fontforgeexe/prefs.c:1666:15: style: Local variable 'e' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/prefs.c:1589:41: note: Shadowed declaration fontforge-20220308/fontforgeexe/prefs.c:1666:15: note: Shadow variable fontforge-20220308/fontforgeexe/prefs.c:2339:21: style: Local variable 'gcd' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/prefs.c:1811:30: note: Shadowed declaration fontforge-20220308/fontforgeexe/prefs.c:2339:21: note: Shadow variable fontforge-20220308/fontforgeexe/prefs.c:2496:14: style: Local variable 'e' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/prefs.c:2470:47: note: Shadowed declaration fontforge-20220308/fontforgeexe/prefs.c:2496:14: note: Shadow variable fontforge-20220308/fontforgeexe/prefs.c:2022:16: error: Uninitialized variable: gcnt [uninitvar] fontforge-20220308/fontforgeexe/prefs.c:1831:55: note: Assuming condition is false fontforge-20220308/fontforgeexe/prefs.c:2022:16: note: Uninitialized variable: gcnt fontforge-20220308/fontforgeexe/problems.c:1629:20: warning: Either the condition 'vs!=NULL' is redundant or there is possible null pointer dereference: vs. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/problems.c:1631:13: note: Assuming that condition 'vs!=NULL' is not redundant fontforge-20220308/fontforgeexe/problems.c:1629:20: note: Null pointer dereference fontforge-20220308/fontforgeexe/problems.c:244:22: style: Local variable 'spl' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/problems.c:235:22: note: Shadowed declaration fontforge-20220308/fontforgeexe/problems.c:244:22: note: Shadow variable fontforge-20220308/fontforgeexe/problems.c:1694:14: style: Local variable 'first' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/problems.c:1027:22: note: Shadowed declaration fontforge-20220308/fontforgeexe/problems.c:1694:14: note: Shadow variable fontforge-20220308/fontforgeexe/problems.c:685:69: style: Parameter 'sp' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/problems.c:712:70: style: Parameter 'spline' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/problems.c:732:50: style: Parameter 'findme' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/problems.c:739:36: style: Parameter 'findme' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/problems.c:1007:61: style: Parameter 'spline' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/problems.c:63:14: style: struct member 'mlrpl::search' is never used. [unusedStructMember] fontforge-20220308/fontforgeexe/problems.c:64:14: style: struct member 'mlrpl::rpl' is never used. [unusedStructMember] fontforge-20220308/fontforgeexe/problems.c:5037:10: style: Variable 'k' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/pythonui.c:666:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] fontforge-20220308/fontforgeexe/pythonui.c:454:7: error: Common realloc mistake: 'mn' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/savefontdlg.c:447:19: warning: Either the condition 'which==3' is redundant or the array 'd->optset[3]' is accessed at index 3, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/savefontdlg.c:449:32: note: Assuming that condition 'which==3' is not redundant fontforge-20220308/fontforgeexe/savefontdlg.c:447:19: note: Array index out of bounds fontforge-20220308/fontforgeexe/savefontdlg.c:1287:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fontforge-20220308/fontforgeexe/savefontdlg.c:1147:10: style: Condition '!done' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/savefontdlg.c:1146:9: note: Assignment 'done=0', assigned value is 0 fontforge-20220308/fontforgeexe/savefontdlg.c:1147:10: note: Condition '!done' is always true fontforge-20220308/fontforgeexe/savefontdlg.c:1161:11: style: Condition 'done==-1' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/savefontdlg.c:1146:9: note: Assignment 'done=0', assigned value is 0 fontforge-20220308/fontforgeexe/savefontdlg.c:1149:23: note: Assuming condition is false fontforge-20220308/fontforgeexe/savefontdlg.c:1161:11: note: Condition 'done==-1' is always false fontforge-20220308/fontforgeexe/savefontdlg.c:2080:7: error: Common realloc mistake: 'familysfs' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/savefontdlg.c:1221:16: style: Redundant initialization for 'supl'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/fontforgeexe/savefontdlg.c:1219:14: note: supl is initialized fontforge-20220308/fontforgeexe/savefontdlg.c:1221:16: note: supl is overwritten fontforge-20220308/fontforgeexe/savefontdlg.c:1432:8: style: Local variable 'buts' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/savefontdlg.c:1330:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/savefontdlg.c:1432:8: note: Shadow variable fontforge-20220308/fontforgeexe/savefontdlg.c:1693:12: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/savefontdlg.c:1687:13: note: Shadowed declaration fontforge-20220308/fontforgeexe/savefontdlg.c:1693:12: note: Shadow variable fontforge-20220308/fontforgeexe/savefontdlg.c:2113:21: style: Local variable 'label' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/savefontdlg.c:1992:15: note: Shadowed declaration fontforge-20220308/fontforgeexe/savefontdlg.c:2113:21: note: Shadow variable fontforge-20220308/fontforgeexe/savefontdlg.c:2648:13: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/savefontdlg.c:1997:17: note: Shadowed declaration fontforge-20220308/fontforgeexe/savefontdlg.c:2648:13: note: Shadow variable fontforge-20220308/fontforgeexe/savefontdlg.c:2030:33: style: Argument '(fondmax=10)*sizeof(SplineFont(*)[48])' to function malloc is always 80. It does not matter what value 'fondmax' has. [knownArgument] fontforge-20220308/fontforgeexe/savefontdlg.c:114:14: style: struct member 'gfc_data::options' is never used. [unusedStructMember] fontforge-20220308/fontforgeexe/savefontdlg.c:1257:6: style: Variable 'def' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/scstylesui.c:1750:5: warning: Either the condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is redundant or the array 'gcd[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/scstylesui.c:1769:8: note: Assuming that condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is not redundant fontforge-20220308/fontforgeexe/scstylesui.c:1750:5: note: Array index out of bounds fontforge-20220308/fontforgeexe/scstylesui.c:1751:5: warning: Either the condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is redundant or the array 'gcd[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/scstylesui.c:1769:8: note: Assuming that condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is not redundant fontforge-20220308/fontforgeexe/scstylesui.c:1751:5: note: Array index out of bounds fontforge-20220308/fontforgeexe/scstylesui.c:1752:5: warning: Either the condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is redundant or the array 'gcd[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/scstylesui.c:1769:8: note: Assuming that condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is not redundant fontforge-20220308/fontforgeexe/scstylesui.c:1752:5: note: Array index out of bounds fontforge-20220308/fontforgeexe/scstylesui.c:1753:7: warning: Either the condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is redundant or the array 'label[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/scstylesui.c:1769:8: note: Assuming that condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is not redundant fontforge-20220308/fontforgeexe/scstylesui.c:1753:7: note: Array index out of bounds fontforge-20220308/fontforgeexe/scstylesui.c:1754:7: warning: Either the condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is redundant or the array 'label[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/scstylesui.c:1769:8: note: Assuming that condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is not redundant fontforge-20220308/fontforgeexe/scstylesui.c:1754:7: note: Array index out of bounds fontforge-20220308/fontforgeexe/scstylesui.c:1755:7: warning: Either the condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is redundant or the array 'label[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/scstylesui.c:1769:8: note: Assuming that condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is not redundant fontforge-20220308/fontforgeexe/scstylesui.c:1755:7: note: Array index out of bounds fontforge-20220308/fontforgeexe/scstylesui.c:1756:5: warning: Either the condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is redundant or the array 'gcd[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/scstylesui.c:1769:8: note: Assuming that condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is not redundant fontforge-20220308/fontforgeexe/scstylesui.c:1756:5: note: Array index out of bounds fontforge-20220308/fontforgeexe/scstylesui.c:1757:5: warning: Either the condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is redundant or the array 'gcd[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/scstylesui.c:1769:8: note: Assuming that condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is not redundant fontforge-20220308/fontforgeexe/scstylesui.c:1757:5: note: Array index out of bounds fontforge-20220308/fontforgeexe/scstylesui.c:1758:5: warning: Either the condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is redundant or the array 'gcd[64]' is accessed at index 64, which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/fontforgeexe/scstylesui.c:1769:8: note: Assuming that condition 'k>=sizeof(gcd)/sizeof(gcd[0])' is not redundant fontforge-20220308/fontforgeexe/scstylesui.c:1758:5: note: Array index out of bounds fontforge-20220308/fontforgeexe/scstylesui.c:483:68: style: Condition 'genchange.stem_width_add!=0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/scstylesui.c:90:13: style: Variable 'err' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/scstylesui.c:860:6: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/scstylesui.c:1842:13: style: Variable 'err' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/searchview.c:609:27: warning: Either the condition 'fv!=NULL' is redundant or there is possible null pointer dereference: fv. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/searchview.c:641:12: note: Assuming that condition 'fv!=NULL' is not redundant fontforge-20220308/fontforgeexe/searchview.c:609:27: note: Null pointer dereference fontforge-20220308/fontforgeexe/searchview.c:610:28: warning: Either the condition 'fv!=NULL' is redundant or there is possible null pointer dereference: fv. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/searchview.c:641:12: note: Assuming that condition 'fv!=NULL' is not redundant fontforge-20220308/fontforgeexe/searchview.c:610:28: note: Null pointer dereference fontforge-20220308/fontforgeexe/searchview.c:613:37: warning: Either the condition 'fv!=NULL' is redundant or there is possible null pointer dereference: fv. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/searchview.c:641:12: note: Assuming that condition 'fv!=NULL' is not redundant fontforge-20220308/fontforgeexe/searchview.c:613:37: note: Null pointer dereference fontforge-20220308/fontforgeexe/searchview.c:615:37: warning: Either the condition 'fv!=NULL' is redundant or there is possible null pointer dereference: fv. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/searchview.c:641:12: note: Assuming that condition 'fv!=NULL' is not redundant fontforge-20220308/fontforgeexe/searchview.c:615:37: note: Null pointer dereference fontforge-20220308/fontforgeexe/searchview.c:617:32: warning: Either the condition 'fv!=NULL' is redundant or there is possible null pointer dereference: fv. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/searchview.c:641:12: note: Assuming that condition 'fv!=NULL' is not redundant fontforge-20220308/fontforgeexe/searchview.c:617:32: note: Null pointer dereference fontforge-20220308/fontforgeexe/searchview.c:618:27: warning: Either the condition 'fv!=NULL' is redundant or there is possible null pointer dereference: fv. [nullPointerRedundantCheck] fontforge-20220308/fontforgeexe/searchview.c:641:12: note: Assuming that condition 'fv!=NULL' is not redundant fontforge-20220308/fontforgeexe/searchview.c:618:27: note: Null pointer dereference fontforge-20220308/fontforgeexe/searchview.c:673:24: style: Variable 'wattrs.event_masks' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/searchview.c:672:24: note: wattrs.event_masks is assigned fontforge-20220308/fontforgeexe/searchview.c:673:24: note: wattrs.event_masks is overwritten fontforge-20220308/fontforgeexe/searchview.c:88:6: style: Variable 'spl' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/sftextfield.c:835:21: style: Condition 'st->li.lcnt!=0' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/sfundo.c:191:10: style: Condition 'sc' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/sftextfield.c:2330:53: style:inconclusive: Function 'SFTFSetSize' argument 4 names different: declaration 'size' definition 'pointsize'. [funcArgNamesDifferent] fontforge-20220308/fontforgeexe/sftextfieldP.h:83:60: note: Function 'SFTFSetSize' argument 4 names different: declaration 'size' definition 'pointsize'. fontforge-20220308/fontforgeexe/sftextfield.c:2330:53: note: Function 'SFTFSetSize' argument 4 names different: declaration 'size' definition 'pointsize'. fontforge-20220308/fontforgeexe/sftextfield.c:336:7: style: Variable 'x' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/sftextfield.c:2157:14: style: Variable 'needed.x' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/sftextfield.c:2157:25: style: Variable 'needed.y' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/sftextfield.c:2158:18: style: Variable 'needed.width' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/sftextfield.c:2158:34: style: Variable 'needed.height' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/showatt.c:2030:64: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/showatt.c:1946:13: note: Shadowed declaration fontforge-20220308/fontforgeexe/showatt.c:2030:64: note: Shadow variable fontforge-20220308/fontforgeexe/showatt.c:2077:7: style: Local variable 'k' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/showatt.c:1946:11: note: Shadowed declaration fontforge-20220308/fontforgeexe/showatt.c:2077:7: note: Shadow variable fontforge-20220308/fontforgeexe/showatt.c:2086:10: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/showatt.c:1946:13: note: Shadowed declaration fontforge-20220308/fontforgeexe/showatt.c:2086:10: note: Shadow variable fontforge-20220308/fontforgeexe/showatt.c:2957:34: style: Argument 'nf.linemax=300' to function malloc is always 300. It does not matter what value 'nf.linemax' has. [knownArgument] fontforge-20220308/fontforgeexe/showatt.c:2217:16: style: Variable 'quotes' can be declared as const array [constVariable] fontforge-20220308/fontforgeexe/showatt.c:2232:16: style: Variable 'endquotes' can be declared as const array [constVariable] fontforge-20220308/fontforgeexe/showatt.c:2399:37: style: Parameter 'fv' can be declared as pointer to const [constParameter] fontforge-20220308/fontforgeexe/showatt.c:785:10: error: Uninitialized variable: used [uninitvar] fontforge-20220308/fontforgeexe/showatt.c:683:19: note: Assuming condition is false fontforge-20220308/fontforgeexe/showatt.c:785:10: note: Uninitialized variable: used fontforge-20220308/fontforgeexe/showatt.c:3011:14: style: struct member 'mf_data::amount' is never used. [unusedStructMember] fontforge-20220308/fontforgeexe/showatt.c:300:7: style: Variable 'i' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/showatt.c:2055:7: style: Variable 'j' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/showatt.c:2127:6: style: Variable 'i' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/startnoui.c:107:30: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/fontforgeexe/startui.c:211:27: portability: Undefined behaviour, pointer arithmetic 'msg-1' is out of bounds. [pointerOutOfBounds] fontforge-20220308/fontforgeexe/startui.c:644:30: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/fontforgeexe/startui.c:307:11: style: Local variable 'msg' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/startui.c:167:18: note: Shadowed declaration fontforge-20220308/fontforgeexe/startui.c:307:11: note: Shadow variable fontforge-20220308/fontforgeexe/startui.c:413:9: style: Variable 'x' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/startui.c:617:20: style: Variable 'use_cairo' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/statemachine.c:1020:11: style: Local variable 'j' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/statemachine.c:930:22: note: Shadowed declaration fontforge-20220308/fontforgeexe/statemachine.c:1020:11: note: Shadow variable fontforge-20220308/fontforgeexe/statemachine.c:258:4: error: Memory is allocated but not initialized: pt [uninitdata] fontforge-20220308/fontforgeexe/statemachine.c:106:9: style: struct member 'statemachinedlg::isedit' is never used. [unusedStructMember] fontforge-20220308/fontforgeexe/transform.c:123:9: style: Local variable 'origin' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/transform.c:92:18: note: Shadowed declaration fontforge-20220308/fontforgeexe/transform.c:123:9: note: Shadow variable fontforge-20220308/fontforgeexe/transform.c:593:6: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/transform.c:585:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/transform.c:593:6: note: Shadow variable fontforge-20220308/fontforgeexe/transform.c:691:62: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/transform.c:692:31: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/transform.c:704:29: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/transform.c:705:30: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/fontforgeexe/transform.c:120:40: style: Variable 'round_2_int' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/transform.c:121:33: style: Variable 'dowidth' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/ttfinstrsui.c:1740:24: style: Variable 'wattrs.undercursor' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/ttfinstrsui.c:1736:24: note: wattrs.undercursor is assigned fontforge-20220308/fontforgeexe/ttfinstrsui.c:1740:24: note: wattrs.undercursor is overwritten fontforge-20220308/fontforgeexe/ttfinstrsui.c:1045:14: style: Local variable 'e' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/ttfinstrsui.c:1041:48: note: Shadowed declaration fontforge-20220308/fontforgeexe/ttfinstrsui.c:1045:14: note: Shadow variable fontforge-20220308/fontforgeexe/ttfinstrsui.c:1336:6: style: Variable 'r.x' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/ttfinstrsui.c:1336:12: style: Variable 'r.y' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/ttfinstrsui.c:1336:51: style: Variable 'r.height' is assigned a value that is never used. [unreadVariable] fontforge-20220308/fontforgeexe/uiutil.c:294:17: style: Local variable '_ggadget_Default_Box' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/uiutil.c:38:13: note: Shadowed declaration fontforge-20220308/fontforgeexe/uiutil.c:294:17: note: Shadow variable fontforge-20220308/fontforgeexe/uiutil.c:429:10: error: Uninitialized variable: buffer [uninitvar] fontforge-20220308/fontforgeexe/uiutil.c:506:22: note: Calling function 'AppendToErrorWindow', 1st argument 'nbuffer' value is fontforge-20220308/fontforgeexe/uiutil.c:429:10: note: Uninitialized variable: buffer fontforge-20220308/fontforgeexe/usermenu.c:158:13: error: Common realloc mistake: 'cv_menu_data' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/usermenu.c:166:13: error: Common realloc mistake: 'fv_menu_data' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/windowmenu.c:156:17: style: Local variable 'mi' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/windowmenu.c:127:53: note: Shadowed declaration fontforge-20220308/fontforgeexe/windowmenu.c:156:17: note: Shadow variable fontforge-20220308/fontforgeexe/windowmenu.c:212:13: style: Local variable 'mi' shadows outer argument [shadowArgument] fontforge-20220308/fontforgeexe/windowmenu.c:196:54: note: Shadowed declaration fontforge-20220308/fontforgeexe/windowmenu.c:212:13: note: Shadow variable fontforge-20220308/fontforgeexe/wordlistparser.c:665:13: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforgeexe/wordlistparser.c:650:13: note: First condition fontforge-20220308/fontforgeexe/wordlistparser.c:665:13: note: Second condition fontforge-20220308/fontforgeexe/wordlistparser.c:727:13: style: The if condition is the same as the previous if condition [duplicateCondition] fontforge-20220308/fontforgeexe/wordlistparser.c:701:13: note: First condition fontforge-20220308/fontforgeexe/wordlistparser.c:727:13: note: Second condition fontforge-20220308/fontforgeexe/wordlistparser.c:201:7: style: Condition 'firstLookup' is always true [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/wordlistparser.c:128:23: note: Assignment 'firstLookup=1', assigned value is 1 fontforge-20220308/fontforgeexe/wordlistparser.c:201:7: note: Condition 'firstLookup' is always true fontforge-20220308/fontforgeexe/wordlistparser.c:480:13: style: Local variable 'buffer' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/wordlistparser.c:453:10: note: Shadowed declaration fontforge-20220308/fontforgeexe/wordlistparser.c:480:13: note: Shadow variable fontforge-20220308/fontforgeexe/wordlistparser.c:100:47: style: Parameter 'in_end' can be declared as pointer to const [constParameter] fontforge-20220308/gdraw/drawboxborder.c:1260:6: style: Local variable 'width' shadows outer argument [shadowArgument] fontforge-20220308/gdraw/drawboxborder.c:1176:6: note: Shadowed declaration fontforge-20220308/gdraw/drawboxborder.c:1260:6: note: Shadow variable fontforge-20220308/gdraw/drawboxborder.c:709:47: style: Parameter 'pos' can be declared as pointer to const [constParameter] fontforge-20220308/gdraw/drawboxborder.c:1277:8: style: Variable 'inset' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gaskdlg.c:109:27: style: Local variable 'last' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gaskdlg.c:40:16: note: Shadowed declaration fontforge-20220308/gdraw/gaskdlg.c:109:27: note: Shadow variable fontforge-20220308/gdraw/gaskdlg.c:46:9: style: struct member 'dlg_info::multi' is never used. [unusedStructMember] fontforge-20220308/gdraw/gaskdlg.c:112:10: style: Variable 'last' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gbuttons.c:985:52: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/gdraw/gbuttons.c:987:50: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/gdraw/gbuttons.c:1029:33: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/gdraw/gbuttons.c:1030:32: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/gdraw/gcontainer.c:165:1: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] fontforge-20220308/gdraw/gcontainer.c:203:1: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] fontforge-20220308/gdraw/gcontainer.c:553:7: warning: Either the condition 'wd!=NULL' is redundant or there is possible null pointer dereference: wd. [nullPointerRedundantCheck] fontforge-20220308/gdraw/gcontainer.c:549:12: note: Assuming that condition 'wd!=NULL' is not redundant fontforge-20220308/gdraw/gcontainer.c:553:7: note: Null pointer dereference fontforge-20220308/gdraw/gcontainer.c:554:7: warning: Either the condition 'wd!=NULL' is redundant or there is possible null pointer dereference: wd. [nullPointerRedundantCheck] fontforge-20220308/gdraw/gcontainer.c:549:12: note: Assuming that condition 'wd!=NULL' is not redundant fontforge-20220308/gdraw/gcontainer.c:554:7: note: Null pointer dereference fontforge-20220308/gdraw/gcontainer.c:670:11: warning: Either the condition 'gw->widget_data==NULL' is redundant or there is possible null pointer dereference: gd. [nullPointerRedundantCheck] fontforge-20220308/gdraw/gcontainer.c:667:25: note: Assuming that condition 'gw->widget_data==NULL' is not redundant fontforge-20220308/gdraw/gcontainer.c:669:8: note: gd is assigned '(struct gwidgetcontainerdata*)(gw->widget_data)' here. fontforge-20220308/gdraw/gcontainer.c:670:11: note: Null pointer dereference fontforge-20220308/gdraw/gcontainer.c:691:10: warning: Either the condition 'gd==NULL' is redundant or there is possible null pointer dereference: gd. [nullPointerRedundantCheck] fontforge-20220308/gdraw/gcontainer.c:689:12: note: Assuming that condition 'gd==NULL' is not redundant fontforge-20220308/gdraw/gcontainer.c:688:10: note: Assignment to 'gd=(struct gwidgetcontainerdata*)(gw->widget_data)' fontforge-20220308/gdraw/gcontainer.c:688:8: note: gd is assigned '(struct gwidgetcontainerdata*)(gw->widget_data)' here. fontforge-20220308/gdraw/gcontainer.c:691:10: note: Null pointer dereference fontforge-20220308/gdraw/gdrawtxt.c:146:9: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/gdraw/gdrawtxt.c:145:17: note: ret is initialized fontforge-20220308/gdraw/gdrawtxt.c:146:9: note: ret is overwritten fontforge-20220308/gdraw/gfilechooser.c:342:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/gdraw/gfilechooser.c:954:5: error: Common realloc mistake: 'bookmarks' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/gdraw/gfilechooser.c:1092:20: warning: Either the condition 'bookmarks!=NULL' is redundant or there is possible null pointer dereference: bookmarks. [nullPointerRedundantCheck] fontforge-20220308/gdraw/gfilechooser.c:1086:17: note: Assuming that condition 'bookmarks!=NULL' is not redundant fontforge-20220308/gdraw/gfilechooser.c:1092:20: note: Null pointer dereference fontforge-20220308/gdraw/gfilechooser.c:606:14: warning: Redundant assignment of 'dirindex' to itself. [selfAssignment] fontforge-20220308/gdraw/gfilechooser.c:524:9: style: Local variable 'e' shadows outer argument [shadowArgument] fontforge-20220308/gdraw/gfilechooser.c:487:55: note: Shadowed declaration fontforge-20220308/gdraw/gfilechooser.c:524:9: note: Shadow variable fontforge-20220308/gdraw/gfilechooser.c:577:8: style: Local variable 'len' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gfilechooser.c:556:13: note: Shadowed declaration fontforge-20220308/gdraw/gfilechooser.c:577:8: note: Shadow variable fontforge-20220308/gdraw/gflowbox.c:343:88: style:inconclusive: Function '_GFlowBoxGetDesiredSize' argument 5 names different: declaration 'ignore_des' definition 'ignore_desired'. [funcArgNamesDifferent] fontforge-20220308/gdraw/ggadgetP.h:606:95: note: Function '_GFlowBoxGetDesiredSize' argument 5 names different: declaration 'ignore_des' definition 'ignore_desired'. fontforge-20220308/gdraw/gflowbox.c:343:88: note: Function '_GFlowBoxGetDesiredSize' argument 5 names different: declaration 'ignore_des' definition 'ignore_desired'. fontforge-20220308/gdraw/ggadgets.c:380:11: warning: Either the condition 'ept==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fontforge-20220308/gdraw/ggadgets.c:381:25: note: Assuming that condition 'ept==NULL' is not redundant fontforge-20220308/gdraw/ggadgets.c:380:11: note: Null pointer addition fontforge-20220308/gdraw/ggadgets.c:725:12: style:inconclusive: Function '_ggadget_underlineMnemonic' argument 5 names different: declaration 'mneumonic' definition 'mnemonic'. [funcArgNamesDifferent] fontforge-20220308/gdraw/ggadgetP.h:560:12: note: Function '_ggadget_underlineMnemonic' argument 5 names different: declaration 'mneumonic' definition 'mnemonic'. fontforge-20220308/gdraw/ggadgets.c:725:12: note: Function '_ggadget_underlineMnemonic' argument 5 names different: declaration 'mneumonic' definition 'mnemonic'. fontforge-20220308/gdraw/ggadgets.c:725:36: style:inconclusive: Function '_ggadget_underlineMnemonic' argument 7 names different: declaration 'ymax' definition 'maxy'. [funcArgNamesDifferent] fontforge-20220308/gdraw/ggadgetP.h:560:36: note: Function '_ggadget_underlineMnemonic' argument 7 names different: declaration 'ymax' definition 'maxy'. fontforge-20220308/gdraw/ggadgets.c:725:36: note: Function '_ggadget_underlineMnemonic' argument 7 names different: declaration 'ymax' definition 'maxy'. fontforge-20220308/gdraw/ggadgets.c:358:11: style: Variable 'msg' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/ghvbox.c:437:22: style: Local variable 'g' shadows outer argument [shadowArgument] fontforge-20220308/gdraw/ghvbox.c:294:35: note: Shadowed declaration fontforge-20220308/gdraw/ghvbox.c:437:22: note: Shadow variable fontforge-20220308/gdraw/gimageclut.c:180:47: style:inconclusive: Boolean expression '-1div_shift' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] fontforge-20220308/gdraw/gimageclut.c:176:27: warning: Either the condition 'side_cnt<0' is redundant or the array 'div_tables[257][2]' is accessed at index div_tables[257][0], which is out of bounds. [arrayIndexOutOfBoundsCond] fontforge-20220308/gdraw/gimageclut.c:166:18: note: Assuming that condition 'side_cnt<0' is not redundant fontforge-20220308/gdraw/gimageclut.c:176:27: note: Array index out of bounds fontforge-20220308/gdraw/gimageclut.c:119:15: warning: Redundant assignment of 'test' to itself. [selfAssignment] fontforge-20220308/gdraw/gimageclut.c:146:48: style: Parameter 'copy' can be declared as pointer to const [constParameter] fontforge-20220308/gdraw/gimageclut.c:95:10: style: Variable 'val' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gimageclut.c:112:48: style: Variable 'b' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gimageclut.c:122:10: style: Variable 'b' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gimageclut.c:131:10: style: Variable 'b' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gimageclut.c:133:14: style: Variable 'bestoff' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gimagexdraw.c:634:33: style: Condition 'trans!=-1' is always true [knownConditionTrueFalse] fontforge-20220308/gdraw/gimagexdraw.c:633:14: note: Assignment 'index=*pt++', assigned value is greater than -1 fontforge-20220308/gdraw/gimagexdraw.c:634:17: note: Assuming that condition 'index==trans' is not redundant fontforge-20220308/gdraw/gimagexdraw.c:634:33: note: Condition 'trans!=-1' is always true fontforge-20220308/gdraw/gimagexdraw.c:916:33: style: Condition 'trans!=-1' is always true [knownConditionTrueFalse] fontforge-20220308/gdraw/gimagexdraw.c:915:14: note: Assignment 'index=*pt++', assigned value is greater than -1 fontforge-20220308/gdraw/gimagexdraw.c:916:17: note: Assuming that condition 'index==trans' is not redundant fontforge-20220308/gdraw/gimagexdraw.c:916:33: note: Condition 'trans!=-1' is always true fontforge-20220308/gdraw/gimagexdraw.c:1224:33: style: Condition 'trans!=-1' is always true [knownConditionTrueFalse] fontforge-20220308/gdraw/gimagexdraw.c:1223:14: note: Assignment 'index=*pt++', assigned value is greater than -1 fontforge-20220308/gdraw/gimagexdraw.c:1224:17: note: Assuming that condition 'index==trans' is not redundant fontforge-20220308/gdraw/gimagexdraw.c:1224:33: note: Condition 'trans!=-1' is always true fontforge-20220308/gdraw/gimagexdraw.c:1548:33: style: Condition 'trans!=-1' is always true [knownConditionTrueFalse] fontforge-20220308/gdraw/gimagexdraw.c:1547:14: note: Assignment 'index=*pt++', assigned value is greater than -1 fontforge-20220308/gdraw/gimagexdraw.c:1548:17: note: Assuming that condition 'index==trans' is not redundant fontforge-20220308/gdraw/gimagexdraw.c:1548:33: note: Condition 'trans!=-1' is always true fontforge-20220308/gdraw/gimagexdraw.c:2122:2: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/gdraw/gimagexdraw.c:2167:63: style:inconclusive: Function '_GXDraw_ImageMagnified' argument 3 names different: declaration 'src' definition 'magsrc'. [funcArgNamesDifferent] fontforge-20220308/gdraw/gxdrawP.h:361:62: note: Function '_GXDraw_ImageMagnified' argument 3 names different: declaration 'src' definition 'magsrc'. fontforge-20220308/gdraw/gimagexdraw.c:2167:63: note: Function '_GXDraw_ImageMagnified' argument 3 names different: declaration 'src' definition 'magsrc'. fontforge-20220308/gdraw/gimagexdraw.c:1039:21: style: Local variable 'col' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gimagexdraw.c:1000:11: note: Shadowed declaration fontforge-20220308/gdraw/gimagexdraw.c:1039:21: note: Shadow variable fontforge-20220308/gdraw/gimagexdraw.c:1946:19: style: Variable 'win_pos' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gimagexdraw.c:1947:21: style: Variable 'blend_src' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/glist.c:755:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] fontforge-20220308/gdraw/glist.c:755:7: style: Variable 'g' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gmatrixedit.c:227:29: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] fontforge-20220308/gdraw/gmatrixedit.c:226:31: note: outer condition: gme->buttonlist[i]!=NULL fontforge-20220308/gdraw/gmatrixedit.c:227:29: note: identical inner condition: gme->buttonlist[i]!=NULL fontforge-20220308/gdraw/gmatrixedit.c:562:5: style: Variable 'nw' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/gdraw/gmatrixedit.c:560:6: note: nw is assigned fontforge-20220308/gdraw/gmatrixedit.c:562:5: note: nw is overwritten fontforge-20220308/gdraw/gmatrixedit.c:1837:21: style: Variable 'clip.y' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/gdraw/gmatrixedit.c:1831:9: note: clip.y is assigned fontforge-20220308/gdraw/gmatrixedit.c:1837:21: note: clip.y is overwritten fontforge-20220308/gdraw/gmatrixedit.c:1837:65: style: Variable 'clip.height' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/gdraw/gmatrixedit.c:1832:14: note: clip.height is assigned fontforge-20220308/gdraw/gmatrixedit.c:1837:65: note: clip.height is overwritten fontforge-20220308/gdraw/gmatrixedit.c:1396:8: style: Local variable 'r' shadows outer argument [shadowArgument] fontforge-20220308/gdraw/gmatrixedit.c:1352:62: note: Shadowed declaration fontforge-20220308/gdraw/gmatrixedit.c:1396:8: note: Shadow variable fontforge-20220308/gdraw/gmatrixedit.c:1569:9: style: Local variable 'lastc' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gmatrixedit.c:1531:14: note: Shadowed declaration fontforge-20220308/gdraw/gmatrixedit.c:1569:9: note: Shadow variable fontforge-20220308/gdraw/gmatrixedit.c:1051:51: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/gdraw/gmatrixedit.c:1052:55: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/gdraw/gmatrixedit.c:722:17: style: Variable 'end' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gmenu.c:477:10: style: Local variable 'x' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gmenu.c:393:9: note: Shadowed declaration fontforge-20220308/gdraw/gmenu.c:477:10: note: Shadow variable fontforge-20220308/gdraw/gmenu.c:1288:16: style: Local variable '_GScrollBar_Width' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/ggadgetP.h:539:12: note: Shadowed declaration fontforge-20220308/gdraw/gmenu.c:1288:16: note: Shadow variable fontforge-20220308/gdraw/gmenu.c:1392:13: style: Variable 'sbwidth' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gmenu.c:1835:9: style: Variable 'keysym' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gradio.c:415:13: style: Local variable 'x' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gradio.c:359:9: note: Shadowed declaration fontforge-20220308/gdraw/gradio.c:415:13: note: Shadow variable fontforge-20220308/gdraw/gradio.c:455:13: style: Local variable 'x' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gradio.c:359:9: note: Shadowed declaration fontforge-20220308/gdraw/gradio.c:455:13: note: Shadow variable fontforge-20220308/gdraw/gresedit.c:887:34: warning: Redundant assignment of 'small_blue_box.main_background' to itself. [selfAssignment] fontforge-20220308/gdraw/gresedit.c:274:7: style: Local variable 'on' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gresedit.c:265:30: note: Shadowed declaration fontforge-20220308/gdraw/gresedit.c:274:7: note: Shadow variable fontforge-20220308/gdraw/gresedit.c:659:30: style: Local variable 'g' shadows outer argument [shadowArgument] fontforge-20220308/gdraw/gresedit.c:553:30: note: Shadowed declaration fontforge-20220308/gdraw/gresedit.c:659:30: note: Shadow variable fontforge-20220308/gdraw/gresedit.c:118:56: style: Parameter 'parent' can be declared as pointer to const [constParameter] fontforge-20220308/gdraw/gresource.c:216:6: error: Common realloc mistake: '_GResource_Res' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/gdraw/growcol.c:844:12: style: Condition 'width==0' is always true [knownConditionTrueFalse] fontforge-20220308/gdraw/growcol.c:837:15: note: Assignment 'width=0', assigned value is 0 fontforge-20220308/gdraw/growcol.c:844:12: note: Condition 'width==0' is always true fontforge-20220308/gdraw/gsavefiledlg.c:88:17: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gsavefiledlg.c:81:8: note: Shadowed declaration fontforge-20220308/gdraw/gsavefiledlg.c:88:17: note: Shadow variable fontforge-20220308/gdraw/gscroll1box.c:95:13: error: Uninitialized variable: need_sb [uninitvar] fontforge-20220308/gdraw/gscroll1box.c:90:16: note: Assuming condition is false fontforge-20220308/gdraw/gscroll1box.c:95:13: note: Uninitialized variable: need_sb fontforge-20220308/gdraw/gtabset.c:401:10: style: Local variable 'bp' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gtabset.c:376:9: note: Shadowed declaration fontforge-20220308/gdraw/gtabset.c:401:10: note: Shadow variable fontforge-20220308/gdraw/gtabset.c:897:14: style: Local variable 'gd' shadows outer argument [shadowArgument] fontforge-20220308/gdraw/gtabset.c:846:59: note: Shadowed declaration fontforge-20220308/gdraw/gtabset.c:897:14: note: Shadow variable fontforge-20220308/gdraw/gtabset.c:858:68: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fontforge-20220308/gdraw/gtabset.c:264:5: style: Variable 'x' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gtextfield.c:457:11: style: Variable 'xoff' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/gdraw/gtextfield.c:450:10: note: xoff is assigned fontforge-20220308/gdraw/gtextfield.c:457:11: note: xoff is overwritten fontforge-20220308/gdraw/gtextfield.c:453:35: style: Variable 'll' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/gdraw/gtextfield.c:451:34: note: ll is assigned fontforge-20220308/gdraw/gtextfield.c:453:35: note: ll is overwritten fontforge-20220308/gdraw/gtextfield.c:641:8: style: Redundant initialization for 'ch'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/gdraw/gtextfield.c:638:18: note: ch is initialized fontforge-20220308/gdraw/gtextfield.c:641:8: note: ch is overwritten fontforge-20220308/gdraw/gtextfield.c:1436:10: style: Variable 'llen' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/gdraw/gtextfield.c:1427:10: note: llen is assigned fontforge-20220308/gdraw/gtextfield.c:1436:10: note: llen is overwritten fontforge-20220308/gdraw/gtextfield.c:1462:8: style: Redundant initialization for 'll'. The initialized value is overwritten before it is read. [redundantInitialization] fontforge-20220308/gdraw/gtextfield.c:1460:12: note: ll is initialized fontforge-20220308/gdraw/gtextfield.c:1462:8: note: ll is overwritten fontforge-20220308/gdraw/gtextfield.c:1556:8: style: Local variable 'fg' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gtextfield.c:1471:11: note: Shadowed declaration fontforge-20220308/gdraw/gtextfield.c:1556:8: note: Shadow variable fontforge-20220308/gdraw/gtextinfo.c:969:12: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/gdraw/gtextinfo.c:1021:12: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/gdraw/gtextinfo.c:1110:12: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/gdraw/gtextinfo.c:353:35: style: Parameter 'image' can be declared as pointer to const [constParameter] fontforge-20220308/gdraw/gxcdraw.c:953:51: style:inconclusive: Function '_GXPDraw_configfont' argument 1 names different: declaration 'gw' definition 'w'. [funcArgNamesDifferent] fontforge-20220308/gdraw/gxcdrawP.h:60:58: note: Function '_GXPDraw_configfont' argument 1 names different: declaration 'gw' definition 'w'. fontforge-20220308/gdraw/gxcdraw.c:953:51: note: Function '_GXPDraw_configfont' argument 1 names different: declaration 'gw' definition 'w'. fontforge-20220308/gdraw/gxcdraw.c:1121:65: style:inconclusive: Function '_GXPDraw_LayoutDraw' argument 4 names different: declaration 'fg' definition 'col'. [funcArgNamesDifferent] fontforge-20220308/gdraw/gxcdrawP.h:66:72: note: Function '_GXPDraw_LayoutDraw' argument 4 names different: declaration 'fg' definition 'col'. fontforge-20220308/gdraw/gxcdraw.c:1121:65: note: Function '_GXPDraw_LayoutDraw' argument 4 names different: declaration 'fg' definition 'col'. fontforge-20220308/gdraw/gxdraw.c:1232:17: style: Expression is always true because 'else if' condition is opposite to previous condition at line 1214. [multiCondition] fontforge-20220308/gdraw/gxdraw.c:1214:10: note: first condition fontforge-20220308/gdraw/gxdraw.c:1232:17: note: else if condition is opposite to first condition fontforge-20220308/gdraw/gxdraw.c:3308:7: style: Condition 'dontopentemp' is always false [knownConditionTrueFalse] fontforge-20220308/gdraw/gxdraw.c:3301:21: note: Assignment 'dontopentemp=0', assigned value is 0 fontforge-20220308/gdraw/gxdraw.c:3308:7: note: Condition 'dontopentemp' is always false fontforge-20220308/gdraw/gxdraw.c:1082:1: error: Memory leak: gw [memleak] fontforge-20220308/gdraw/gxdraw.c:1024:7: warning: Either the condition 'gw->ggc==NULL' is redundant or there is possible null pointer dereference: gw->ggc. [nullPointerRedundantCheck] fontforge-20220308/gdraw/gxdraw.c:1025:17: note: Assuming that condition 'gw->ggc==NULL' is not redundant fontforge-20220308/gdraw/gxdraw.c:1024:7: note: Null pointer dereference fontforge-20220308/gdraw/gxdraw.c:2708:26: style: Variable 'gevent.u.chr.keysym' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/gdraw/gxdraw.c:2668:23: note: gevent.u.chr.keysym is assigned fontforge-20220308/gdraw/gxdraw.c:2708:26: note: gevent.u.chr.keysym is overwritten fontforge-20220308/gdraw/gxdraw.c:2708:26: style: Variable 'gevent.u.chr.keysym' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/gdraw/gxdraw.c:2699:23: note: gevent.u.chr.keysym is assigned fontforge-20220308/gdraw/gxdraw.c:2708:26: note: gevent.u.chr.keysym is overwritten fontforge-20220308/gdraw/gxdraw.c:1513:14: style: The comparison 'mask != 0' is always false. [knownConditionTrueFalse] fontforge-20220308/gdraw/gxdraw.c:1500:15: note: 'mask' is assigned value '0' here. fontforge-20220308/gdraw/gxdraw.c:1513:14: note: The comparison 'mask != 0' is always false. fontforge-20220308/gdraw/gxdraw.c:2654:13: style: Local variable 'pt' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gxdraw.c:2603:24: note: Shadowed declaration fontforge-20220308/gdraw/gxdraw.c:2654:13: note: Shadow variable fontforge-20220308/gdraw/gxdraw.c:3638:6: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/gdraw/gxdraw.c:3580:11: note: Shadowed declaration fontforge-20220308/gdraw/gxdraw.c:3638:6: note: Shadow variable fontforge-20220308/gdraw/gxdraw.c:262:16: style: Variable 'cube' can be declared as const array [constVariable] fontforge-20220308/gdraw/gxdraw.c:1638:46: style: Parameter 'rct' can be declared as pointer to const [constParameter] fontforge-20220308/gdraw/gxdraw.c:1673:45: style: Parameter 'old' can be declared as pointer to const [constParameter] fontforge-20220308/gdraw/gxdraw.c:2376:50: style: Parameter 'timer' can be declared as pointer to const [constParameter] fontforge-20220308/gdraw/gxdraw.c:2977:17: style: Variable 'types' can be declared as const array [constVariable] fontforge-20220308/gdraw/gxdraw.c:2493:12: style: Unused variable: ret [unusedVariable] fontforge-20220308/gdraw/gxdraw.c:2494:9: style: Variable 'idx' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gxdraw.c:2711:10: style: Variable 'len' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gxdraw.c:2756:21: style: Variable 'redirect' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gxdraw.c:2919:16: style: Variable 'redirect' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gdraw/gxdraw.c:2603:24: style: Unused variable: pt [unusedVariable] fontforge-20220308/gdraw/gxdraw.c:2604:12: style: Unused variable: status [unusedVariable] fontforge-20220308/gdraw/gxdraw.c:3418:12: style: Unused variable: ret [unusedVariable] fontforge-20220308/gdraw/gxdraw.c:3419:9: style: Variable 'idx' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gutils/fsys.c:171:17: portability: Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'. [prohibitedgetpwentCalled] fontforge-20220308/gutils/fsys.c:891:13: portability: Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'. [prohibitedgetpwentCalled] fontforge-20220308/gutils/fsys.c:676:10: style: Variable 'base' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/gutils/fsys.c:673:2: note: base is assigned fontforge-20220308/gutils/fsys.c:676:10: note: base is overwritten fontforge-20220308/gutils/fsys.c:507:23: style: Local variable 'program_dir' shadows outer variable [shadowVariable] fontforge-20220308/gutils/fsys.c:50:14: note: Shadowed declaration fontforge-20220308/gutils/fsys.c:507:23: note: Shadow variable fontforge-20220308/gutils/fsys.c:119:9: style: Variable 'e' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gutils/fsys.c:233:6: style: Variable 'pt' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gutils/fsys.c:980:13: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] fontforge-20220308/gutils/gimagereadbmp.c:181:6: style: Local variable 'ii' shadows outer variable [shadowVariable] fontforge-20220308/gutils/gimagereadbmp.c:167:11: note: Shadowed declaration fontforge-20220308/gutils/gimagereadbmp.c:181:6: note: Shadow variable fontforge-20220308/gutils/gimagereadbmp.c:233:6: style: Local variable 'ii' shadows outer variable [shadowVariable] fontforge-20220308/gutils/gimagereadbmp.c:167:11: note: Shadowed declaration fontforge-20220308/gutils/gimagereadbmp.c:233:6: note: Shadow variable fontforge-20220308/gutils/gimagereadjpeg.c:64:1: error: There is an unknown macro here somewhere. Configuration is required. If METHODDEF is a macro then please configure it. [unknownMacro] fontforge-20220308/gutils/gimagereadgif.c:94:30: style: Expression is always true because 'else if' condition is opposite to previous condition at line 92. [multiCondition] fontforge-20220308/gutils/gimagereadgif.c:92:25: note: first condition fontforge-20220308/gutils/gimagereadgif.c:94:30: note: else if condition is opposite to first condition fontforge-20220308/gutils/gimagereadrgb.c:238:21: style: Local variable 'ipt' shadows outer variable [shadowVariable] fontforge-20220308/gutils/gimagereadrgb.c:192:20: note: Shadowed declaration fontforge-20220308/gutils/gimagereadrgb.c:238:21: note: Shadow variable fontforge-20220308/gutils/gimagereadxpm.c:183:6: warning: %lx in format string (no. 1) requires 'unsigned long *' but the argument type is 'signed long *'. [invalidScanfArgType_int] fontforge-20220308/gutils/gimagereadxpm.c:186:6: warning: %lx in format string (no. 1) requires 'unsigned long *' but the argument type is 'signed long *'. [invalidScanfArgType_int] fontforge-20220308/gutils/gimagereadxpm.c:189:6: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/gutils/gimagereadxpm.c:189:6: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/gutils/gimagereadxpm.c:189:6: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] fontforge-20220308/gutils/gimagewritebmp.c:91:6: style: Local variable 'i' shadows outer variable [shadowVariable] fontforge-20220308/gutils/gimagewritebmp.c:50:19: note: Shadowed declaration fontforge-20220308/gutils/gimagewritebmp.c:91:6: note: Shadow variable fontforge-20220308/gutils/gimagewritegimage.c:69:2: warning: %ld in format string (no. 5) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] fontforge-20220308/gutils/gimagewritejpeg.c:56:1: error: There is an unknown macro here somewhere. Configuration is required. If METHODDEF is a macro then please configure it. [unknownMacro] fontforge-20220308/po/toengb.c:148:10: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] fontforge-20220308/tests/randomtest.c:354:5: warning: Return value of function freopen() is not used. [ignoredReturnValue] fontforge-20220308/tests/randomtest.c:356:5: warning: Return value of function freopen() is not used. [ignoredReturnValue] fontforge-20220308/tests/randomtest.c:187:17: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] fontforge-20220308/fontforgeexe/charinfo.c:3500:18: warning: Either the condition 'uni==0x131' is redundant or islower() argument nr 1 can have invalid value. The value is 305 but the valid values are '0:255'. [invalidFunctionArg] fontforge-20220308/fontforgeexe/charinfo.c:3505:9: note: Assuming that condition 'uni==0x131' is not redundant fontforge-20220308/fontforgeexe/charinfo.c:3500:18: note: Invalid argument fontforge-20220308/fontforgeexe/charinfo.c:393:10: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] fontforge-20220308/fontforgeexe/charinfo.c:392:20: note: outer condition: old==NULL fontforge-20220308/fontforgeexe/charinfo.c:393:10: note: identical inner condition: old==NULL fontforge-20220308/fontforgeexe/charinfo.c:2051:10: style: Condition 'val==-1' is always false [knownConditionTrueFalse] fontforge-20220308/fontforgeexe/charinfo.c:2045:10: note: Assuming that condition 'val<0' is not redundant fontforge-20220308/fontforgeexe/charinfo.c:2051:10: note: Condition 'val==-1' is always false fontforge-20220308/fontforgeexe/charinfo.c:1819:6: error: Common realloc mistake: 'components' nulled but not freed upon failure [memleakOnRealloc] fontforge-20220308/fontforgeexe/charinfo.c:3552:11: style: Variable 'basesc' is reassigned a value before the old one has been used. [redundantAssignment] fontforge-20220308/fontforgeexe/charinfo.c:3548:9: note: basesc is assigned fontforge-20220308/fontforgeexe/charinfo.c:3552:11: note: basesc is overwritten fontforge-20220308/fontforgeexe/charinfo.c:4523:19: warning: Redundant assignment of 'cgcd[3].gd.pos.x' to itself. [selfAssignment] fontforge-20220308/fontforgeexe/charinfo.c:1577:29: style: Local variable 'scl' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charinfo.c:1558:28: note: Shadowed declaration fontforge-20220308/fontforgeexe/charinfo.c:1577:29: note: Shadow variable fontforge-20220308/fontforgeexe/charinfo.c:1768:11: style: Local variable 'len' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charinfo.c:1718:9: note: Shadowed declaration fontforge-20220308/fontforgeexe/charinfo.c:1768:11: note: Shadow variable fontforge-20220308/fontforgeexe/charinfo.c:2283:23: style: Local variable 'mi' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charinfo.c:2439:19: note: Shadowed declaration fontforge-20220308/fontforgeexe/charinfo.c:2283:23: note: Shadow variable fontforge-20220308/fontforgeexe/charinfo.c:2685:16: style: Local variable 'mi' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charinfo.c:2439:19: note: Shadowed declaration fontforge-20220308/fontforgeexe/charinfo.c:2685:16: note: Shadow variable fontforge-20220308/fontforgeexe/charinfo.c:3342:15: style: Local variable 'other' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charinfo.c:3239:17: note: Shadowed declaration fontforge-20220308/fontforgeexe/charinfo.c:3342:15: note: Shadow variable fontforge-20220308/fontforgeexe/charinfo.c:4034:13: style: Local variable 'temp' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charinfo.c:3912:16: note: Shadowed declaration fontforge-20220308/fontforgeexe/charinfo.c:4034:13: note: Shadow variable fontforge-20220308/fontforgeexe/charinfo.c:4189:7: style: Local variable 'buffer' shadows outer variable [shadowVariable] fontforge-20220308/fontforgeexe/charinfo.c:3913:10: note: Shadowed declaration fontforge-20220308/fontforgeexe/charinfo.c:4189:7: note: Shadow variable fontforge-20220308/fontforgeexe/charinfo.c:2492:21: style: Variable 'form_tags' can be declared as const array [constVariable] DONE