2025-08-31 10:53 ftp://ftp.de.debian.org/debian/pool/main/h/hime/hime_0.9.11+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --library=gtk --library=qt --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 202 848 elapsed-time: 1.0 2.6 head-timing-info: old-timing-info: head results: hime-0.9.11/data/extr1.c:38:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] hime-0.9.11/data/t2s-file.c:44:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T2S [valueFlowBailoutIncompleteVar] hime-0.9.11/data/t2s-file.c:84:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable a [valueFlowBailoutIncompleteVar] hime-0.9.11/data/extr1.c:31:19: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] hime-0.9.11/data/extr1.c:26:22: note: Assuming allocation function fails hime-0.9.11/data/extr1.c:26:22: note: Assignment 'fp=fopen("tsin.src","r")', assigned value is 0 hime-0.9.11/data/extr1.c:31:19: note: Null pointer dereference hime-0.9.11/data/t2s-file.c:82:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] hime-0.9.11/data/t2s-file.c:50:36: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fw [nullPointerOutOfResources] hime-0.9.11/data/t2s-file.c:45:22: note: Assuming allocation function fails hime-0.9.11/data/t2s-file.c:45:22: note: Assignment 'fw=fopen(name,"w")', assigned value is 0 hime-0.9.11/data/t2s-file.c:50:36: note: Null pointer dereference hime-0.9.11/data/t2s-file.c:51:13: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fw [nullPointerOutOfResources] hime-0.9.11/data/t2s-file.c:45:22: note: Assuming allocation function fails hime-0.9.11/data/t2s-file.c:45:22: note: Assignment 'fw=fopen(name,"w")', assigned value is 0 hime-0.9.11/data/t2s-file.c:51:13: note: Null pointer dereference hime-0.9.11/data/t2s-file.c:70:19: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] hime-0.9.11/data/t2s-file.c:65:22: note: Assuming allocation function fails hime-0.9.11/data/t2s-file.c:65:22: note: Assignment 'fp=fopen(fname,"r")', assigned value is 0 hime-0.9.11/data/t2s-file.c:70:19: note: Null pointer dereference hime-0.9.11/src/hime.h:32:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/hime.h:32:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/IMdkit/lib/IMConn.c:66:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIMArg [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/IMConn.c:88:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IMModifiers [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/IMConn.c:108:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIMProtocolRec [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/IMConn.c:82:38: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/IMConn.c:103:21: style: Parameter 'modifiers' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nAttr.c:109:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIMAttr [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nAttr.c:89:41: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nClbk.c:57:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nClbk.c:99:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nClbk.c:161:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nClbk.c:214:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nClbk.c:258:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nClbk.c:299:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nClbk.c:365:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nClbk.c:437:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nClbk.c:481:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:51:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD8 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:230:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD16 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:267:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD16 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:285:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD16 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:304:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD16 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:354:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD16 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:425:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD16 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:500:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XimType_NEST [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:535:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable attribute_id [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:594:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD16 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:656:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XICAttribute [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:903:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XICAttribute [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:102:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIMStyles [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:123:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable I18N_ON_KEYS [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:156:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIMEncodings [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:181:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable I18N_OPEN [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:469:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transportname [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:516:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:604:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:668:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Xi18nCore [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:703:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SelectionNotify [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:802:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable I18N_SET [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:813:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable I18N_GET [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:888:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xEvent [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:944:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XimSYNCHRONUS [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:1079:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable I18N_FILTERMASK [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:1134:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:144:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:183:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_DISCONNECT_REPLY [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:227:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable I18N_ON_KEYS [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:343:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:390:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:481:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIMStr [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:605:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_SYNC_REPLY [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:622:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XNQueryInputStyle [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:691:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable attribute_id [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:777:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD16 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1021:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1086:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1192:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CARD16 [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1246:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyPress [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1368:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1434:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1478:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIMStr [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1663:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIMPending [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1735:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IMProtocol [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:465:13: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1192:9: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1873:30: style: Local variable 'dr' shadows outer variable [shadowVariable] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1853:26: note: Shadowed declaration hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1873:30: note: Shadow variable hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1905:30: style: Local variable 'dr' shadows outer variable [shadowVariable] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1888:26: note: Shadowed declaration hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1905:30: note: Shadow variable hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1939:30: style: Local variable 'dr' shadows outer variable [shadowVariable] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1922:26: note: Shadowed declaration hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1939:30: note: Shadow variable hime-0.9.11/src/IMdkit/lib/FrameMgr.c:964:23: style: Variable 'd' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1114:23: style: Variable 'd' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1695:23: style: Variable 'd' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:1779:23: style: Variable 'd' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:2148:23: style: Variable 'd' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/FrameMgr.c:853:19: style: Variable 'next_type' is assigned a value that is never used. [unreadVariable] hime-0.9.11/src/IMdkit/lib/i18nMethod.c:151:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Xi18nClient [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:146:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:215:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable keysym [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:269:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_SET_EVENT_MASK [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:67:13: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:41: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:18: note: Assignment 'client=(Xi18nClient*)malloc(sizeof(Xi18nClient))', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nUtil.c:67:13: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nUtil.c:68:5: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:41: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:18: note: Assignment 'client=(Xi18nClient*)malloc(sizeof(Xi18nClient))', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nUtil.c:68:5: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nUtil.c:69:5: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:41: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:18: note: Assignment 'client=(Xi18nClient*)malloc(sizeof(Xi18nClient))', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nUtil.c:69:5: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nUtil.c:70:5: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:41: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:18: note: Assignment 'client=(Xi18nClient*)malloc(sizeof(Xi18nClient))', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nUtil.c:70:5: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nUtil.c:71:5: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:41: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:18: note: Assignment 'client=(Xi18nClient*)malloc(sizeof(Xi18nClient))', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nUtil.c:71:5: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nUtil.c:73:5: warning: If memory allocation fails, then there is a possible null pointer dereference: client [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:41: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nUtil.c:63:18: note: Assignment 'client=(Xi18nClient*)malloc(sizeof(Xi18nClient))', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nUtil.c:73:5: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nUtil.c:160:14: warning: If memory allocation fails, then there is a possible null pointer dereference: reply [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:158:38: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nUtil.c:158:13: note: Assignment 'reply=(unsigned char*)malloc(reply_length)', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nUtil.c:160:14: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nUtil.c:166:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: reply [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nUtil.c:158:38: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nUtil.c:158:13: note: Assignment 'reply=(unsigned char*)malloc(reply_length)', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nUtil.c:166:12: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nUtil.c:44:18: style: Variable 'client' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/i18nX.c:101:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_CONNECT [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nX.c:200:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ClientMessage [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nX.c:274:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ClientMessage [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nX.c:351:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ClientMessage [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nX.c:399:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIM_ERROR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/IMdkit/lib/i18nIc.c:917:13: warning: If memory allocation fails, then there is a possible null pointer dereference: attrID_list [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nIc.c:916:37: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nIc.c:916:19: note: Assignment 'attrID_list=(CARD16*)malloc(sizeof(CARD16)*64)', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nIc.c:917:13: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nIc.c:43:40: style: Parameter 'ic_attr' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nIc.c:90:40: style: Parameter 'ic_attr' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nIc.c:123:41: style: Parameter 'ic_attr' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nIc.c:152:40: style: Parameter 'ic_attr' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nIc.c:85:16: portability: '*value_buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] hime-0.9.11/src/IMdkit/lib/i18nIc.c:118:16: portability: '*value_buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] hime-0.9.11/src/IMdkit/lib/i18nIc.c:147:16: portability: '*value_buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] hime-0.9.11/src/IMdkit/lib/i18nIc.c:178:16: portability: '*value_buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] hime-0.9.11/src/gdkpixbuf-drawable.c:25:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/gdkpixbuf-drawable.c:25:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/IMdkit/lib/i18nX.c:156:20: style: The statement 'if (length!=nitems) length=nitems' is logically equivalent to 'length=nitems'. [duplicateConditionalAssign] hime-0.9.11/src/IMdkit/lib/i18nX.c:157:20: note: Assignment 'length=nitems' hime-0.9.11/src/IMdkit/lib/i18nX.c:156:20: note: Condition 'length!=nitems' is redundant hime-0.9.11/src/IMdkit/lib/i18nX.c:54:5: warning: If memory allocation fails, then there is a possible null pointer dereference: x_client [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nX.c:53:35: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nX.c:53:16: note: Assignment 'x_client=(struct XClient*)malloc(sizeof(struct XClient))', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nX.c:54:5: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nX.c:55:5: warning: If memory allocation fails, then there is a possible null pointer dereference: x_client [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nX.c:53:35: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nX.c:53:16: note: Assignment 'x_client=(struct XClient*)malloc(sizeof(struct XClient))', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nX.c:55:5: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nX.c:97:20: style: Local variable '_Xi18nNeedSwap' shadows outer function [shadowFunction] hime-0.9.11/src/IMdkit/lib/XimFunc.h:56:5: note: Shadowed declaration hime-0.9.11/src/IMdkit/lib/i18nX.c:97:20: note: Shadow variable hime-0.9.11/src/IMdkit/lib/i18nX.c:176:15: style: Variable 'spec' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/i18nX.c:270:15: style: Variable 'spec' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/i18nX.c:346:36: style: Parameter 'display' can be declared as pointer to const. However it seems that 'CheckCMEvent' is a callback function, if 'display' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/IMdkit/lib/i18nX.c:379:19: note: You might need to cast the function pointer here hime-0.9.11/src/IMdkit/lib/i18nX.c:346:36: note: Parameter 'display' can be declared as pointer to const hime-0.9.11/src/IMdkit/lib/i18nX.c:346:53: style: Parameter 'event' can be declared as pointer to const. However it seems that 'CheckCMEvent' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/IMdkit/lib/i18nX.c:379:19: note: You might need to cast the function pointer here hime-0.9.11/src/IMdkit/lib/i18nX.c:346:53: note: Parameter 'event' can be declared as pointer to const hime-0.9.11/src/IMdkit/lib/i18nX.c:349:15: style: Variable 'spec' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/i18nX.c:369:14: style: Variable 'x_client' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/i18nX.c:374:22: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/i18nX.c:453:15: style: Variable 'spec' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/i18nX.c:473:15: style: Variable 'spec' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/gtk-im/gtkimcontexthime.h:27:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/gtk-im/gtkimcontexthime.h:27:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/gtk3-im/gtkimcontexthime.h:27:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/gtk3-im/gtkimcontexthime.h:27:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:778:13: warning: If memory allocation fails, then there is a possible null pointer dereference: im_attrID_list [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:777:40: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:777:22: note: Assignment 'im_attrID_list=(CARD16*)malloc(sizeof(CARD16)*20)', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:778:13: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:780:12: warning: If memory allocation fails, then there is a possible null pointer dereference: name_list [nullPointerOutOfMemory] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:779:32: note: Assuming allocation function fails hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:779:17: note: Assignment 'name_list=(char**)malloc(sizeof(char*)*20)', assigned value is 0 hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:780:12: note: Null pointer dereference hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1725:47: warning: Either the condition 'hdr==(XimProtoHdr*)NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1731:13: note: Assuming that condition 'hdr==(XimProtoHdr*)NULL' is not redundant hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1725:47: note: Null pointer addition hime-0.9.11/src/gtk_bug_fix.c:11:65: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/gtk_bug_fix.c:12:63: style: Parameter 'window' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:367:43: style: Parameter 'lib_extension' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:617:39: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:672:51: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1421:59: style: Parameter 'enc_nego' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1424:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1652:43: style: Parameter 'call_data' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/IMdkit/lib/i18nPtHdr.c:1653:46: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/hime-crypt.c:32:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __HIME_PASSWD_N_ [valueFlowBailoutIncompleteVar] hime-0.9.11/src/im-client/hime-im-client.c:75:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AnyPropertyType [valueFlowBailoutIncompleteVar] hime-0.9.11/src/im-client/hime-im-client.c:116:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] hime-0.9.11/src/im-client/hime-im-client.c:137:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] hime-0.9.11/src/im-client/hime-im-client.c:155:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] hime-0.9.11/src/im-client/hime-im-client.c:386:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] hime-0.9.11/src/im-client/hime-im-client.c:395:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] hime-0.9.11/src/im-client/hime-im-client.c:498:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] hime-0.9.11/src/im-client/hime-im-client.c:884:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] hime-0.9.11/src/modules/chewing.c:644:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/modules/chewing.c:644:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/modules/anthy.c:1285:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/modules/anthy.c:1285:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/modules/chewing-conf.c:53:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/modules/chewing-conf.c:70:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SELKEY [valueFlowBailoutIncompleteVar] hime-0.9.11/src/modules/chewing-conf.c:90:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SELKEY [valueFlowBailoutIncompleteVar] hime-0.9.11/src/modules/chewing-conf.c:121:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SELKEY [valueFlowBailoutIncompleteVar] hime-0.9.11/src/modules/chewing-conf.c:160:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IWUSR [valueFlowBailoutIncompleteVar] hime-0.9.11/src/modules/chewing-conf.c:201:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SELKEY [valueFlowBailoutIncompleteVar] hime-0.9.11/src/modules/hime-setup-chewing.c:163:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/modules/hime-setup-chewing.c:163:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] hime-0.9.11/src/modules/intcode.c:99:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_BackSpace [valueFlowBailoutIncompleteVar] hime-0.9.11/src/modules/chewing-conf.c:171:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] hime-0.9.11/src/modules/chewing-conf.c:169:9: error: Resource leak: nFd [resourceLeak] hime-0.9.11/src/modules/chewing-conf.c:174:9: error: Resource leak: nFd [resourceLeak] hime-0.9.11/src/modules/chewing-conf.c:49:13: warning: If memory allocation fails, then there is a possible null pointer dereference: pszChewingConfig [nullPointerOutOfMemory] hime-0.9.11/src/modules/chewing-conf.c:48:31: note: Assuming allocation function fails hime-0.9.11/src/modules/chewing-conf.c:48:31: note: Assignment 'pszChewingConfig=malloc(strlen(pszHome)+strlen("/.config/hime/config/chewing_conf.dat")+1)', assigned value is 0 hime-0.9.11/src/modules/chewing-conf.c:49:13: note: Null pointer dereference hime-0.9.11/src/modules/chewing-conf.c:52:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pszChewingConfig [nullPointerOutOfMemory] hime-0.9.11/src/modules/chewing-conf.c:48:31: note: Assuming allocation function fails hime-0.9.11/src/modules/chewing-conf.c:48:31: note: Assignment 'pszChewingConfig=malloc(strlen(pszHome)+strlen("/.config/hime/config/chewing_conf.dat")+1)', assigned value is 0 hime-0.9.11/src/modules/chewing-conf.c:52:19: note: Null pointer dereference hime-0.9.11/src/modules/chewing-conf.c:155:13: warning: If memory allocation fails, then there is a possible null pointer dereference: pszHimeKBConfig [nullPointerOutOfMemory] hime-0.9.11/src/modules/chewing-conf.c:154:30: note: Assuming allocation function fails hime-0.9.11/src/modules/chewing-conf.c:154:30: note: Assignment 'pszHimeKBConfig=malloc(strlen(pszHome)+strlen("/.config/hime/config/phonetic-keyboard2")+1)', assigned value is 0 hime-0.9.11/src/modules/chewing-conf.c:155:13: note: Null pointer dereference hime-0.9.11/src/modules/chewing-conf.c:158:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pszHimeKBConfig [nullPointerOutOfMemory] hime-0.9.11/src/modules/chewing-conf.c:154:30: note: Assuming allocation function fails hime-0.9.11/src/modules/chewing-conf.c:154:30: note: Assignment 'pszHimeKBConfig=malloc(strlen(pszHome)+strlen("/.config/hime/config/phonetic-keyboard2")+1)', assigned value is 0 hime-0.9.11/src/modules/chewing-conf.c:158:17: note: Null pointer dereference hime-0.9.11/src/modules/chewing-conf.c:88:42: style:inconclusive: Function 'chewing_config_set' argument 1 names different: declaration 'pChewingContext' definition 'pChewingCtx'. [funcArgNamesDifferent] hime-0.9.11/src/modules/chewing.h:81:42: note: Function 'chewing_config_set' argument 1 names different: declaration 'pChewingContext' definition 'pChewingCtx'. hime-0.9.11/src/modules/chewing-conf.c:88:42: note: Function 'chewing_config_set' argument 1 names different: declaration 'pChewingContext' definition 'pChewingCtx'. hime-0.9.11/src/modules/chewing-conf.c:42:11: style: Variable 'pszHome' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/modules/chewing-conf.c:70:13: style: Variable 'nDefaultSelKey' can be declared as const array [constVariable] hime-0.9.11/src/modules/win-int.c:138:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] hime-0.9.11/src/modules/win-int.c:66:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] hime-0.9.11/src/modules/win-int.c:148:27: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] hime-0.9.11/src/modules/win-int.c:159:27: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] hime-0.9.11/src/modules/win-int.c:82:33: style: Parameter 'intcode' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/modules/intcode.c:76:9: error: Memory leak: utf8 [memleak] hime-0.9.11/src/modules/intcode.c:150:17: style: Local variable 'i' shadows outer variable [shadowVariable] hime-0.9.11/src/modules/intcode.c:93:9: note: Shadowed declaration hime-0.9.11/src/modules/intcode.c:150:17: note: Shadow variable hime-0.9.11/src/modules/intcode.c:41:50: style: Parameter 'funcs' can be declared as pointer to const [constParameterPointer] hime-0.9.11/src/im-client/hime-im-client.c:489:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] hime-0.9.11/src/im-client/hime-im-client.c:124:9: warning:inconclusive: The buffer 'sock_path' may not be null-terminated after the call to strncpy(). [terminateStrncpy] hime-0.9.11/src/im-client/hime-im-client.c:373:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] hime-0.9.11/src/im-client/hime-im-client.c:151:42: warning: Possible null pointer dereference: hime_ch [nullPointer] hime-0.9.11/src/im-client/hime-im-client.c:472:57: note: Calling function 'hime_im_client_reopen', 1st argument 'NULL' value is 0 hime-0.9.11/src/im-client/hime-im-client.c:151:42: note: Null pointer dereference hime-0.9.11/src/im-client/hime-im-client.c:320:9: warning: Either the condition '!handle' is redundant or there is possible null pointer dereference: handle. [nullPointerRedundantCheck] hime-0.9.11/src/im-client/hime-im-client.c:337:9: note: Assuming that condition '!handle' is not redundant hime-0.9.11/src/im-client/hime-im-client.c:335:22: note: Calling function 'validate_handle', 1st argument 'handle' value is 0 hime-0.9.11/src/im-client/hime-im-client.c:320:9: note: Null pointer dereference hime-0.9.11/src/im-client/hime-im-client.c:507:51: style:inconclusive: Function 'hime_im_client_get_preedit' argument 3 names different: declaration 'att' definition 'attr'. [funcArgNamesDifferent] hime-0.9.11/src/im-client/hime-im-client.h:76:51: note: Function 'hime_im_client_get_preedit' argument 3 names different: declaration 'att' definition 'attr'. hime-0.9.11/src/im-client/hime-im-client.c:507:51: note: Function 'hime_im_client_get_preedit' argument 3 names different: declaration 'att' definition 'attr'. hime-0.9.11/src/im-client/hime-im-client.c:801:37: style:inconclusive: Function 'hime_im_client_set_flags' argument 3 names different: declaration 'ret_flags' definition 'ret_flag'. [funcArgNamesDifferent] hime-0.9.11/src/im-client/hime-im-client.h:108:37: note: Function 'hime_im_client_set_flags' argument 3 names different: declaration 'ret_flags' definition 'ret_flag'. hime-0.9.11/src/im-client/hime-im-client.c:801:37: note: Function 'hime_im_client_set_flags' argument 3 names different: declaration 'ret_flags' definition 'ret_flag'. hime-0.9.11/src/im-client/hime-im-client.c:827:39: style:inconclusive: Function 'hime_im_client_clear_flags' argument 3 names different: declaration 'ret_flags' definition 'ret_flag'. [funcArgNamesDifferent] hime-0.9.11/src/im-client/hime-im-client.h:111:39: note: Function 'hime_im_client_clear_flags' argument 3 names different: declaration 'ret_flags' definition 'ret_flag'. hime-0.9.11/src/im-client/hime-im-client.c:827:39: note: Function 'hime_im_client_clear_flags' argument 3 names different: declaration 'ret_flags' definition 'ret_flag'. hime-0.9.11/src/qt5-im/hime-qt.cpp:16:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CaseInsensitive [valueFlowBailoutIncompleteVar] hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:88:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_PREEDIT_ATTR_MAX_N [valueFlowBailoutIncompleteVar] hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:122:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ImCursorRectangle [valueFlowBailoutIncompleteVar] hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:200:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_PREEDIT_ATTR_MAX_N [valueFlowBailoutIncompleteVar] hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:277:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KeyRelease [valueFlowBailoutIncompleteVar] hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:299:9: style: The scope of the variable 'result' can be reduced. [variableScope] hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:113:64: style:inconclusive: Function 'update' argument 1 names different: declaration 'quries' definition 'queries'. [funcArgNamesDifferent] hime-0.9.11/src/qt5-im/hime-imcontext-qt.h:37:49: note: Function 'update' argument 1 names different: declaration 'quries' definition 'queries'. hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:113:64: note: Function 'update' argument 1 names different: declaration 'quries' definition 'queries'. hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:254:49: style:inconclusive: Function 'send_str' argument 1 names different: declaration 's' definition 'rstr'. [funcArgNamesDifferent] hime-0.9.11/src/qt5-im/hime-imcontext-qt.h:47:26: note: Function 'send_str' argument 1 names different: declaration 's' definition 'rstr'. hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:254:49: note: Function 'send_str' argument 1 names different: declaration 's' definition 'rstr'. hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:206:14: style: Variable 'input' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:292:14: style: Variable 'input' can be declared as pointer to const [constVariablePointer] hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:18:11: style: struct member 'XPoint::x' is never used. [unusedStructMember] hime-0.9.11/src/qt5-im/hime-imcontext-qt.cpp:18:14: style: struct member 'XPoint::y' is never used. [unusedStructMember] diff: 2.18.0 hime-0.9.11/src/IC.c:111:22: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/IC.c:111:42: style: Parameter 'attr_list' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/IC.c:135:31: style: Condition 'cs->im_state!=HIME_STATE_DISABLED' is always true [knownConditionTrueFalse] 2.18.0 hime-0.9.11/src/IC.c:151:37: style: Parameter 'call_data' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/IC.c:166:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XNInputStyle [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/IC.c:330:18: style: Variable 'cs' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/IC.c:333:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XNFilterEvents [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/IC.c:335:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (CARD32*)ic_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:334:46: note: Assuming allocation function fails hime-0.9.11/src/IC.c:334:30: note: Assignment 'ic_attr->value=(void*)malloc(sizeof(CARD32))', assigned value is 0 hime-0.9.11/src/IC.c:335:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:344:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (XRectangle*)pre_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:343:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:343:31: note: Assignment 'pre_attr->value=(void*)malloc(sizeof(XRectangle))', assigned value is 0 hime-0.9.11/src/IC.c:344:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:352:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (XRectangle*)pre_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:351:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:351:31: note: Assignment 'pre_attr->value=(void*)malloc(sizeof(XRectangle))', assigned value is 0 hime-0.9.11/src/IC.c:352:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:357:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (XPoint*)pre_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:356:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:356:31: note: Assignment 'pre_attr->value=(void*)malloc(sizeof(XPoint))', assigned value is 0 hime-0.9.11/src/IC.c:357:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:369:22: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:367:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:367:31: note: Assignment 'pre_attr->value=(void*)malloc(total_len)', assigned value is 0 hime-0.9.11/src/IC.c:368:15: note: p is assigned '(char*)pre_attr->value' here. hime-0.9.11/src/IC.c:369:22: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:376:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (long*)pre_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:375:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:375:31: note: Assignment 'pre_attr->value=(void*)malloc(sizeof(long))', assigned value is 0 hime-0.9.11/src/IC.c:376:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:381:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (long*)pre_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:380:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:380:31: note: Assignment 'pre_attr->value=(void*)malloc(sizeof(long))', assigned value is 0 hime-0.9.11/src/IC.c:381:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:389:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (long*)pre_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:385:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:385:31: note: Assignment 'pre_attr->value=(void*)malloc(sizeof(long))', assigned value is 0 hime-0.9.11/src/IC.c:389:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:398:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (XRectangle*)sts_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:397:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:397:31: note: Assignment 'sts_attr->value=(void*)malloc(sizeof(XRectangle))', assigned value is 0 hime-0.9.11/src/IC.c:398:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:403:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (XRectangle*)sts_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:402:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:402:31: note: Assignment 'sts_attr->value=(void*)malloc(sizeof(XRectangle))', assigned value is 0 hime-0.9.11/src/IC.c:403:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:413:22: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:411:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:411:31: note: Assignment 'sts_attr->value=(void*)malloc(total_len)', assigned value is 0 hime-0.9.11/src/IC.c:412:15: note: p is assigned '(char*)sts_attr->value' here. hime-0.9.11/src/IC.c:413:22: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:420:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (long*)sts_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:419:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:419:31: note: Assignment 'sts_attr->value=(void*)malloc(sizeof(long))', assigned value is 0 hime-0.9.11/src/IC.c:420:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:425:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (long*)sts_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:424:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:424:31: note: Assignment 'sts_attr->value=(void*)malloc(sizeof(long))', assigned value is 0 hime-0.9.11/src/IC.c:425:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:433:14: warning: If memory allocation fails, then there is a possible null pointer dereference: (long*)sts_attr->value [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:429:47: note: Assuming allocation function fails hime-0.9.11/src/IC.c:429:31: note: Assignment 'sts_attr->value=(void*)malloc(sizeof(long))', assigned value is 0 hime-0.9.11/src/IC.c:433:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:64:13: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:61:29: note: Assuming allocation function fails hime-0.9.11/src/IC.c:61:15: note: Assignment 'rec=(struct IC*)malloc(sizeof(struct IC))', assigned value is 0 hime-0.9.11/src/IC.c:64:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:65:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:61:29: note: Assuming allocation function fails hime-0.9.11/src/IC.c:61:15: note: Assignment 'rec=(struct IC*)malloc(sizeof(struct IC))', assigned value is 0 hime-0.9.11/src/IC.c:65:5: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:66:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:61:29: note: Assuming allocation function fails hime-0.9.11/src/IC.c:61:15: note: Assignment 'rec=(struct IC*)malloc(sizeof(struct IC))', assigned value is 0 hime-0.9.11/src/IC.c:66:5: note: Null pointer dereference 2.18.0 hime-0.9.11/src/IC.c:68:5: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] hime-0.9.11/src/IC.c:61:29: note: Assuming allocation function fails hime-0.9.11/src/IC.c:61:15: note: Assignment 'rec=(struct IC*)malloc(sizeof(struct IC))', assigned value is 0 hime-0.9.11/src/IC.c:68:5: note: Null pointer dereference 2.18.0 hime-0.9.11/src/about.c:122:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYS_ICON_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/about.c:32:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/about.c:57:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/about.c:70:23: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/about.c:86:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_VERSION [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/cache.c:39:54: style: Parameter 'out' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/eve.c:1131:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/eve.c:1167:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_space [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/eve.c:1299:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/eve.c:1372:18: warning: Either the condition 'cs' is redundant or there is possible null pointer dereference: cs. [nullPointerRedundantCheck] hime-0.9.11/src/eve.c:1376:9: note: Assuming that condition 'cs' is not redundant hime-0.9.11/src/eve.c:1372:18: note: Null pointer dereference 2.18.0 hime-0.9.11/src/eve.c:1377:16: style: Local variable 'win' shadows outer variable [shadowVariable] hime-0.9.11/src/eve.c:1372:12: note: Shadowed declaration hime-0.9.11/src/eve.c:1377:16: note: Shadow variable 2.18.0 hime-0.9.11/src/eve.c:1454:12: style: Condition 'cs==current_CS' is always true [knownConditionTrueFalse] hime-0.9.11/src/eve.c:1443:12: note: Assuming that condition 'cs!=current_CS' is not redundant hime-0.9.11/src/eve.c:1447:33: note: Assuming condition is false hime-0.9.11/src/eve.c:1454:12: note: Condition 'cs==current_CS' is always true 2.18.0 hime-0.9.11/src/eve.c:1476:28: style:inconclusive: Function 'hime_get_preedit' argument 5 names different: declaration 'sub_comp_len' definition 'comp_flag'. [funcArgNamesDifferent] hime-0.9.11/src/hime.h:211:95: note: Function 'hime_get_preedit' argument 5 names different: declaration 'sub_comp_len' definition 'comp_flag'. hime-0.9.11/src/eve.c:1476:28: note: Function 'hime_get_preedit' argument 5 names different: declaration 'sub_comp_len' definition 'comp_flag'. 2.18.0 hime-0.9.11/src/eve.c:183:54: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/eve.c:330:58: style: Parameter 'cs' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/eve.c:497:37: style: Parameter 'd' can be declared as pointer to const. However it seems that 'xerror_handler' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/eve.c:509:62: note: You might need to cast the function pointer here hime-0.9.11/src/eve.c:497:37: note: Parameter 'd' can be declared as pointer to const 2.18.0 hime-0.9.11/src/eve.c:497:53: style: Parameter 'eve' can be declared as pointer to const. However it seems that 'xerror_handler' is a callback function, if 'eve' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/eve.c:509:62: note: You might need to cast the function pointer here hime-0.9.11/src/eve.c:497:53: note: Parameter 'eve' can be declared as pointer to const 2.18.0 hime-0.9.11/src/eve.c:78:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/eve.c:803:16: style: Return value 'gwin_gtab' is always true [knownConditionTrueFalse] 2.18.0 hime-0.9.11/src/eve.c:833:18: style: Local variable 'show_win_kbm' shadows outer function [shadowFunction] hime-0.9.11/src/eve.c:42:6: note: Shadowed declaration hime-0.9.11/src/eve.c:833:18: note: Shadow variable 2.18.0 hime-0.9.11/src/eve.c:83:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/eve.c:94:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/eve.c:98:33: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/eve.c:99:5: error: Common realloc mistake: 'callback_str_buffer' nulled but not freed upon failure [memleakOnRealloc] head hime-0.9.11/src/gdkpixbuf-drawable.c:25:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head hime-0.9.11/src/gdkpixbuf-drawable.c:25:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 hime-0.9.11/src/gtab-buf.c:1056:100: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtab-buf.c:134:17: error: Common realloc mistake: 'out' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/gtab-buf.c:141:9: error: Common realloc mistake: 'out' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/gtab-buf.c:146:5: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] hime-0.9.11/src/gtab-buf.c:124:17: note: Assuming allocation function fails hime-0.9.11/src/gtab-buf.c:124:17: note: Assignment 'out=(char*)malloc(sizeof(char)*1)', assigned value is 0 hime-0.9.11/src/gtab-buf.c:128:23: note: Assuming condition is false hime-0.9.11/src/gtab-buf.c:146:5: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtab-buf.c:161:5: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] hime-0.9.11/src/gtab-buf.c:158:17: note: Assuming allocation function fails hime-0.9.11/src/gtab-buf.c:158:17: note: Assignment 'out=(char*)malloc(sizeof(char)*1)', assigned value is 0 hime-0.9.11/src/gtab-buf.c:161:5: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtab-buf.c:192:15: style: Variable 't' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab-buf.c:203:9: error: Common realloc mistake: 'out' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/gtab-buf.c:487:5: error: Common realloc mistake: 'gbuf' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/gtab-buf.c:504:9: warning: If memory allocation fails, then there is a possible null pointer dereference: items [nullPointerOutOfMemory] hime-0.9.11/src/gtab-buf.c:500:20: note: Assuming allocation function fails hime-0.9.11/src/gtab-buf.c:500:20: note: Assignment 'items=(struct GITEM*)malloc(sizeof(struct GITEM)*(selN))', assigned value is 0 hime-0.9.11/src/gtab-buf.c:504:9: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtab-buf.c:505:9: warning: If memory allocation fails, then there is a possible null pointer dereference: items [nullPointerOutOfMemory] hime-0.9.11/src/gtab-buf.c:500:20: note: Assuming allocation function fails hime-0.9.11/src/gtab-buf.c:500:20: note: Assignment 'items=(struct GITEM*)malloc(sizeof(struct GITEM)*(selN))', assigned value is 0 hime-0.9.11/src/gtab-buf.c:505:9: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtab-buf.c:506:9: warning: If memory allocation fails, then there is a possible null pointer dereference: items [nullPointerOutOfMemory] hime-0.9.11/src/gtab-buf.c:500:20: note: Assuming allocation function fails hime-0.9.11/src/gtab-buf.c:500:20: note: Assignment 'items=(struct GITEM*)malloc(sizeof(struct GITEM)*(selN))', assigned value is 0 hime-0.9.11/src/gtab-buf.c:506:9: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtab-buf.c:508:12: warning: If memory allocation fails, then there is a possible null pointer dereference: items [nullPointerOutOfMemory] hime-0.9.11/src/gtab-buf.c:500:20: note: Assuming allocation function fails hime-0.9.11/src/gtab-buf.c:500:20: note: Assignment 'items=(struct GITEM*)malloc(sizeof(struct GITEM)*(selN))', assigned value is 0 hime-0.9.11/src/gtab-buf.c:508:12: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtab-buf.c:511:18: warning: If memory allocation fails, then there is a possible null pointer dereference: items [nullPointerOutOfMemory] hime-0.9.11/src/gtab-buf.c:500:20: note: Assuming allocation function fails hime-0.9.11/src/gtab-buf.c:500:20: note: Assignment 'items=(struct GITEM*)malloc(sizeof(struct GITEM)*(selN))', assigned value is 0 hime-0.9.11/src/gtab-buf.c:511:18: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtab-buf.c:549:35: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/gtab-buf.c:555:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sel [nullPointerOutOfMemory] hime-0.9.11/src/gtab-buf.c:554:18: note: Assuming allocation function fails hime-0.9.11/src/gtab-buf.c:554:18: note: Assignment 'sel=(char**)malloc(sizeof(char*)*1)', assigned value is 0 hime-0.9.11/src/gtab-buf.c:555:5: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtab-buf.c:611:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtab-buf.c:64:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtab-buf.c:707:12: style: Variable 'pbuf' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab-buf.c:729:12: style: Variable 'pbuf' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab-buf.c:989:15: style: Variable 'br' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab-dbg.c:20:41: style: Parameter 'keymap' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/gtab-init.c:170:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_BIN_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtab-init.c:210:33: warning: Either the condition '(fp=fopen(ttt,"rb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/gtab-init.c:203:34: note: Assuming that condition '(fp=fopen(ttt,"rb"))==NULL' is not redundant hime-0.9.11/src/gtab-init.c:210:33: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtab-init.c:95:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab-list.c:125:17: style: Local variable 'i' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab-list.c:54:9: note: Shadowed declaration hime-0.9.11/src/gtab-list.c:125:17: note: Shadow variable 2.18.0 hime-0.9.11/src/gtab-list.c:67:11: style: Variable 'def_file' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab-list.c:78:9: error: Common realloc mistake: 'inmd' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/gtab-list.c:97:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] 2.18.0 hime-0.9.11/src/gtab-tsin-fname.c:48:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_BIN_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtab-use-count.c:24:19: style: struct member 'GTAB_USE_CNT::flag' is never used. [unusedStructMember] 2.18.0 hime-0.9.11/src/gtab-use-count.c:44:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/gtab-use-count.c:93:31: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/gtab-util.c:23:25: style: Parameter 'inmd' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/gtab-util.c:32:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtab.c:1036:17: style: Local variable 'i' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.c:905:9: note: Shadowed declaration hime-0.9.11/src/gtab.c:1036:17: note: Shadow variable 2.18.0 hime-0.9.11/src/gtab.c:1045:17: style: Local variable 'i' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.c:905:9: note: Shadowed declaration hime-0.9.11/src/gtab.c:1045:17: note: Shadow variable 2.18.0 hime-0.9.11/src/gtab.c:116:11: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab.c:116:33: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab.c:1344:15: style: Variable 'pendkey' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab.c:1439:25: style: Local variable 'i' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.c:905:9: note: Shadowed declaration hime-0.9.11/src/gtab.c:1439:25: note: Shadow variable 2.18.0 hime-0.9.11/src/gtab.c:1448:25: style: Local variable 'i' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.c:905:9: note: Shadowed declaration hime-0.9.11/src/gtab.c:1448:25: note: Shadow variable 2.18.0 hime-0.9.11/src/gtab.c:1500:11: style: Variable 'pendkey' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab.c:1630:21: style: Variable 'tbl_ch' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab.c:1685:17: error: Common realloc mistake: 'sel' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/gtab.c:1730:13: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] 2.18.0 hime-0.9.11/src/gtab.c:198:12: warning: Uninitialized variable: tbuf [uninitvar] hime-0.9.11/src/gtab.c:183:19: note: Assuming condition is false hime-0.9.11/src/gtab.c:198:12: note: Uninitialized variable: tbuf 2.18.0 hime-0.9.11/src/gtab.c:216:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtab.c:445:36: style: Local variable 'hime_show_win_kbm' shadows outer variable [shadowVariable] hime-0.9.11/src/hime-conf.h:145:30: note: Shadowed declaration hime-0.9.11/src/gtab.c:445:36: note: Shadow variable 2.18.0 hime-0.9.11/src/gtab.c:544:33: style: Parameter 'reg' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/gtab.c:680:22: style: Local variable 'uu' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.c:639:10: note: Shadowed declaration hime-0.9.11/src/gtab.c:680:22: note: Shadow variable 2.18.0 hime-0.9.11/src/gtab.c:807:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_KP_9 [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtab.c:907:11: style: Variable 'pselkey' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/gtab.c:911:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMask [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtab.c:91:37: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:232:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_HIME_client_handle_use_preedit [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:273:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:334:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:397:32: style: The statement 'if (context_xim->pe_cursor!=cursor_pos) context_xim->pe_cursor=cursor_pos' is logically equivalent to 'context_xim->pe_cursor=cursor_pos'. [duplicateConditionalAssign] hime-0.9.11/src/gtk-im/gtkimcontexthime.c:398:32: note: Assignment 'context_xim->pe_cursor=cursor_pos' hime-0.9.11/src/gtk-im/gtkimcontexthime.c:397:32: note: Condition 'context_xim->pe_cursor!=cursor_pos' is redundant 2.18.0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:416:17: warning: If memory allocation fails, then there is a possible null pointer dereference: result_str [nullPointerOutOfMemory] hime-0.9.11/src/gtk-im/gtkimcontexthime.c:415:38: note: Assuming allocation function fails hime-0.9.11/src/gtk-im/gtkimcontexthime.c:415:22: note: Assignment 'result_str=(char*)malloc(num_bytes+1)', assigned value is 0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:416:17: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:417:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result_str [nullPointerOutOfMemory] hime-0.9.11/src/gtk-im/gtkimcontexthime.c:415:38: note: Assuming allocation function fails hime-0.9.11/src/gtk-im/gtkimcontexthime.c:415:22: note: Assignment 'result_str=(char*)malloc(num_bytes+1)', assigned value is 0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:417:9: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:495:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_HIME_client_handle_use_preedit [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:522:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_PREEDIT_ATTR_FLAG_UNDERLINE [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk-im/gtkimcontexthime.c:93:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_IM_CONTEXT [valueFlowBailoutIncompleteVar] head hime-0.9.11/src/gtk-im/gtkimcontexthime.h:27:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head hime-0.9.11/src/gtk-im/gtkimcontexthime.h:27:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:232:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_HIME_client_handle_use_preedit [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:273:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:334:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:397:32: style: The statement 'if (context_xim->pe_cursor!=cursor_pos) context_xim->pe_cursor=cursor_pos' is logically equivalent to 'context_xim->pe_cursor=cursor_pos'. [duplicateConditionalAssign] hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:398:32: note: Assignment 'context_xim->pe_cursor=cursor_pos' hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:397:32: note: Condition 'context_xim->pe_cursor!=cursor_pos' is redundant 2.18.0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:416:17: warning: If memory allocation fails, then there is a possible null pointer dereference: result_str [nullPointerOutOfMemory] hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:415:38: note: Assuming allocation function fails hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:415:22: note: Assignment 'result_str=(char*)malloc(num_bytes+1)', assigned value is 0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:416:17: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:417:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result_str [nullPointerOutOfMemory] hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:415:38: note: Assuming allocation function fails hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:415:22: note: Assignment 'result_str=(char*)malloc(num_bytes+1)', assigned value is 0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:417:9: note: Null pointer dereference 2.18.0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:495:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_HIME_client_handle_use_preedit [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:522:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_PREEDIT_ATTR_FLAG_UNDERLINE [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/gtk3-im/gtkimcontexthime.c:93:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_IM_CONTEXT [valueFlowBailoutIncompleteVar] head hime-0.9.11/src/gtk3-im/gtkimcontexthime.h:27:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head hime-0.9.11/src/gtk3-im/gtkimcontexthime.h:27:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:115:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:115:26: style: Parameter 't' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:140:12: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:140:31: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:151:15: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:151:37: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:188:9: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:343:19: style: Local variable 'p' shadows outer variable [shadowVariable] hime-0.9.11/src/hime-cin2gtab.c:197:11: note: Shadowed declaration hime-0.9.11/src/hime-cin2gtab.c:343:19: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:397:10: style: Local variable 'inmd' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.h:151:14: note: Shadowed declaration hime-0.9.11/src/hime-cin2gtab.c:397:10: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:397:17: style: Local variable 'cur_inmd' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.h:155:14: note: Shadowed declaration hime-0.9.11/src/hime-cin2gtab.c:397:17: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:496:13: error: Common realloc mistake: 'phridx' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:498:13: error: Common realloc mistake: 'phrbuf' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-cin2gtab.c:89:9: style: Condition '!*s' is always false [knownConditionTrueFalse] 2.18.0 hime-0.9.11/src/hime-common.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_BIN_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-conf.c:104:33: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-conf.c:118:56: style: Parameter 'default_str' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-conf.c:180:14: warning: Either the condition '(fp=fopen(fname,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-conf.c:176:36: note: Assuming that condition '(fp=fopen(fname,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-conf.c:180:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-conf.c:181:13: warning: Either the condition '(fp=fopen(fname,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-conf.c:176:36: note: Assuming that condition '(fp=fopen(fname,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-conf.c:181:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-conf.c:191:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-conf.c:199:21: style: Variable 'find' can be declared as const array [constVariable] 2.18.0 hime-0.9.11/src/hime-conf.c:40:11: style: Variable 'home' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-conf.c:91:13: error: Resource leak: f [resourceLeak] 2.18.0 hime-0.9.11/src/hime-conf.c:98:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-exec-script.c:49:37: error: There is an unknown macro here somewhere. Configuration is required. If HIME_TABLE_DIR is a macro then please configure it. [unknownMacro] 2.18.0 hime-0.9.11/src/hime-gb-toggle.c:55:18: style: Local variable 'dpy' shadows outer variable [shadowVariable] hime-0.9.11/src/hime.h:82:17: note: Shadowed declaration hime-0.9.11/src/hime-gb-toggle.c:55:18: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-gb-toggle.c:56:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:112:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:112:26: style: Parameter 't' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:137:12: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:137:31: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:148:15: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:148:37: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:177:33: style: Local variable 'cur_inmd' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.h:155:14: note: Shadowed declaration hime-0.9.11/src/hime-gtab-merge.c:177:33: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:224:25: error: Uninitialized variable: cur_inmd->keybits [uninitvar] hime-0.9.11/src/hime-gtab-merge.c:177:44: note: Assignment 'cur_inmd=&tinmd', assigned value is hime-0.9.11/src/hime-gtab-merge.c:224:25: note: Uninitialized variable: cur_inmd->keybits 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:256:16: warning: If memory allocation fails, then there is a possible null pointer dereference: phridx [nullPointerOutOfMemory] hime-0.9.11/src/hime-gtab-merge.c:255:18: note: Assuming allocation function fails hime-0.9.11/src/hime-gtab-merge.c:255:18: note: Assignment 'phridx=(int*)malloc(sizeof(int)*(phr_cou+1))', assigned value is 0 hime-0.9.11/src/hime-gtab-merge.c:256:16: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:258:20: warning: If memory allocation fails, then there is a possible null pointer dereference: phridx [nullPointerOutOfMemory] hime-0.9.11/src/hime-gtab-merge.c:255:18: note: Assuming allocation function fails hime-0.9.11/src/hime-gtab-merge.c:255:18: note: Assignment 'phridx=(int*)malloc(sizeof(int)*(phr_cou+1))', assigned value is 0 hime-0.9.11/src/hime-gtab-merge.c:258:20: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:260:16: warning: If memory allocation fails, then there is a possible null pointer dereference: phrbuf [nullPointerOutOfMemory] hime-0.9.11/src/hime-gtab-merge.c:259:34: note: Assuming allocation function fails hime-0.9.11/src/hime-gtab-merge.c:259:18: note: Assignment 'phrbuf=(char*)malloc(prbf_cou)', assigned value is 0 hime-0.9.11/src/hime-gtab-merge.c:260:16: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:331:13: error: Common realloc mistake: 'phridx' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-gtab-merge.c:333:13: error: Common realloc mistake: 'phrbuf' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:103:10: style: Variable 'fname' can be declared as const array [constVariable] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:115:11: style: Variable 'phrbuf' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:123:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:124:17: warning:inconclusive: The buffer 'fname_tab' may not be null-terminated after the call to strncpy(). [terminateStrncpy] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:128:17: warning:inconclusive: The buffer 'fname_cin' may not be null-terminated after the call to strncpy(). [terminateStrncpy] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:156:12: warning: Either the condition '(fr=fopen(fname_tab,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/hime-gtab2cin.c:148:40: note: Assuming that condition '(fr=fopen(fname_tab,"rb"))==NULL' is not redundant hime-0.9.11/src/hime-gtab2cin.c:156:12: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:157:22: warning: Either the condition '(fr=fopen(fname_tab,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/hime-gtab2cin.c:148:40: note: Assuming that condition '(fr=fopen(fname_tab,"rb"))==NULL' is not redundant hime-0.9.11/src/hime-gtab2cin.c:157:22: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:158:13: warning: Either the condition '(fr=fopen(fname_tab,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/hime-gtab2cin.c:148:40: note: Assuming that condition '(fr=fopen(fname_tab,"rb"))==NULL' is not redundant hime-0.9.11/src/hime-gtab2cin.c:158:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:177:14: warning: Either the condition '(fw=fopen(fname_cin,"wb"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/hime-gtab2cin.c:168:40: note: Assuming that condition '(fw=fopen(fname_cin,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-gtab2cin.c:177:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:178:14: warning: Either the condition '(fw=fopen(fname_cin,"wb"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/hime-gtab2cin.c:168:40: note: Assuming that condition '(fw=fopen(fname_cin,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-gtab2cin.c:178:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:179:14: warning: Either the condition '(fw=fopen(fname_cin,"wb"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/hime-gtab2cin.c:168:40: note: Assuming that condition '(fw=fopen(fname_cin,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-gtab2cin.c:179:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:179:34: error: Uninitialized variable: fname [uninitvar] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:180:14: warning: Either the condition '(fw=fopen(fname_cin,"wb"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/hime-gtab2cin.c:168:40: note: Assuming that condition '(fw=fopen(fname_cin,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-gtab2cin.c:180:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:180:34: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: th [nullPointerOutOfMemory] hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assuming allocation function fails hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assignment 'gtabbuf=malloc(gtablen)', assigned value is 0 hime-0.9.11/src/hime-gtab2cin.c:176:8: note: th is assigned '(struct TableHead*)gtabbuf' here. hime-0.9.11/src/hime-gtab2cin.c:180:34: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:181:14: warning: Either the condition '(fw=fopen(fname_cin,"wb"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/hime-gtab2cin.c:168:40: note: Assuming that condition '(fw=fopen(fname_cin,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-gtab2cin.c:181:14: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:182:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: th [nullPointerOutOfMemory] hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assuming allocation function fails hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assignment 'gtabbuf=malloc(gtablen)', assigned value is 0 hime-0.9.11/src/hime-gtab2cin.c:176:8: note: th is assigned '(struct TableHead*)gtabbuf' here. hime-0.9.11/src/hime-gtab2cin.c:182:9: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:188:35: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: th [nullPointerOutOfMemory] hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assuming allocation function fails hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assignment 'gtabbuf=malloc(gtablen)', assigned value is 0 hime-0.9.11/src/hime-gtab2cin.c:176:8: note: th is assigned '(struct TableHead*)gtabbuf' here. hime-0.9.11/src/hime-gtab2cin.c:188:35: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:189:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: th [nullPointerOutOfMemory] hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assuming allocation function fails hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assignment 'gtabbuf=malloc(gtablen)', assigned value is 0 hime-0.9.11/src/hime-gtab2cin.c:176:8: note: th is assigned '(struct TableHead*)gtabbuf' here. hime-0.9.11/src/hime-gtab2cin.c:189:17: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:191:40: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: th [nullPointerOutOfMemory] hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assuming allocation function fails hime-0.9.11/src/hime-gtab2cin.c:159:22: note: Assignment 'gtabbuf=malloc(gtablen)', assigned value is 0 hime-0.9.11/src/hime-gtab2cin.c:176:8: note: th is assigned '(struct TableHead*)gtabbuf' here. hime-0.9.11/src/hime-gtab2cin.c:191:40: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:50:34: style: Parameter 'th' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:60:37: style: Parameter 'key32' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:71:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-gtab2cin.c:82:48: style: Parameter 'th' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-icon.c:21:28: style: Parameter 'iconame' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-icon.c:23:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_DEFAULT_ICON_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-icon.c:39:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYS_ICON_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-juyin-learn.c:120:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-juyin-learn.c:130:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-juyin-learn.c:149:20: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-juyin-learn.c:68:19: style: Variable 'phostr' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-juyin-learn.c:79:9: error: Common realloc mistake: 'outtext' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-module-cb.c:43:11: style: Variable 'error' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-module-cb.c:45:11: style: Variable 'module_path' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-module-cb.c:53:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-phoa2d.c:115:13: error: Common realloc mistake: 'phrase_area' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-phoa2d.c:192:25: warning: Either the condition '(fp=fopen(fname_out,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-phoa2d.c:189:40: note: Assuming that condition '(fp=fopen(fname_out,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-phoa2d.c:192:25: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-phoa2d.c:194:45: warning: Either the condition '(fp=fopen(fname_out,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-phoa2d.c:189:40: note: Assuming that condition '(fp=fopen(fname_out,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-phoa2d.c:194:45: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-phoa2d.c:195:50: warning: Either the condition '(fp=fopen(fname_out,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-phoa2d.c:189:40: note: Assuming that condition '(fp=fopen(fname_out,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-phoa2d.c:195:50: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-phoa2d.c:196:56: warning: Either the condition '(fp=fopen(fname_out,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-phoa2d.c:189:40: note: Assuming that condition '(fp=fopen(fname_out,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-phoa2d.c:196:56: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-phoa2d.c:200:13: warning: Uninitialized variables: pho_idx.key, pho_idx.start [uninitvar] hime-0.9.11/src/hime-phoa2d.c:159:19: note: Assuming condition is false hime-0.9.11/src/hime-phoa2d.c:200:13: note: Uninitialized variables: pho_idx.key, pho_idx.start 2.18.0 hime-0.9.11/src/hime-phoa2d.c:200:50: warning: Either the condition '(fp=fopen(fname_out,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-phoa2d.c:189:40: note: Assuming that condition '(fp=fopen(fname_out,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-phoa2d.c:200:50: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-phoa2d.c:201:55: warning: Either the condition '(fp=fopen(fname_out,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-phoa2d.c:189:40: note: Assuming that condition '(fp=fopen(fname_out,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-phoa2d.c:201:55: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-phoa2d.c:203:44: warning: Either the condition '(fp=fopen(fname_out,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-phoa2d.c:189:40: note: Assuming that condition '(fp=fopen(fname_out,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-phoa2d.c:203:44: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-phoa2d.c:205:13: warning: Either the condition '(fp=fopen(fname_out,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-phoa2d.c:189:40: note: Assuming that condition '(fp=fopen(fname_out,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-phoa2d.c:205:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-phoa2d.c:38:13: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-phoa2d.c:39:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-phoa2d.c:52:13: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-phoa2d.c:53:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-phoa2d.c:56:12: style: Variable 'd' is assigned a value that is never used. [unreadVariable] 2.18.0 hime-0.9.11/src/hime-phoa2d.c:75:19: warning: Either the condition '(fp=fopen(fname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-phoa2d.c:72:36: note: Assuming that condition '(fp=fopen(fname,"rb"))==NULL' is not redundant hime-0.9.11/src/hime-phoa2d.c:75:19: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-settings.c:245:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:113:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:151:9: style: Local variable 'hime_pop_up_win' shadows outer variable [shadowVariable] hime-0.9.11/src/hime-conf.h:144:56: note: Shadowed declaration hime-0.9.11/src/hime-setup-appearance.c:151:9: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:154:9: style: Local variable 'hime_root_x' shadows outer variable [shadowVariable] hime-0.9.11/src/hime-conf.h:144:30: note: Shadowed declaration hime-0.9.11/src/hime-setup-appearance.c:154:9: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:157:9: style: Local variable 'hime_root_y' shadows outer variable [shadowVariable] hime-0.9.11/src/hime-conf.h:144:43: note: Shadowed declaration hime-0.9.11/src/hime-setup-appearance.c:157:9: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:231:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:291:37: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:312:22: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:315:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:380:57: style: Parameter 'togglebutton' can be declared as pointer to const. However it seems that 'cb_hime_win_color_use' is a callback function, if 'togglebutton' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-setup-appearance.c:545:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime-setup-appearance.c:380:57: note: Parameter 'togglebutton' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:380:80: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'cb_hime_win_color_use' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-setup-appearance.c:545:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime-setup-appearance.c:380:80: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:388:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:392:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:397:38: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:407:45: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:416:50: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:425:50: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:434:47: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:443:46: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:452:46: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:467:39: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:488:34: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:492:38: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:516:40: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:535:33: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:539:37: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-appearance.c:555:37: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:149:11: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:157:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_SCRIPT_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:207:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:211:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:215:26: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:221:30: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:228:30: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:235:39: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:241:47: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:247:44: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:253:43: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:260:41: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:268:38: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:275:36: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:282:49: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:288:50: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:297:44: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:306:43: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:314:45: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:332:45: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:338:42: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:345:51: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:352:38: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-gtab.c:79:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-list.c:141:1: error: Memory leak: foo.file [memleak] 2.18.0 hime-0.9.11/src/hime-setup-list.c:141:1: error: Memory leak: foo.key [memleak] 2.18.0 hime-0.9.11/src/hime-setup-list.c:141:1: error: Memory leak: foo.name [memleak] 2.18.0 hime-0.9.11/src/hime-setup-list.c:183:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pinmd [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-list.c:204:15: style: Variable 'name' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-setup-list.c:208:15: style: Variable 'file' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-setup-list.c:209:15: style: Variable 'icon' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-setup-list.c:210:15: style: Variable 'disabled' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-setup-list.c:220:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-list.c:519:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:542:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:565:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-list.c:569:22: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:573:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:613:12: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:619:42: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:626:44: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:633:43: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:640:49: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:647:41: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:654:47: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:661:38: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:668:48: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:675:37: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:682:43: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-list.c:691:24: style: Variable 'dire' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-setup-list.c:695:19: style: Variable 'name' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:107:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:197:64: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'callback_button_clicked_tsin_space_opt' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-setup-pho.c:385:9: note: You might need to cast the function pointer here hime-0.9.11/src/hime-setup-pho.c:197:64: note: Parameter 'widget' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-setup-pho.c:252:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:297:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:319:31: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:324:43: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:337:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:341:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:345:26: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:348:25: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:353:25: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:369:37: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:392:46: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:399:54: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:406:37: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:413:35: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:420:41: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:427:44: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:434:43: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:441:44: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:448:48: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup-pho.c:455:41: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-setup.c:135:44: error: There is an unknown macro here somewhere. Configuration is required. If HIME_BIN_DIR is a macro then please configure it. [unknownMacro] 2.18.0 hime-0.9.11/src/hime-sim2trad.c:101:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-sim2trad.c:120:20: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-sim2trad.c:91:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:131:9: error: Common realloc mistake: 'ts_idx' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:178:11: style: Variable 'phostr' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:309:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_OK [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:331:16: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:366:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_BIN_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:403:42: style: Parameter 'button' can be declared as pointer to const. However it seems that 'cb_button_cancel' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-ts-edit.c:453:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime-ts-edit.c:403:42: note: Parameter 'button' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-ts-edit.c:403:59: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'cb_button_cancel' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-ts-edit.c:453:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime-ts-edit.c:403:59: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-ts-edit.c:407:20: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:507:38: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'key_press_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-ts-edit.c:585:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime-ts-edit.c:507:38: note: Parameter 'widget' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-ts-edit.c:508:40: style: Parameter 'event' can be declared as pointer to const. However it seems that 'key_press_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-ts-edit.c:585:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime-ts-edit.c:508:40: note: Parameter 'event' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-ts-edit.c:509:36: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'key_press_event' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-ts-edit.c:585:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime-ts-edit.c:509:36: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-ts-edit.c:582:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:593:16: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:599:27: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-ts-edit.c:616:20: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:224:9: style: Local variable 'hashidx' shadows outer variable [shadowVariable] hime-0.9.11/src/tsin.h:24:12: note: Shadowed declaration hime-0.9.11/src/hime-tsa2d32.c:224:9: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:279:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:294:10: style: Local variable 'inmd' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.h:151:14: note: Shadowed declaration hime-0.9.11/src/hime-tsa2d32.c:294:10: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:294:17: style: Local variable 'cur_inmd' shadows outer variable [shadowVariable] hime-0.9.11/src/gtab.h:155:14: note: Shadowed declaration hime-0.9.11/src/hime-tsa2d32.c:294:17: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:296:11: style: Variable 'cphbuf' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:346:17: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:347:17: style: Local variable 'len' shadows outer variable [shadowVariable] hime-0.9.11/src/hime-tsa2d32.c:221:20: note: Shadowed declaration hime-0.9.11/src/hime-tsa2d32.c:347:17: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:363:21: style: Local variable 'idx' shadows outer variable [shadowVariable] hime-0.9.11/src/hime-tsa2d32.c:221:15: note: Shadowed declaration hime-0.9.11/src/hime-tsa2d32.c:363:21: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:364:25: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:379:29: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:382:29: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:416:19: error: Common realloc mistake: 'phidx' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:428:13: error: Common realloc mistake: 'bf' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:492:22: style: Local variable 'kk' shadows outer variable [shadowVariable] hime-0.9.11/src/hime-tsa2d32.c:222:13: note: Shadowed declaration hime-0.9.11/src/hime-tsa2d32.c:492:22: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:500:23: style: Local variable 'kk64' shadows outer variable [shadowVariable] hime-0.9.11/src/hime-tsa2d32.c:223:15: note: Shadowed declaration hime-0.9.11/src/hime-tsa2d32.c:500:23: note: Shadow variable 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:508:20: warning: Either the condition 'v>=256' is redundant or the array 'hashidx[256]' is accessed at index 256, which is out of bounds. [arrayIndexOutOfBoundsCond] hime-0.9.11/src/hime-tsa2d32.c:505:15: note: Assuming that condition 'v>=256' is not redundant hime-0.9.11/src/hime-tsa2d32.c:508:20: note: Array index out of bounds 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:553:29: warning: Either the condition '(fw=fopen(outfileidx,"wb"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/hime-tsa2d32.c:549:41: note: Assuming that condition '(fw=fopen(outfileidx,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-tsa2d32.c:553:29: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:554:43: warning: Either the condition '(fw=fopen(outfileidx,"wb"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/hime-tsa2d32.c:549:41: note: Assuming that condition '(fw=fopen(outfileidx,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-tsa2d32.c:554:43: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:555:31: warning: Either the condition '(fw=fopen(outfileidx,"wb"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/hime-tsa2d32.c:549:41: note: Assuming that condition '(fw=fopen(outfileidx,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-tsa2d32.c:555:31: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-tsa2d32.c:558:13: warning: Either the condition '(fw=fopen(outfileidx,"wb"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/hime-tsa2d32.c:549:41: note: Assuming that condition '(fw=fopen(outfileidx,"wb"))==NULL' is not redundant hime-0.9.11/src/hime-tsa2d32.c:558:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-tsd2a32.c:151:27: style: Variable 't' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tsd2a32.c:66:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-tsd2a32.c:83:37: warning: Either the condition '(fp=fopen(fname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/hime-tsd2a32.c:77:36: note: Assuming that condition '(fp=fopen(fname,"rb"))==NULL' is not redundant hime-0.9.11/src/hime-tsd2a32.c:83:37: note: Null pointer dereference 2.18.0 hime-0.9.11/src/hime-tsin2gtab-phrase.c:112:11: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tsin2gtab-phrase.c:51:11: style: Variable 'q' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tsin2gtab-phrase.c:56:11: style: Variable 'end' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tsin2gtab-phrase.c:77:13: style: Variable 'q' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tsin2gtab-phrase.c:82:13: style: Variable 'end' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tslearn.c:103:11: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tslearn.c:103:31: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tslearn.c:155:9: error: Common realloc mistake: 'phrase' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/hime-tslearn.c:169:31: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime-tslearn.c:187:16: style: Redundant initialization for 'char_count'. The initialized value is overwritten before it is read. [redundantInitialization] hime-0.9.11/src/hime-tslearn.c:181:20: note: char_count is initialized hime-0.9.11/src/hime-tslearn.c:187:16: note: char_count is overwritten 2.18.0 hime-0.9.11/src/hime-tslearn.c:206:23: style: Variable 'utf8' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime-tslearn.c:285:42: style: Parameter 'button' can be declared as pointer to const. However it seems that 'cb_button_cancel' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-tslearn.c:336:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime-tslearn.c:285:42: note: Parameter 'button' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-tslearn.c:285:59: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'cb_button_cancel' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime-tslearn.c:336:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime-tslearn.c:285:59: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime-tslearn.c:291:20: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime-tslearn.c:425:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime-tslearn.c:435:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/hime-tslearn.c:458:20: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/hime.c:279:44: style: Parameter 'filename' can be declared as const array [constParameter] 2.18.0 hime-0.9.11/src/hime.c:311:22: style: Variable 'cs' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime.c:378:37: style: Parameter 'd' can be declared as pointer to const. However it seems that 'xerror_handler' is a callback function, if 'd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime.c:667:39: note: You might need to cast the function pointer here hime-0.9.11/src/hime.c:378:37: note: Parameter 'd' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime.c:378:53: style: Parameter 'eve' can be declared as pointer to const. However it seems that 'xerror_handler' is a callback function, if 'eve' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime.c:667:39: note: You might need to cast the function pointer here hime-0.9.11/src/hime.c:378:53: note: Parameter 'eve' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime.c:396:33: style: Parameter 'checkmenuitem' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/hime.c:458:49: style: Parameter 'event' can be declared as pointer to const. However it seems that 'my_gdk_filter' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime.c:660:34: note: You might need to cast the function pointer here hime-0.9.11/src/hime.c:458:49: note: Parameter 'event' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime.c:459:48: style: Parameter 'data' can be declared as pointer to const. However it seems that 'my_gdk_filter' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime.c:660:34: note: You might need to cast the function pointer here hime-0.9.11/src/hime.c:459:48: note: Parameter 'data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime.c:460:13: style: Variable 'xeve' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime.c:466:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FocusIn [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime.c:47:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime.c:483:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime.c:532:37: style: Parameter 'data' can be declared as pointer to const. However it seems that 'delayed_start_cb' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime.c:673:25: note: You might need to cast the function pointer here hime-0.9.11/src/hime.c:532:37: note: Parameter 'data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime.c:564:45: style: Parameter 'screen' can be declared as pointer to const. However it seems that 'screen_size_changed' is a callback function, if 'screen' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime.c:648:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime.c:564:45: note: Parameter 'screen' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime.c:564:62: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'screen_size_changed' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/hime.c:648:5: note: You might need to cast the function pointer here hime-0.9.11/src/hime.c:564:62: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/hime.c:573:11: style: Variable 'destroy' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime.c:580:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/hime.c:594:11: style: Variable 'lc_ctype' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/hime.c:604:18: style: Variable 'lc_ctype' is assigned a value that is never used. [unreadVariable] head hime-0.9.11/src/hime.h:32:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head hime-0.9.11/src/hime.h:32:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 hime-0.9.11/src/im-addr.c:55:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/im-addr.c:55:25: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] 2.18.0 hime-0.9.11/src/im-addr.c:65:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-dispatch.c:155:11: style: Variable 'typed' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/im-dispatch.c:158:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_req_key_press [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-dispatch.c:160:15: style: Variable 'typed' is assigned a value that is never used. [unreadVariable] 2.18.0 hime-0.9.11/src/im-dispatch.c:163:15: style: Variable 'typed' is assigned a value that is never used. [unreadVariable] 2.18.0 hime-0.9.11/src/im-dispatch.c:181:37: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/im-dispatch.c:185:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAG_HIME_client_handle_raise_window [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-dispatch.c:322:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_req_message [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-srv.c:102:9: error: Common realloc mistake: 'hime_clients' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/im-srv.c:134:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-srv.c:147:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNIX_PATH_MAX [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-srv.c:164:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_STRING [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-srv.c:174:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-srv.c:183:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNIX_PATH_MAX [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-srv.c:208:21: error: Allocation with g_io_channel_unix_new, g_io_add_watch doesn't release it. [leakNoVarFunctionCall] 2.18.0 hime-0.9.11/src/im-srv.c:232:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-srv.c:233:33: style: Variable 'peer_addr' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/im-srv.c:249:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __HIME_PASSWD_N_ [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-srv.c:259:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/im-srv.c:313:21: error: Allocation with g_io_channel_unix_new, g_io_add_watch doesn't release it. [leakNoVarFunctionCall] 2.18.0 hime-0.9.11/src/im-srv.c:45:55: style: Parameter 'source' can be declared as pointer to const. However it seems that 'cb_read_hime_client_data' is a callback function, if 'source' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/im-srv.c:115:9: note: You might need to cast the function pointer here hime-0.9.11/src/im-srv.c:45:55: note: Parameter 'source' can be declared as pointer to const 2.18.0 hime-0.9.11/src/im-srv.c:57:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __HIME_PASSWD_N_ [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/kbmcv.c:120:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/kbmcv.c:24:26: style: Variable 'pp' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/locale.c:105:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head hime-0.9.11/src/modules/anthy.c:1285:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head hime-0.9.11/src/modules/anthy.c:1285:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 hime-0.9.11/src/modules/anthy.c:634:81: error: There is an unknown macro here somewhere. Configuration is required. If TSIN_CURSOR_COLOR_DEFAULT is a macro then please configure it. [unknownMacro] head hime-0.9.11/src/modules/chewing.c:644:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head hime-0.9.11/src/modules/chewing.c:644:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 hime-0.9.11/src/modules/chewing.c:93:64: error: There is an unknown macro here somewhere. Configuration is required. If TSIN_CURSOR_COLOR_DEFAULT is a macro then please configure it. [unknownMacro] 2.18.0 hime-0.9.11/src/modules/hime-setup-chewing.c:110:16: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/modules/hime-setup-chewing.c:115:26: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/modules/hime-setup-chewing.c:124:31: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/modules/hime-setup-chewing.c:131:29: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/modules/hime-setup-chewing.c:138:27: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/modules/hime-setup-chewing.c:145:31: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/modules/hime-setup-chewing.c:152:22: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] head hime-0.9.11/src/modules/hime-setup-chewing.c:163:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] head hime-0.9.11/src/modules/hime-setup-chewing.c:163:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GTK_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 hime-0.9.11/src/modules/hime-setup-chewing.c:80:62: style: Parameter 'data_hime_setup_window_type_utility' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/modules/hime-setup-chewing.c:92:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/pho-dbg.c:55:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/pho-dbg.c:58:23: style: Parameter 'ks' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/pho-lookup.c:24:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/pho-lookup.c:26:26: style: Variable 'pp' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho-play.c:40:11: style: Variable 'ph' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho-play.c:44:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_OGG_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/pho-util.c:159:15: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho-util.c:160:15: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho-util.c:165:26: style:inconclusive: Function 'utf8_pho_keys' argument 1 names different: declaration 'big5' definition 'utf8'. [funcArgNamesDifferent] hime-0.9.11/src/pho.h:69:26: note: Function 'utf8_pho_keys' argument 1 names different: declaration 'big5' definition 'utf8'. hime-0.9.11/src/pho-util.c:165:26: note: Function 'utf8_pho_keys' argument 1 names different: declaration 'big5' definition 'utf8'. 2.18.0 hime-0.9.11/src/pho-util.c:269:19: style: Variable 'pstr' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho-util.c:72:46: warning: Either the condition '(fr=fopen(phofname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/pho-util.c:69:39: note: Assuming that condition '(fr=fopen(phofname,"rb"))==NULL' is not redundant hime-0.9.11/src/pho-util.c:72:46: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pho-util.c:73:46: warning: Either the condition '(fr=fopen(phofname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/pho-util.c:69:39: note: Assuming that condition '(fr=fopen(phofname,"rb"))==NULL' is not redundant hime-0.9.11/src/pho-util.c:73:46: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pho-util.c:74:39: warning: Either the condition '(fr=fopen(phofname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/pho-util.c:69:39: note: Assuming that condition '(fr=fopen(phofname,"rb"))==NULL' is not redundant hime-0.9.11/src/pho-util.c:74:39: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pho-util.c:75:65: warning: Either the condition '(fr=fopen(phofname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/pho-util.c:69:39: note: Assuming that condition '(fr=fopen(phofname,"rb"))==NULL' is not redundant hime-0.9.11/src/pho-util.c:75:65: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pho-util.c:80:12: warning: If memory allocation fails, then there is a possible null pointer dereference: idx_pho [nullPointerOutOfMemory] hime-0.9.11/src/pho-util.c:79:15: note: Assuming allocation function fails hime-0.9.11/src/pho-util.c:79:15: note: Assignment 'idx_pho=(struct PHO_IDX*)malloc(sizeof(struct PHO_IDX)*(idxnum_pho+1))', assigned value is 0 hime-0.9.11/src/pho-util.c:80:12: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pho-util.c:98:16: warning: If memory allocation fails, then there is a possible null pointer dereference: pho_phrase_area [nullPointerOutOfMemory] hime-0.9.11/src/pho-util.c:97:27: note: Assuming allocation function fails hime-0.9.11/src/pho-util.c:97:27: note: Assignment 'pho_phrase_area=(char*)malloc(sizeof(char)*(pho_phrase_area_sz))', assigned value is 0 hime-0.9.11/src/pho-util.c:98:16: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pho.c:169:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/pho.c:223:18: style: Local variable 'num' shadows outer variable [shadowVariable] hime-0.9.11/src/pho.c:206:14: note: Shadowed declaration hime-0.9.11/src/pho.c:223:18: note: Shadow variable 2.18.0 hime-0.9.11/src/pho.c:224:18: style: Local variable 'typ' shadows outer variable [shadowVariable] hime-0.9.11/src/pho.c:207:14: note: Shadowed declaration hime-0.9.11/src/pho.c:224:18: note: Shadow variable 2.18.0 hime-0.9.11/src/pho.c:294:15: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho.c:295:15: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho.c:330:49: style: Parameter 'utf8' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/pho.c:378:16: warning: Either the condition '(fw=fopen(phofname,"rb+"))==NULL' is redundant or there is possible null pointer dereference: fw. [nullPointerRedundantCheck] hime-0.9.11/src/pho.c:374:40: note: Assuming that condition '(fw=fopen(phofname,"rb+"))==NULL' is not redundant hime-0.9.11/src/pho.c:378:16: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pho.c:381:76: style: Checking if unsigned expression 'fwrite(&ch_pho[start_i],sizeof(struct PHO_ITEM),stop_i-start_i,fw)' is less than zero. [unsignedLessThanZero] 2.18.0 hime-0.9.11/src/pho.c:464:39: warning: Either the condition '(fr=fopen(kbmfname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/pho.c:459:39: note: Assuming that condition '(fr=fopen(kbmfname,"rb"))==NULL' is not redundant hime-0.9.11/src/pho.c:464:39: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pho.c:465:13: warning: Either the condition '(fr=fopen(kbmfname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/pho.c:459:39: note: Assuming that condition '(fr=fopen(kbmfname,"rb"))==NULL' is not redundant hime-0.9.11/src/pho.c:465:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pho.c:507:11: style: Variable 'pp' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho.c:512:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMask [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/pho.c:58:24: style: Parameter 'typ_pho' can be declared as const array [constParameter] 2.18.0 hime-0.9.11/src/pho.c:729:19: style: Variable 'pho_str' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho.c:739:15: style: Variable 'tt' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho.c:755:19: style: Variable 'pho_str' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/pho.c:777:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable typ [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/pho2pinyin.c:33:48: style: Parameter 'rtyp_pho' can be declared as const array [constParameter] 2.18.0 hime-0.9.11/src/pho2pinyin.c:81:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/phrase-save-menu.c:34:36: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'cb_clicked' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/phrase-save-menu.c:54:5: note: You might need to cast the function pointer here hime-0.9.11/src/phrase-save-menu.c:34:36: note: Parameter 'widget' can be declared as pointer to const 2.18.0 hime-0.9.11/src/phrase-save-menu.c:64:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/phrase-save-menu.c:69:23: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/phrase.c:238:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ControlMask [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/pin-juyin.c:33:19: warning: Either the condition '(fp=fopen(fnamein,"r"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/pin-juyin.c:30:37: note: Assuming that condition '(fp=fopen(fnamein,"r"))==NULL' is not redundant hime-0.9.11/src/pin-juyin.c:33:19: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pin-juyin.c:43:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] 2.18.0 hime-0.9.11/src/pin-juyin.c:68:42: warning: Either the condition '(fp=fopen(fnameout,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/pin-juyin.c:65:39: note: Assuming that condition '(fp=fopen(fnameout,"wb"))==NULL' is not redundant hime-0.9.11/src/pin-juyin.c:68:42: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pin-juyin.c:69:48: warning: Either the condition '(fp=fopen(fnameout,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/pin-juyin.c:65:39: note: Assuming that condition '(fp=fopen(fnameout,"wb"))==NULL' is not redundant hime-0.9.11/src/pin-juyin.c:69:48: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pin-juyin.c:70:13: warning: Either the condition '(fp=fopen(fnameout,"wb"))==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] hime-0.9.11/src/pin-juyin.c:65:39: note: Assuming that condition '(fp=fopen(fnameout,"wb"))==NULL' is not redundant hime-0.9.11/src/pin-juyin.c:70:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pinyin.c:144:44: warning: Either the condition '(fr=fopen(pinfname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/pinyin.c:141:39: note: Assuming that condition '(fr=fopen(pinfname,"rb"))==NULL' is not redundant hime-0.9.11/src/pinyin.c:144:44: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pinyin.c:146:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pin_juyin [nullPointerOutOfMemory] hime-0.9.11/src/pinyin.c:145:17: note: Assuming allocation function fails hime-0.9.11/src/pinyin.c:145:17: note: Assignment 'pin_juyin=(struct PIN_JUYIN*)malloc(sizeof(struct PIN_JUYIN)*(pin_juyinN))', assigned value is 0 hime-0.9.11/src/pinyin.c:146:12: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pinyin.c:146:55: warning: Either the condition '(fr=fopen(pinfname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/pinyin.c:141:39: note: Assuming that condition '(fr=fopen(pinfname,"rb"))==NULL' is not redundant hime-0.9.11/src/pinyin.c:146:55: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pinyin.c:147:13: warning: Either the condition '(fr=fopen(pinfname,"rb"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/pinyin.c:141:39: note: Assuming that condition '(fr=fopen(pinfname,"rb"))==NULL' is not redundant hime-0.9.11/src/pinyin.c:147:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/pinyin.c:77:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/statistic.c:104:23: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/statistic.c:62:9: error: Common realloc mistake: 'ch_time' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/statistic.c:92:40: style: Parameter 'data' can be declared as pointer to const. However it seems that 'timeout_update_stat' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/statistic.c:113:43: note: You might need to cast the function pointer here hime-0.9.11/src/statistic.c:92:40: note: Parameter 'data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/statistic.c:98:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/t2s-lookup.c:67:11: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/t2s-lookup.c:72:9: error: Common realloc mistake: 'op' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/t2s-lookup.c:91:5: style: Statements following 'return' will never be executed. [unreachableCode] 2.18.0 hime-0.9.11/src/tray-appindicator.c:158:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APP_INDICATOR_STATUS_ACTIVE [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tray-appindicator.c:186:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APP_INDICATOR_STATUS_PASSIVE [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tray-appindicator.c:190:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APP_INDICATOR_STATUS_PASSIVE [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tray-appindicator.c:58:46: style: Parameter 'checkmenuitem' can be declared as pointer to const. However it seems that 'cb_toggle_im_enabled' is a callback function, if 'checkmenuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-appindicator.c:63:40: note: You might need to cast the function pointer here hime-0.9.11/src/tray-appindicator.c:58:46: note: Parameter 'checkmenuitem' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-appindicator.c:58:70: style: Parameter 'dat' can be declared as pointer to const. However it seems that 'cb_toggle_im_enabled' is a callback function, if 'dat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-appindicator.c:63:40: note: You might need to cast the function pointer here hime-0.9.11/src/tray-appindicator.c:58:70: note: Parameter 'dat' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-appindicator.c:82:51: style: Parameter 'fallback' can be declared as const array [constParameter] 2.18.0 hime-0.9.11/src/tray-double.c:151:118: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tray-double.c:190:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_TRAY_DISPLAY_DOUBLE [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tray-double.c:236:47: style: Parameter 'status_icon' can be declared as pointer to const. However it seems that 'cb_activate_state' is a callback function, if 'status_icon' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:379:9: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:236:47: note: Parameter 'status_icon' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:236:69: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'cb_activate_state' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:379:9: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:236:69: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:310:11: style: Variable 'tip' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tray-double.c:348:17: style: Variable 'tip' is assigned a value that is never used. [unreadVariable] 2.18.0 hime-0.9.11/src/tray-double.c:348:17: style: Variable 'tip' is reassigned a value before the old one has been used. [redundantAssignment] hime-0.9.11/src/tray-double.c:311:9: note: tip is assigned hime-0.9.11/src/tray-double.c:348:17: note: tip is overwritten 2.18.0 hime-0.9.11/src/tray-double.c:351:17: style: Variable 'tip' is assigned a value that is never used. [unreadVariable] 2.18.0 hime-0.9.11/src/tray-double.c:356:17: style: Variable 'tip' is assigned a value that is never used. [unreadVariable] 2.18.0 hime-0.9.11/src/tray-double.c:359:17: style: Variable 'tip' is assigned a value that is never used. [unreadVariable] 2.18.0 hime-0.9.11/src/tray-double.c:391:14: style: Local variable 'tt' shadows outer variable [shadowVariable] hime-0.9.11/src/tray-double.c:322:10: note: Shadowed declaration hime-0.9.11/src/tray-double.c:391:14: note: Shadow variable 2.18.0 hime-0.9.11/src/tray-double.c:409:39: style: Parameter 'data' can be declared as pointer to const. However it seems that 'create_tray_double' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:415:25: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:409:39: note: Parameter 'data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:40:37: style: Parameter 'checkmenuitem' can be declared as pointer to const. However it seems that 'cb_sim2trad' is a callback function, if 'checkmenuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:131:51: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:40:37: note: Parameter 'checkmenuitem' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:40:61: style: Parameter 'dat' can be declared as pointer to const. However it seems that 'cb_sim2trad' is a callback function, if 'dat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:131:51: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:40:61: note: Parameter 'dat' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:41:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_BIN_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tray-double.c:44:37: style: Parameter 'checkmenuitem' can be declared as pointer to const. However it seems that 'cb_trad2sim' is a callback function, if 'checkmenuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:130:51: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:44:37: note: Parameter 'checkmenuitem' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:44:61: style: Parameter 'dat' can be declared as pointer to const. However it seems that 'cb_trad2sim' is a callback function, if 'dat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:130:51: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:44:61: note: Parameter 'dat' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:45:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HIME_BIN_DIR [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tray-double.c:54:38: style: Parameter 'checkmenuitem' can be declared as pointer to const. However it seems that 'cb_inmd_menu' is a callback function, if 'checkmenuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:107:52: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:54:38: note: Parameter 'checkmenuitem' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:54:62: style: Parameter 'dat' can be declared as pointer to const. However it seems that 'cb_inmd_menu' is a callback function, if 'dat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:107:52: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:54:62: note: Parameter 'dat' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:61:35: style: Parameter 'checkmenuitem' can be declared as pointer to const. However it seems that 'quit_hime' is a callback function, if 'checkmenuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:104:35: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:61:35: note: Parameter 'checkmenuitem' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:61:59: style: Parameter 'dat' can be declared as pointer to const. However it seems that 'quit_hime' is a callback function, if 'dat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:104:35: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:61:59: note: Parameter 'dat' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:69:45: style: Parameter 'checkmenuitem' can be declared as pointer to const. However it seems that 'cb_trad_sim_toggle_' is a callback function, if 'checkmenuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:132:46: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:69:45: note: Parameter 'checkmenuitem' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:69:69: style: Parameter 'dat' can be declared as pointer to const. However it seems that 'cb_trad_sim_toggle_' is a callback function, if 'dat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:132:46: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:69:69: note: Parameter 'dat' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:75:41: style: Parameter 'checkmenuitem' can be declared as pointer to const. However it seems that 'cb_stat_toggle_' is a callback function, if 'checkmenuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:133:33: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:75:41: note: Parameter 'checkmenuitem' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:75:65: style: Parameter 'dat' can be declared as pointer to const. However it seems that 'cb_stat_toggle_' is a callback function, if 'dat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:133:33: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:75:65: note: Parameter 'dat' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:79:42: style: Parameter 'checkmenuitem' can be declared as pointer to const. However it seems that 'exec_hime_setup_' is a callback function, if 'checkmenuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:103:51: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:79:42: note: Parameter 'checkmenuitem' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:79:66: style: Parameter 'dat' can be declared as pointer to const. However it seems that 'exec_hime_setup_' is a callback function, if 'dat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:103:51: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:79:66: note: Parameter 'dat' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:91:48: style: Parameter 'checkmenuitem' can be declared as pointer to const. However it seems that 'cb_about_window' is a callback function, if 'checkmenuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:102:42: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:91:48: note: Parameter 'checkmenuitem' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray-double.c:91:72: style: Parameter 'dat' can be declared as pointer to const. However it seems that 'cb_about_window' is a callback function, if 'dat' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray-double.c:102:42: note: You might need to cast the function pointer here hime-0.9.11/src/tray-double.c:91:72: note: Parameter 'dat' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray.c:166:34: warning: Uninitialized variable: fname [uninitvar] hime-0.9.11/src/tray.c:164:9: note: Assuming condition is false hime-0.9.11/src/tray.c:166:34: note: Uninitialized variable: fname 2.18.0 hime-0.9.11/src/tray.c:225:47: style: Parameter 'status_icon' can be declared as pointer to const. However it seems that 'tray_size_changed_cb' is a callback function, if 'status_icon' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray.c:282:5: note: You might need to cast the function pointer here hime-0.9.11/src/tray.c:225:47: note: Parameter 'status_icon' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray.c:225:66: style: Parameter 'size' can be declared as pointer to const. However it seems that 'tray_size_changed_cb' is a callback function, if 'size' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray.c:282:5: note: You might need to cast the function pointer here hime-0.9.11/src/tray.c:225:66: note: Parameter 'size' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray.c:225:81: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'tray_size_changed_cb' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/tray.c:282:5: note: You might need to cast the function pointer here hime-0.9.11/src/tray.c:225:81: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/tray.c:241:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SHIFT_MASK [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tray.c:299:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_SCALE [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tray.c:94:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tsin-parse.c:159:17: style: Local variable 'i' shadows outer variable [shadowVariable] hime-0.9.11/src/tsin-parse.c:89:13: note: Shadowed declaration hime-0.9.11/src/tsin-parse.c:159:17: note: Shadow variable 2.18.0 hime-0.9.11/src/tsin-parse.c:222:20: style: Variable 'pca' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin-scan.c:192:12: warning: Uninitialized variables: sel.len, sel.usecount [uninitvar] hime-0.9.11/src/tsin-scan.c:116:22: note: Assuming condition is false hime-0.9.11/src/tsin-scan.c:192:12: note: Uninitialized variables: sel.len, sel.usecount 2.18.0 hime-0.9.11/src/tsin-scan.c:26:14: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin-scan.c:27:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin-scan.c:33:14: style: Variable 'a' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin-scan.c:34:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin-util.c:152:45: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin-util.c:152:58: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin-util.c:165:42: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin-util.c:165:52: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin-util.c:178:46: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin-util.c:178:60: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin-util.c:231:18: style: Variable 'ord' is assigned a value that is never used. [unreadVariable] 2.18.0 hime-0.9.11/src/tsin-util.c:232:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable u_int64_t [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tsin-util.c:264:46: warning: Either the condition 'hashno>=256' is redundant or the array 'hashidx[256]' is accessed at index 256, which is out of bounds. [arrayIndexOutOfBoundsCond] hime-0.9.11/src/tsin-util.c:261:16: note: Assuming that condition 'hashno>=256' is not redundant hime-0.9.11/src/tsin-util.c:264:46: note: Array index out of bounds 2.18.0 hime-0.9.11/src/tsin-util.c:289:16: warning: If memory allocation fails, then there is a possible null pointer dereference: phidx [nullPointerOutOfMemory] hime-0.9.11/src/tsin-util.c:287:22: note: Assuming allocation function fails hime-0.9.11/src/tsin-util.c:287:22: note: Assignment 'phidx=(int*)malloc(sizeof(int)*(wN))', assigned value is 0 hime-0.9.11/src/tsin-util.c:289:16: note: Null pointer dereference 2.18.0 hime-0.9.11/src/tsin-util.c:291:17: warning: If memory allocation fails, then there is a possible null pointer dereference: phidx [nullPointerOutOfMemory] hime-0.9.11/src/tsin-util.c:287:22: note: Assuming allocation function fails hime-0.9.11/src/tsin-util.c:287:22: note: Assignment 'phidx=(int*)malloc(sizeof(int)*(wN))', assigned value is 0 hime-0.9.11/src/tsin-util.c:291:17: note: Null pointer dereference 2.18.0 hime-0.9.11/src/tsin-util.c:291:9: error: Read and write operations without a call to a positioning function (fseek, fsetpos or rewind) or fflush in between result in undefined behaviour. [IOWithoutPositioning] 2.18.0 hime-0.9.11/src/tsin-util.c:365:48: style: Parameter 'tone_mask' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin-util.c:378:72: style:inconclusive: Function 'tsin_seek' argument 5 names different: declaration 'tone_off' definition 'tone_mask'. [funcArgNamesDifferent] hime-0.9.11/src/tsin.h:49:72: note: Function 'tsin_seek' argument 5 names different: declaration 'tone_off' definition 'tone_mask'. hime-0.9.11/src/tsin-util.c:378:72: note: Function 'tsin_seek' argument 5 names different: declaration 'tone_off' definition 'tone_mask'. 2.18.0 hime-0.9.11/src/tsin-util.c:407:22: warning: Either the condition 'hashi>=256' is redundant or the array 'hashidx[256]' is accessed at index 256, which is out of bounds. [arrayIndexOutOfBoundsCond] hime-0.9.11/src/tsin-util.c:401:15: note: Assuming that condition 'hashi>=256' is not redundant hime-0.9.11/src/tsin-util.c:407:22: note: Array index out of bounds 2.18.0 hime-0.9.11/src/tsin-util.c:447:9: warning: Uninitialized variable: cmp [uninitvar] hime-0.9.11/src/tsin-util.c:414:16: note: Assuming condition is false hime-0.9.11/src/tsin-util.c:447:9: note: Uninitialized variable: cmp 2.18.0 hime-0.9.11/src/tsin-util.c:493:13: style: Local variable 'top' shadows outer variable [shadowVariable] hime-0.9.11/src/tsin-util.c:406:9: note: Shadowed declaration hime-0.9.11/src/tsin-util.c:493:13: note: Shadow variable 2.18.0 hime-0.9.11/src/tsin-util.c:494:13: style: Local variable 'bot' shadows outer variable [shadowVariable] hime-0.9.11/src/tsin-util.c:407:9: note: Shadowed declaration hime-0.9.11/src/tsin-util.c:494:13: note: Shadow variable 2.18.0 hime-0.9.11/src/tsin-util.c:578:47: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin-util.c:62:28: warning: Either the condition '(fr=fopen(tsidxfname,"rb+"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/tsin-util.c:58:42: note: Assuming that condition '(fr=fopen(tsidxfname,"rb+"))==NULL' is not redundant hime-0.9.11/src/tsin-util.c:62:28: note: Null pointer dereference 2.18.0 hime-0.9.11/src/tsin-util.c:67:43: warning: Either the condition '(fr=fopen(tsidxfname,"rb+"))==NULL' is redundant or there is possible null pointer dereference: fr. [nullPointerRedundantCheck] hime-0.9.11/src/tsin-util.c:58:42: note: Assuming that condition '(fr=fopen(tsidxfname,"rb+"))==NULL' is not redundant hime-0.9.11/src/tsin-util.c:67:43: note: Null pointer dereference 2.18.0 hime-0.9.11/src/tsin.c:1066:11: style: Variable 'endp' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin.c:1110:26: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin.c:1119:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin.c:1145:56: style: Parameter 'shift_punc' can be declared as const array [constParameter] 2.18.0 hime-0.9.11/src/tsin.c:1146:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin.c:1187:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_KP_0 [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tsin.c:1415:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ShiftMask [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tsin.c:148:15: style: Variable 'str' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin.c:1575:21: style: Local variable 'idx' shadows outer variable [shadowVariable] hime-0.9.11/src/tsin.c:1417:17: note: Shadowed declaration hime-0.9.11/src/tsin.c:1575:21: note: Shadow variable 2.18.0 hime-0.9.11/src/tsin.c:1650:17: style: Local variable 'N' shadows outer variable [shadowVariable] hime-0.9.11/src/tsin.c:1589:13: note: Shadowed declaration hime-0.9.11/src/tsin.c:1650:17: note: Shadow variable 2.18.0 hime-0.9.11/src/tsin.c:1750:15: style: Variable 'pp' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin.c:1802:19: style: Variable 'ppp' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/tsin.c:1988:100: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Shift_L [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/tsin.c:222:13: style: Local variable 'len' shadows outer argument [shadowArgument] hime-0.9.11/src/tsin.c:185:25: note: Shadowed declaration hime-0.9.11/src/tsin.c:222:13: note: Shadow variable 2.18.0 hime-0.9.11/src/tsin.c:608:50: style: Parameter 'phos' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin.c:719:9: warning: Uninitialized variable: ttt [uninitvar] hime-0.9.11/src/tsin.c:709:14: note: Assuming condition is false hime-0.9.11/src/tsin.c:719:9: note: Uninitialized variable: ttt 2.18.0 hime-0.9.11/src/tsin.c:730:17: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] hime-0.9.11/src/tsin.c:726:9: note: outer condition: need_mask hime-0.9.11/src/tsin.c:730:17: note: identical inner condition: need_mask 2.18.0 hime-0.9.11/src/tsin.c:927:55: style: Parameter 'phos' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/tsin.c:931:13: style: Local variable 'len' shadows outer argument [shadowArgument] hime-0.9.11/src/tsin.c:927:65: note: Shadowed declaration hime-0.9.11/src/tsin.c:931:13: note: Shadow variable 2.18.0 hime-0.9.11/src/tsin.c:952:17: warning: Uninitialized variable: u8len [uninitvar] hime-0.9.11/src/tsin.c:943:13: note: Assuming condition is true hime-0.9.11/src/tsin.c:952:17: note: Uninitialized variable: u8len 2.18.0 hime-0.9.11/src/util.c:101:13: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] hime-0.9.11/src/util.c:100:22: note: Assuming allocation function fails hime-0.9.11/src/util.c:100:22: note: Assignment 'p=malloc(n)', assigned value is 0 hime-0.9.11/src/util.c:101:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/util.c:106:21: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/util.c:111:13: warning: If memory allocation fails, then there is a possible null pointer dereference: q [nullPointerOutOfMemory] hime-0.9.11/src/util.c:110:16: note: Assuming allocation function fails hime-0.9.11/src/util.c:110:16: note: Assignment 'q=malloc(n)', assigned value is 0 hime-0.9.11/src/util.c:111:13: note: Null pointer dereference 2.18.0 hime-0.9.11/src/util.c:36:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/util.c:63:22: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/util.c:96:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-gtab.c:282:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win-gtab.c:314:40: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win-gtab.c:332:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-gtab.c:430:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win-gtab.c:452:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_OUT [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-gtab.c:465:21: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-gtab.c:498:32: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-gtab.c:525:17: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-gtab.c:61:23: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win-gtab.c:640:55: style: Parameter 'cname' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win-gtab.c:779:9: style: Condition 'gwin_gtab' is always true [knownConditionTrueFalse] 2.18.0 hime-0.9.11/src/win-inmd-switch.c:31:30: style: The statement 'if (current_CS->im_state!=HIME_STATE_CHINESE) current_CS->im_state=HIME_STATE_CHINESE' is logically equivalent to 'current_CS->im_state=HIME_STATE_CHINESE'. [duplicateConditionalAssign] hime-0.9.11/src/win-inmd-switch.c:32:30: note: Assignment 'current_CS->im_state=HIME_STATE_CHINESE' hime-0.9.11/src/win-inmd-switch.c:31:30: note: Condition 'current_CS->im_state!=HIME_STATE_CHINESE' is redundant 2.18.0 hime-0.9.11/src/win-inmd-switch.c:74:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-inmd-switch.c:87:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-kbm.c:182:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-kbm.c:186:27: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-kbm.c:189:25: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win-kbm.c:193:25: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win-kbm.c:200:28: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-kbm.c:203:28: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-kbm.c:228:28: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win-kbm.c:261:18: style: Unused variable: r [unusedVariable] 2.18.0 hime-0.9.11/src/win-kbm.c:262:20: style: Unused variable: ori [unusedVariable] 2.18.0 hime-0.9.11/src/win-kbm.c:310:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/win-kbm.c:326:47: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win-kbm.c:339:11: style: Variable 't' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/win-kbm.c:374:19: style: Variable 't' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/win-kbm.c:428:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-kbm.c:466:27: style: Variable 't' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/win-kbm.c:508:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XK_Caps_Lock [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-kbm.c:94:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CurrentTime [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-message.c:109:12: style: Condition 'ox<0' is always true [knownConditionTrueFalse] hime-0.9.11/src/win-message.c:88:15: note: Assignment 'ox=-1', assigned value is -1 hime-0.9.11/src/win-message.c:109:12: note: Condition 'ox<0' is always true 2.18.0 hime-0.9.11/src/win-message.c:119:29: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win-message.c:127:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] 2.18.0 hime-0.9.11/src/win-message.c:34:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-message.c:40:23: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-pho-near.c:103:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win-pho-near.c:142:35: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-pho-near.c:158:32: style: Local variable 'label_pho' shadows outer variable [shadowVariable] hime-0.9.11/src/win-pho-near.c:145:28: note: Shadowed declaration hime-0.9.11/src/win-pho-near.c:158:32: note: Shadow variable 2.18.0 hime-0.9.11/src/win-pho-near.c:162:21: error: Common realloc mistake: 'near_entries' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/win-pho-near.c:95:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-pho.c:111:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-pho.c:138:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win-pho.c:156:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_ETCHED_OUT [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-pho.c:178:32: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-pho.c:192:17: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-pho.c:69:37: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win-save-phrase.c:138:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-save-phrase.c:151:23: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win-save-phrase.c:174:33: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-sym.c:141:9: error: Common realloc mistake: 'syms' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/win-sym.c:361:49: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'button_scroll_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/win-sym.c:494:5: note: You might need to cast the function pointer here hime-0.9.11/src/win-sym.c:361:49: note: Parameter 'widget' can be declared as pointer to const 2.18.0 hime-0.9.11/src/win-sym.c:361:73: style: Parameter 'event' can be declared as pointer to const. However it seems that 'button_scroll_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/win-sym.c:494:5: note: You might need to cast the function pointer here hime-0.9.11/src/win-sym.c:361:73: note: Parameter 'event' can be declared as pointer to const 2.18.0 hime-0.9.11/src/win-sym.c:361:89: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'button_scroll_event' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/win-sym.c:494:5: note: You might need to cast the function pointer here hime-0.9.11/src/win-sym.c:361:89: note: Parameter 'user_data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/win-sym.c:379:95: style: Parameter 'data' can be declared as pointer to const. However it seems that 'mouse_button_callback_up_down' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/win-sym.c:486:5: note: You might need to cast the function pointer here hime-0.9.11/src/win-sym.c:379:95: note: Parameter 'data' can be declared as pointer to const 2.18.0 hime-0.9.11/src/win-sym.c:381:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SCROLL_DOWN [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-sym.c:414:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win-sym.c:419:27: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-sym.c:422:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win-sym.c:431:31: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win-sym.c:474:29: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win-sym.c:485:5: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] 2.18.0 hime-0.9.11/src/win-sym.c:79:5: error: Common realloc mistake: 'pages' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 hime-0.9.11/src/win0.c:133:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win0.c:160:34: style: Parameter 'ch' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win0.c:264:16: style: Local variable 'win_y' shadows outer variable [shadowVariable] hime-0.9.11/src/hime.h:144:19: note: Shadowed declaration hime-0.9.11/src/win0.c:264:16: note: Shadow variable 2.18.0 hime-0.9.11/src/win0.c:264:9: style: Local variable 'win_x' shadows outer variable [shadowVariable] hime-0.9.11/src/hime.h:144:12: note: Shadowed declaration hime-0.9.11/src/win0.c:264:9: note: Shadow variable 2.18.0 hime-0.9.11/src/win0.c:267:17: style: Local variable 'win_yl' shadows outer variable [shadowVariable] hime-0.9.11/src/hime.h:143:20: note: Shadowed declaration hime-0.9.11/src/win0.c:267:17: note: Shadow variable 2.18.0 hime-0.9.11/src/win0.c:267:9: style: Local variable 'win_xl' shadows outer variable [shadowVariable] hime-0.9.11/src/hime.h:143:12: note: Shadowed declaration hime-0.9.11/src/win0.c:267:9: note: Shadow variable 2.18.0 hime-0.9.11/src/win0.c:406:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win0.c:456:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win0.c:473:28: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win0.c:477:17: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 hime-0.9.11/src/win0.c:494:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_CAN_FOCUS [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win1.c:125:27: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 hime-0.9.11/src/win1.c:133:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_IN [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win1.c:255:42: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win1.c:293:11: style: Variable 'sep' can be declared as pointer to const [constVariablePointer] 2.18.0 hime-0.9.11/src/win1.c:427:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 hime-0.9.11/src/win1.c:57:78: style: Parameter 'event' can be declared as pointer to const. However it seems that 'button_scroll_event_tsin' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/win1.c:84:5: note: You might need to cast the function pointer here hime-0.9.11/src/win1.c:57:78: note: Parameter 'event' can be declared as pointer to const 2.18.0 hime-0.9.11/src/win1.c:78:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 hime-0.9.11/src/win1.c:91:71: style: Parameter 'event' can be declared as pointer to const. However it seems that 'mouse_button_callback' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hime-0.9.11/src/win1.c:210:13: note: You might need to cast the function pointer here hime-0.9.11/src/win1.c:91:71: note: Parameter 'event' can be declared as pointer to const DONE