2026-05-27 18:06 ftp://ftp.de.debian.org/debian/pool/main/l/lxrandr/lxrandr_0.3.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -j8 platform: Linux-7.0.9-1-MANJARO-x86_64-with-glibc2.43 python: 3.14.5 client-version: 1.4.0 compiler: g++ (GCC) 16.1.1 20260430 cppcheck: head 2.20.0 head-info: 6e46c6ba (2026-05-27 18:39:55 +0200) count: 16 1 elapsed-time: 0.3 0.0 head-timing-info: old-timing-info: head results: lxrandr-0.3.3/src/lxrandr.c:122:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] lxrandr-0.3.3/src/lxrandr.c:366:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] lxrandr-0.3.3/src/lxrandr.c:573:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] lxrandr-0.3.3/src/lxrandr.c:595:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] lxrandr-0.3.3/src/lxrandr.c:717:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] lxrandr-0.3.3/src/lxrandr.c:780:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_OK [valueFlowBailoutIncompleteVar] lxrandr-0.3.3/src/lxrandr.c:563:5: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] lxrandr-0.3.3/src/lxrandr.c:176:29: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] lxrandr-0.3.3/src/lxrandr.c:235:31: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] lxrandr-0.3.3/src/lxrandr.c:819: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] lxrandr-0.3.3/src/lxrandr.c:853: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] lxrandr-0.3.3/src/lxrandr.c:907: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] lxrandr-0.3.3/src/lxrandr.c:306:18: style: Local variable 'm' shadows outer argument [shadowArgument] lxrandr-0.3.3/src/lxrandr.c:292:61: note: Shadowed argument lxrandr-0.3.3/src/lxrandr.c:306:18: note: Shadow local variable lxrandr-0.3.3/src/lxrandr.c:86:54: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] lxrandr-0.3.3/src/lxrandr.c:494:26: style: Variable 'first' can be declared as pointer to const [constVariablePointer] lxrandr-0.3.3/src/lxrandr.c:658:55: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_quick_option' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lxrandr-0.3.3/src/lxrandr.c:843:9: note: You might need to cast the function pointer here lxrandr-0.3.3/src/lxrandr.c:658:55: note: Parameter 'data' can be declared as pointer to const diff: head lxrandr-0.3.3/src/lxrandr.c:122:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] head lxrandr-0.3.3/src/lxrandr.c:176:29: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] 2.20.0 lxrandr-0.3.3/src/lxrandr.c:231:65: error: There is an unknown macro here somewhere. Configuration is required. If G_GUINT64_FORMAT is a macro then please configure it. [unknownMacro] head lxrandr-0.3.3/src/lxrandr.c:235:31: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] head lxrandr-0.3.3/src/lxrandr.c:306:18: style: Local variable 'm' shadows outer argument [shadowArgument] lxrandr-0.3.3/src/lxrandr.c:292:61: note: Shadowed argument lxrandr-0.3.3/src/lxrandr.c:306:18: note: Shadow local variable head lxrandr-0.3.3/src/lxrandr.c:366:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] head lxrandr-0.3.3/src/lxrandr.c:494:26: style: Variable 'first' can be declared as pointer to const [constVariablePointer] head lxrandr-0.3.3/src/lxrandr.c:563:5: warning: Return value of function g_file_set_contents() is not used. [ignoredReturnValue] head lxrandr-0.3.3/src/lxrandr.c:573:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] head lxrandr-0.3.3/src/lxrandr.c:595:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] head lxrandr-0.3.3/src/lxrandr.c:658:55: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_quick_option' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] lxrandr-0.3.3/src/lxrandr.c:843:9: note: You might need to cast the function pointer here lxrandr-0.3.3/src/lxrandr.c:658:55: note: Parameter 'data' can be declared as pointer to const head lxrandr-0.3.3/src/lxrandr.c:717:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] head lxrandr-0.3.3/src/lxrandr.c:780:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_BUTTONS_OK [valueFlowBailoutIncompleteVar] head lxrandr-0.3.3/src/lxrandr.c:819: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] head lxrandr-0.3.3/src/lxrandr.c:853: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] head lxrandr-0.3.3/src/lxrandr.c:86:54: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] head lxrandr-0.3.3/src/lxrandr.c:907: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] DONE