2026-05-05 22:22 ftp://ftp.de.debian.org/debian/pool/main/x/xorg-gtest/xorg-gtest_0.7.1.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=googletest --library=motif --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 -j1 platform: Linux-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 95 95 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: xorg-gtest-0.7.1/examples/xorg-gtest-environment-example.cpp:38:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/examples/xorg-gtest-environment-example.cpp:46:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/examples/xorg-gtest-environment-example.cpp:55:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/examples/xorg-gtest-environment-example.cpp:68:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/examples/xorg-gtest-environment-example.cpp:78:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/examples/xorg-gtest-environment-example.cpp:100:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/examples/xorg-gtest-example.cpp:26:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/examples/xorg-gtest-example.cpp:43:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/examples/xorg-gtest-example.cpp:69:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/examples/xorg-gtest-example.cpp:55:1: error: Resource leak: dpy [resourceLeak] xorg-gtest-0.7.1/examples/xorg-gtest-example.cpp:47:12: style: Variable 'dpy' can be declared as pointer to const [constVariablePointer] xorg-gtest-0.7.1/gtest/src/gtest-all.cc:4849:12: error: There is an unknown macro here somewhere. Configuration is required. If GTEST_NAME_ is a macro then please configure it. [unknownMacro] xorg-gtest-0.7.1/gtest/src/gtest_main.cc:35:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/device.cpp:73:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/device.cpp:102:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/device.cpp:122:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/device.cpp:161:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/device.cpp:213:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/device.cpp:227:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/device.cpp:242:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device_node [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/device.cpp:246:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/device.cpp:45:3: warning: Member variable 'Private::ctime' is not initialized in the constructor. [uninitMemberVar] xorg-gtest-0.7.1/src/environment.cpp:74:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_to_log_file [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/environment.cpp:79:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_to_log_file [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/environment.cpp:84:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_to_conf [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/environment.cpp:89:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_to_conf [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/environment.cpp:94:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_to_server [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/environment.cpp:99:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_to_server [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/environment.cpp:104:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/environment.cpp:108:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/environment.cpp:159:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/process.cpp:50:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pid [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/process.cpp:55:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable state [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/process.cpp:70:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pid [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/process.cpp:94:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pid [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/process.cpp:154:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/process.cpp:202:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pid [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/process.cpp:253:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pid [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/process.cpp:105:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xorg-gtest-0.7.1/src/process.cpp:108:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] xorg-gtest-0.7.1/src/process.cpp:160:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xorg-gtest-0.7.1/src/process.cpp:168:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xorg-gtest-0.7.1/src/process.cpp:114:47: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] xorg-gtest-0.7.1/src/test.cpp:41:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/test.cpp:52:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/test.cpp:65:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/test.cpp:71:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/test.cpp:75:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display_string [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xorg-gtest_main.cpp:116:60: error: There is an unknown macro here somewhere. Configuration is required. If LOGFILE_DIR is a macro then please configure it. [unknownMacro] xorg-gtest-0.7.1/src/xserver.cpp:65:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display_number [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:76:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display_number [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:84:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display_number [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:88:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable display_string [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:92:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path_to_server [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:139:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Success [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:187:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable deviceid [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:234:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable deviceid [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:268:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XIAllDevices [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:337:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable options [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:369:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable version [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:477:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:556:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:568:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:577:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TERMINATED [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:582:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable options [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:590:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable options [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:594:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable options [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/src/xserver.cpp:334:5: error: Resource leak: test_display [resourceLeak] xorg-gtest-0.7.1/src/xserver.cpp:374:15: style: The scope of the variable 'prefix' can be reduced. [variableScope] xorg-gtest-0.7.1/src/xserver.cpp:466:28: style: The scope of the variable 'args' can be reduced. [variableScope] xorg-gtest-0.7.1/src/xserver.cpp:397:56: style: Parameter 'err' can be declared as pointer to const. However it seems that '_x_error_handler' is a callback function, if 'err' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xorg-gtest-0.7.1/src/xserver.cpp:459:22: note: You might need to cast the function pointer here xorg-gtest-0.7.1/src/xserver.cpp:397:56: note: Parameter 'err' can be declared as pointer to const xorg-gtest-0.7.1/src/xserver.cpp:432:41: style: Parameter 'dpy' can be declared as pointer to const. However it seems that '_x_io_error_handler' is a callback function, if 'dpy' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xorg-gtest-0.7.1/src/xserver.cpp:446:22: note: You might need to cast the function pointer here xorg-gtest-0.7.1/src/xserver.cpp:432:41: note: Parameter 'dpy' can be declared as pointer to const xorg-gtest-0.7.1/src/xserver.cpp:512:61: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] xorg-gtest-0.7.1/test/process-test-helper.cpp:6:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/process-test.cpp:381:25: error: syntax error [syntaxError] xorg-gtest-0.7.1/test/xserver-test.cpp:17:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:67:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:93:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable deviceid [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:108:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:203:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:227:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:252:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BadColor [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:270:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:307:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:366:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGFILE_DIR [valueFlowBailoutIncompleteVar] xorg-gtest-0.7.1/test/xserver-test.cpp:36:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xorg-gtest-0.7.1/test/xserver-test.cpp:355:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xorg-gtest-0.7.1/test/xserver-test.cpp:370:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] xorg-gtest-0.7.1/test/xserver-test.cpp:316:5: error: Resource leak: dpy [resourceLeak] xorg-gtest-0.7.1/test/xserver-test.cpp:318:5: error: Resource leak: dpy [resourceLeak] xorg-gtest-0.7.1/test/xserver-test.cpp:323:5: error: Resource leak: dpy [resourceLeak] xorg-gtest-0.7.1/test/xserver-test.cpp:324:5: error: Resource leak: dpy [resourceLeak] xorg-gtest-0.7.1/test/xserver-test.cpp:324:5: error: Memory leak: buffer [memleak] xorg-gtest-0.7.1/test/xserver-test.cpp:250:59: style: Parameter 'error' can be declared as pointer to const. However it seems that '_test_error_handler' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] xorg-gtest-0.7.1/test/xserver-test.cpp:267:36: note: You might need to cast the function pointer here xorg-gtest-0.7.1/test/xserver-test.cpp:250:59: note: Parameter 'error' can be declared as pointer to const xorg-gtest-0.7.1/test/xserver-test.cpp:312:16: style: Variable 'dpy' can be declared as pointer to const [constVariablePointer] diff: DONE