2025-09-17 09:27 ftp://ftp.de.debian.org/debian/pool/main/x/xournal/xournal_0.4.8.2016.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=motif --library=zlib --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.43+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: 3e169d6 (2025-09-15 13:38:15 +0200) count: 101 224 elapsed-time: 2.2 4.5 head-timing-info: old-timing-info: head results: xournal-0.4.8.2016/src/xournal.h:332:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] xournal-0.4.8.2016/src/xournal.h:332:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] xournal-0.4.8.2016/src/ttsubset/list.c:170:18: style: Variable 'c' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/list.c:289:34: style: Parameter 'el' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/list.c:186:11: style: Variable 'c' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/ttsubset/list.c:192:11: style: Variable 'c' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/ttsubset/ttcr.c:313:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/ttcr.c:416:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/ttcr.c:613:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/ttcr.c:713:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nbytes [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/ttcr.c:910:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/ttcr.c:1322:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable newID [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/ttcr.c:1382:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/sft.c:1519:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/sft.c:1578:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/sft.c:1631:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/xo-support.c:66:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/xo-support.c:121:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/xo-support.c:59:10: style: Variable 'elem' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/xo-interface.c:364:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/xo-interface.c:2975:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_TYPE_HINT_DIALOG [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/xo-interface.c:3089:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_TYPE_HINT_DIALOG [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/xo-interface.c:3153:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_TYPE_HINT_DIALOG [valueFlowBailoutIncompleteVar] xournal-0.4.8.2016/src/ttsubset/ttcr.c:506:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] xournal-0.4.8.2016/src/ttsubset/ttcr.c:1006:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] xournal-0.4.8.2016/src/ttsubset/ttcr.c:418:62: error: Resource leak: fd [resourceLeak] xournal-0.4.8.2016/src/ttsubset/ttcr.c:236:17: style: Variable 'll' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/ttcr.c:237:17: style: Variable 'rr' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/ttcr.c:255:14: style: Variable 'endptr' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/ttcr.c:330:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/ttcr.c:893:17: style: Variable 'p' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/ttcr.c:960:41: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/ttcr.c:986:47: style: Parameter 'created' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/ttcr.c:1065:46: style: Parameter 'maxp' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/ttcr.c:1123:50: style: Parameter 'nr' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/ttcr.c:1434:20: style: Variable 'gd' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:946:13: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] xournal-0.4.8.2016/src/ttsubset/sft.c:2515:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] xournal-0.4.8.2016/src/ttsubset/sft.c:2515:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] xournal-0.4.8.2016/src/ttsubset/sft.c:2515:5: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] xournal-0.4.8.2016/src/ttsubset/sft.c:2515:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] xournal-0.4.8.2016/src/ttsubset/sft.c:648:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pa [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:644:16: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:644:16: note: Assignment 'pa=calloc(lastPoint+1,sizeof(struct ControlPoint))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:648:9: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:664:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pa [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:644:16: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:644:16: note: Assignment 'pa=calloc(lastPoint+1,sizeof(struct ControlPoint))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:664:13: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:674:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pa [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:644:16: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:644:16: note: Assignment 'pa=calloc(lastPoint+1,sizeof(struct ControlPoint))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:674:9: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:868:13: warning: If memory allocation fails, then there is a possible null pointer dereference: cp [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:867:38: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:867:38: note: Assignment 'cp=malloc(sizeof(struct ControlPoint))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:868:13: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:870:13: warning: If memory allocation fails, then there is a possible null pointer dereference: cp [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:867:38: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:867:38: note: Assignment 'cp=malloc(sizeof(struct ControlPoint))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:870:13: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:872:13: warning: If memory allocation fails, then there is a possible null pointer dereference: cp [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:867:38: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:867:38: note: Assignment 'cp=malloc(sizeof(struct ControlPoint))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:872:13: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:1128:14: warning: If memory allocation fails, then there is a possible null pointer dereference: *ucs2result [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:1126:33: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:1126:33: note: Assignment '*ucs2result=malloc(len+2)', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:1127:27: note: Assuming condition is false xournal-0.4.8.2016/src/ttsubset/sft.c:1128:14: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:2949:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assignment 'rec=calloc(n,sizeof(struct NameRecord))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:2949:9: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:2950:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assignment 'rec=calloc(n,sizeof(struct NameRecord))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:2950:9: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:2951:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assignment 'rec=calloc(n,sizeof(struct NameRecord))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:2951:9: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:2952:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assignment 'rec=calloc(n,sizeof(struct NameRecord))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:2952:9: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:2953:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assignment 'rec=calloc(n,sizeof(struct NameRecord))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:2953:9: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:2954:13: warning: If memory allocation fails, then there is a possible null pointer dereference: rec [nullPointerOutOfMemory] xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assuming allocation function fails xournal-0.4.8.2016/src/ttsubset/sft.c:2946:17: note: Assignment 'rec=calloc(n,sizeof(struct NameRecord))', assigned value is 0 xournal-0.4.8.2016/src/ttsubset/sft.c:2954:13: note: Null pointer dereference xournal-0.4.8.2016/src/ttsubset/sft.c:1806:12: style: The comparison 'fd != -1' is always false. [knownConditionTrueFalse] xournal-0.4.8.2016/src/ttsubset/sft.c:1646:23: note: 'fd' is assigned value '-1' here. xournal-0.4.8.2016/src/ttsubset/sft.c:1806:12: note: The comparison 'fd != -1' is always false. xournal-0.4.8.2016/src/ttsubset/sft.c:2412:17: style: Local variable 'len' shadows outer variable [shadowVariable] xournal-0.4.8.2016/src/ttsubset/sft.c:2395:24: note: Shadowed declaration xournal-0.4.8.2016/src/ttsubset/sft.c:2412:17: note: Shadow variable xournal-0.4.8.2016/src/ttsubset/sft.c:562:13: style: Variable 'table' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:596:21: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:911:13: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:1140:29: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:1192:15: style: Variable 'pReverse' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:1321:37: style: Parameter 'ar' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:1352:15: style: Variable 'glyphIndexArray' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:1522:57: style: Parameter 'glyphs' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:1648:13: style: Variable 'table' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:1886:13: style: Variable 'table' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2044:43: style: Parameter 'glyphArray' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2045:44: style: Parameter 'encoding' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2197:43: style: Parameter 'glyphArray' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2198:44: style: Parameter 'encoding' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2354:13: style: Variable 'loca' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2397:12: style: Variable 'pad' can be declared as const array [constVariable] xournal-0.4.8.2016/src/ttsubset/sft.c:2417:21: style: Variable 'glyf' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2449:13: style: Variable 'headP' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2647:75: style: Parameter 'glyphArray' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2649:13: style: Variable 'table' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2718:13: style: Variable 'table' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2817:21: style: Variable 'table' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2879:13: style: Variable 'hmtx' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2880:13: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2977:52: style: Parameter 'hmtx' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2977:66: style: Parameter 'vmtx' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:2977:127: style: Parameter 'glyphArray' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:3029:37: style: Parameter 'hmtx' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:3029:51: style: Parameter 'vmtx' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:3069:39: style: Parameter 'kern' can be declared as pointer to const [constParameterPointer] xournal-0.4.8.2016/src/ttsubset/sft.c:710:16: style: Variable 'a' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/ttsubset/sft.c:710:29: style: Variable 'b' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/ttsubset/sft.c:710:36: style: Variable 'c' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/ttsubset/sft.c:710:43: style: Variable 'd' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/ttsubset/sft.c:719:27: style: Variable 'numberOfContours' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/ttsubset/sft.c:944:27: style: Variable 'glyphlistFlag' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/ttsubset/sft.c:1370:21: style: Variable 'glyphIndexArray' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/ttsubset/sft.c:2841:16: style: Variable 's' is assigned a value that is never used. [unreadVariable] xournal-0.4.8.2016/src/xo-interface.c:367:14: 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] xournal-0.4.8.2016/src/xo-interface.c:2007:11: 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] xournal-0.4.8.2016/src/xo-interface.c:2980:11: 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] xournal-0.4.8.2016/src/xo-interface.c:2999:11: 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] xournal-0.4.8.2016/src/xo-interface.c:3158:11: 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] xournal-0.4.8.2016/src/xo-interface.c:3163:11: 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] xournal-0.4.8.2016/src/xo-interface.c:1626:25: style: Variable 'tmp_toolbar_icon_size' is reassigned a value before the old one has been used. [redundantAssignment] xournal-0.4.8.2016/src/xo-interface.c:1493:25: note: tmp_toolbar_icon_size is assigned xournal-0.4.8.2016/src/xo-interface.c:1626:25: note: tmp_toolbar_icon_size is overwritten diff: 2.18.0 xournal-0.4.8.2016/src/main.c:363:46: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE is a macro then please configure it. [unknownMacro] 2.18.0 xournal-0.4.8.2016/src/xo-callbacks.c:2336:56: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] 2.18.0 xournal-0.4.8.2016/src/xo-clipboard.c:189:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-clipboard.c:193:1: error: Memory leak: sel.text_data [memleak] 2.18.0 xournal-0.4.8.2016/src/xo-clipboard.c:202:11: style: Variable 'pf' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-clipboard.c:254:12: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] 2.18.0 xournal-0.4.8.2016/src/xo-clipboard.c:400:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-file.c:171:28: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] 2.18.0 xournal-0.4.8.2016/src/xo-image.c:100:20: style: Unused variable: canvas_item [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-image.c:101:12: style: Unused variable: color [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-image.c:107:10: style: Variable 'scale' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-image.c:107:15: style: Variable 'scale' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-image.c:111:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-image.c:44:58: style: Parameter 'pt' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-image.c:99:18: style: Unused variable: buffer [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1129:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ruler [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1145:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ruler [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1211:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable thickness_no [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1237:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable thickness_no [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1265:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable thickness_no [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:151:16: style: Variable 'tmppage' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1523:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_CAN_FOCUS [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1697:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable color_no [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1721:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1727:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_RADIO_MENU_ITEM [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1768:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_RADIO_MENU_ITEM [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1810:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_RADIO_MENU_ITEM [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1897:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:1982:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable canvas_item [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2109:29: style: Parameter 'order' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2132:16: style: Variable 'it' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2242:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Up [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2293:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable glib_minor_version [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2343:45: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2343:63: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2344:45: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2349:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2403:44: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2403:61: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2421:60: style: Parameter 'ev' can be declared as pointer to const. However it seems that 'intercept_activate_events' is a callback function, if 'ev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xournal-0.4.8.2016/src/xo-misc.c:2450:5: note: You might need to cast the function pointer here xournal-0.4.8.2016/src/xo-misc.c:2421:60: note: Parameter 'ev' can be declared as pointer to const 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2432:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2466:17: style: Variable 'src' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2510:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_FORMAT_ARGB32 [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:2554:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_MODE_DISABLED [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:485:11: style: Variable 'axes' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:485:27: style: Unused variable: axis_width [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:486:14: style: Variable 'device' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:489:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:490:10: style: Variable 'axes' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:493:12: style: Variable 'device' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:496:10: style: Variable 'axes' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:499:12: style: Variable 'device' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:547:11: style: Variable 'axes' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:551:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_MOTION_NOTIFY [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:62:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:632:14: style: Unused variable: dialog [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:639:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CAP_ROUND [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:729:14: style: Unused variable: scaled_pix [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:732:10: style: Unused variable: h [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:732:7: style: Unused variable: w [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:823:18: style: Variable 'adj' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:84:50: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 xournal-0.4.8.2016/src/xo-misc.c:86:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:115:14: style: Unused variable: source [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:115:23: style: Unused variable: mask [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:116:12: style: Variable 'fg' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:116:15: style: Variable 'fg' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:116:31: style: Variable 'bg' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:116:34: style: Variable 'bg' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:119:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:153:39: style: Parameter 'pt' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:155:12: style: Unused variable: in_range_x [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:155:24: style: Unused variable: in_range_y [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:176:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_TOP_LEFT_CORNER [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:239:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CAP_ROUND [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:296:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CAP_ROUND [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:39:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WATCH [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:546:16: style: Variable 'w' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:593:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_SCALE [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:61:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_PENCIL [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:700:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_SCALE [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:712:10: style: Variable 'pagelist' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:712:21: style: Variable 'layerlist' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-paint.c:89:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1107:10: style: Unused variable: list [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1127:88: style: Parameter 'end_layer' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1188:25: style: Variable 'old_thickness' is reassigned a value before the old one has been used. [redundantAssignment] xournal-0.4.8.2016/src/xo-print.c:1181:23: note: old_thickness is assigned xournal-0.4.8.2016/src/xo-print.c:1188:25: note: old_thickness is overwritten 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1212:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PANGO_SCALE [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1326:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_NUMERIC [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1577:14: style: Unused variable: pix [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1578:14: style: Unused variable: pgpdf [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1580:20: style: Unused variable: cr_pixbuf [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1640:115: style: Parameter 'end_layer' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1655:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_LINE_JOIN_ROUND [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:1768:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CAIRO_STATUS_SUCCESS [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:328:58: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:355:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:545:3: warning: Return value of function deflateInit() is not used. [ignoredReturnValue] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:551:3: warning: Return value of function deflate() is not used. [ignoredReturnValue] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:620:34: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:620:52: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:67:32: style: Parameter 'eof' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:698:45: style: Parameter 'pg' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:732:14: style: Unused variable: pgpdf [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:736:15: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:747:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:799:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_COLORSPACE_RGB [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-print.c:916:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_STYLE_FLAG_ITALIC [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-selection.c:175:54: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-selection.c:205:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ArtVpath [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-selection.c:400:16: style: Variable 'tmppage' can be declared as pointer to const [constVariablePointer] 2.18.0 xournal-0.4.8.2016/src/xo-selection.c:408:24: style: The if condition is the same as the previous if condition [duplicateCondition] xournal-0.4.8.2016/src/xo-selection.c:405:24: note: First condition xournal-0.4.8.2016/src/xo-selection.c:408:24: note: Second condition 2.18.0 xournal-0.4.8.2016/src/xo-selection.c:453:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable layers [valueFlowBailoutIncompleteVar] 2.18.0 xournal-0.4.8.2016/src/xo-selection.c:46:14: style: Variable 'dashlen[0]' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-selection.c:46:27: style: Variable 'dashlen[1]' is assigned a value that is never used. [unreadVariable] 2.18.0 xournal-0.4.8.2016/src/xo-selection.c:558:16: style: Unused variable: item [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-shapes.c:222:75: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-shapes.c:248:69: style: Parameter 's' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-shapes.c:269:16: style: Unused variable: item [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-shapes.c:270:27: style: Unused variable: erasure [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-shapes.c:282:42: style: Parameter 'r1' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-shapes.c:282:66: style: Parameter 'r2' can be declared as pointer to const [constParameterPointer] 2.18.0 xournal-0.4.8.2016/src/xo-shapes.c:324:7: style: Unused variable: i [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-shapes.c:401:33: style: Unused variable: tmp [unusedVariable] 2.18.0 xournal-0.4.8.2016/src/xo-shapes.c:54:27: style: Parameter 'pt' can be declared as pointer to const [constParameterPointer] head xournal-0.4.8.2016/src/xournal.h:332:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head xournal-0.4.8.2016/src/xournal.h:332:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] DONE