2024-03-27 15:22 ftp://ftp.de.debian.org/debian/pool/main/k/kwin-effect-xrdesktop/kwin-effect-xrdesktop_0.15.1.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 0ead589 (2024-03-27 16:22:24 +0100) count: 31 31 elapsed-time: 0.1 0.1 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.024328s (avg. 0.024328s - 1 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.00887s (avg. 0.00887s - 1 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.007646s (avg. 0.007646s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.00667s (avg. 0.003335s - 2 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.006349s (avg. 0.0031745s - 2 result(s)) Overall time: 0.063538s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.016945s (avg. 0.016945s - 1 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.008664s (avg. 0.008664s - 1 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.007031s (avg. 0.007031s - 1 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.004864s (avg. 0.002432s - 2 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.00469s (avg. 0.00469s - 1 result(s)) Overall time: 0.053935s head results: kwin-effect-xrdesktop-0.15.1/src/kcm/vrmirror_config.h:25:8: error: There is an unknown macro here somewhere. Configuration is required. If Q_SLOTS is a macro then please configure it. [unknownMacro] kwin-effect-xrdesktop-0.15.1/src/VRMirror.cpp:185:39: error: syntax error: keyword 'return' is not allowed in global scope [syntaxError] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:67:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::isNull' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:339:17: note: Technically the member function 'KWin::GLTexture::isNull' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:67:10: note: Technically the member function 'KWin::GLTexture::isNull' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:68:11: performance:inconclusive: Technically the member function 'KWin::GLTexture::size' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:345:18: note: Technically the member function 'KWin::GLTexture::size' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:68:11: note: Technically the member function 'KWin::GLTexture::size' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:69:9: performance:inconclusive: Technically the member function 'KWin::GLTexture::width' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:646:16: note: Technically the member function 'KWin::GLTexture::width' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:69:9: note: Technically the member function 'KWin::GLTexture::width' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:70:9: performance:inconclusive: Technically the member function 'KWin::GLTexture::height' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:652:16: note: Technically the member function 'KWin::GLTexture::height' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:70:9: note: Technically the member function 'KWin::GLTexture::height' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:74:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::isYInverted' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:618:17: note: Technically the member function 'KWin::GLTexture::isYInverted' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:74:10: note: Technically the member function 'KWin::GLTexture::isYInverted' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:78:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::setYInverted' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:624:17: note: Technically the member function 'KWin::GLTexture::setYInverted' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:78:10: note: Technically the member function 'KWin::GLTexture::setYInverted' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:89:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::setSwizzle' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:631:17: note: Technically the member function 'KWin::GLTexture::setSwizzle' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:89:10: note: Technically the member function 'KWin::GLTexture::setSwizzle' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:97:16: performance:inconclusive: Technically the member function 'KWin::GLTexture::matrix' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:658:23: note: Technically the member function 'KWin::GLTexture::matrix' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:97:16: note: Technically the member function 'KWin::GLTexture::matrix' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:101:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::bind' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:410:17: note: Technically the member function 'KWin::GLTexture::bind' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:101:10: note: Technically the member function 'KWin::GLTexture::bind' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:102:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::unbind' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:465:17: note: Technically the member function 'KWin::GLTexture::unbind' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:102:10: note: Technically the member function 'KWin::GLTexture::unbind' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:105:12: performance:inconclusive: Technically the member function 'KWin::GLTexture::texture' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:507:19: note: Technically the member function 'KWin::GLTexture::texture' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:105:12: note: Technically the member function 'KWin::GLTexture::texture' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:106:12: performance:inconclusive: Technically the member function 'KWin::GLTexture::target' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:513:19: note: Technically the member function 'KWin::GLTexture::target' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:106:12: note: Technically the member function 'KWin::GLTexture::target' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:107:12: performance:inconclusive: Technically the member function 'KWin::GLTexture::filter' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:519:19: note: Technically the member function 'KWin::GLTexture::filter' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:107:12: note: Technically the member function 'KWin::GLTexture::filter' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:108:12: performance:inconclusive: Technically the member function 'KWin::GLTexture::internalFormat' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:525:19: note: Technically the member function 'KWin::GLTexture::internalFormat' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:108:12: note: Technically the member function 'KWin::GLTexture::internalFormat' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:115:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::isDirty' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:564:17: note: Technically the member function 'KWin::GLTexture::isDirty' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:115:10: note: Technically the member function 'KWin::GLTexture::isDirty' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:116:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::setFilter' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:570:17: note: Technically the member function 'KWin::GLTexture::setFilter' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:116:10: note: Technically the member function 'KWin::GLTexture::setFilter' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:117:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::setWrapMode' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:579:17: note: Technically the member function 'KWin::GLTexture::setWrapMode' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:117:10: note: Technically the member function 'KWin::GLTexture::setWrapMode' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:118:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::setDirty' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:593:17: note: Technically the member function 'KWin::GLTexture::setDirty' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:118:10: note: Technically the member function 'KWin::GLTexture::setDirty' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:120:10: performance:inconclusive: Technically the member function 'KWin::GLTexture::generateMipmaps' can be static (but you may consider moving to unnamed namespace). [functionStatic] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:457:17: note: Technically the member function 'KWin::GLTexture::generateMipmaps' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:120:10: note: Technically the member function 'KWin::GLTexture::generateMipmaps' can be static (but you may consider moving to unnamed namespace). kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:144:5: style: Class 'GLTexture' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:637:65: style: C-style pointer casting [cstyleCast] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:104:20: style: Local variable 'internalFormat' shadows outer function [shadowFunction] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:108:12: note: Shadowed declaration kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:104:20: note: Shadow variable kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:136:16: style: Local variable 'internalFormat' shadows outer function [shadowFunction] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:108:12: note: Shadowed declaration kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:136:16: note: Shadow variable kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:104:20: style: Local variable 'internalFormat' shadows outer variable [shadowVariable] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:104:20: note: Shadowed declaration kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:104:20: note: Shadow variable kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:105:20: style: Local variable 'format' shadows outer variable [shadowVariable] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:105:20: note: Shadowed declaration kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:105:20: note: Shadow variable kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:106:20: style: Local variable 'type' shadows outer variable [shadowVariable] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:106:20: note: Shadowed declaration kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:106:20: note: Shadow variable kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:360:9: style: Local variable 'width' shadows outer function [shadowFunction] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:69:9: note: Shadowed declaration kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:360:9: note: Shadow variable kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:361:9: style: Local variable 'height' shadows outer function [shadowFunction] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:70:9: note: Shadowed declaration kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:361:9: note: Shadow variable kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:546:23: style: Local variable 'size' shadows outer function [shadowFunction] kwin-effect-xrdesktop-0.15.1/src/kwingltexture.h:68:11: note: Shadowed declaration kwin-effect-xrdesktop-0.15.1/src/kwingltexture.cpp:546:23: note: Shadow variable diff: DONE