qt5-qtdeclarative-5.15.14-1.fc41
List of Defects
Error: CLANG_WARNING: [#def1]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/openglunderqml/squircle.cpp:139:31: warning[deadcode.DeadStores]: Value stored to 'rif' during its initialization is never read
# 137| {
# 138| if (!m_program) {
# 139|-> QSGRendererInterface *rif = m_window->rendererInterface();
# 140| Q_ASSERT(rif->graphicsApi() == QSGRendererInterface::OpenGL || rif->graphicsApi() == QSGRendererInterface::OpenGLRhi);
# 141|
Error: COMPILER_WARNING (CWE-477): [#def2]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/sgengine/window.cpp: scope_hint: In member function ‘void Window::initialize()’
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/sgengine/window.cpp:222:27: warning[-Wdeprecated-declarations]: ‘void QSGEngine::initialize(QOpenGLContext*)’ is deprecated: QSGEngine is going to be removed in Qt 6.0. Use QQuickRenderControl instead.
# 222 | m_sgEngine->initialize(m_context.data());
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/qsgengine.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/QSGEngine:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/sgengine/window.cpp:55: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgengine.h:76:10: note: declared here
# 76 | void initialize(QOpenGLContext *context);
# | ^~~~~~~~~~
# 220| void Window::initialize()
# 221| {
# 222|-> m_sgEngine->initialize(m_context.data());
# 223| m_sgRenderer.reset(m_sgEngine->createRenderer());
# 224| m_sgRenderer->setRootNode(m_sgRootNode.data());
Error: COMPILER_WARNING (CWE-477): [#def3]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/sgengine/window.cpp:224:30: warning[-Wdeprecated-declarations]: ‘void QSGAbstractRenderer::setRootNode(QSGRootNode*)’ is deprecated: QSGAbstractRenderer is no longer going to be public in Qt 6.0. QSGEngine-based workflows are expected to migrate to QQuickRenderControl instead.
# 224 | m_sgRenderer->setRootNode(m_sgRootNode.data());
# | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/qsgabstractrenderer.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/QSGAbstractRenderer:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/sgengine/window.cpp:54: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/coreapi/qsgabstractrenderer.h:81:10: note: declared here
# 81 | void setRootNode(QSGRootNode *node);
# | ^~~~~~~~~~~
# 222| m_sgEngine->initialize(m_context.data());
# 223| m_sgRenderer.reset(m_sgEngine->createRenderer());
# 224|-> m_sgRenderer->setRootNode(m_sgRootNode.data());
# 225| m_sgRenderer->setClearColor(QColor(32, 32, 32));
# 226|
Error: COMPILER_WARNING (CWE-477): [#def4]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/textureinthread/threadrenderer.cpp: scope_hint: In constructor ‘TextureNode::TextureNode(QQuickWindow*)’
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/textureinthread/threadrenderer.cpp:163:50: warning[-Wdeprecated-declarations]: ‘QSGTexture* QQuickWindow::createTextureFromId(uint, const QSize&, CreateTextureOptions) const’ is deprecated: Use createTextureFromNativeObject() instead
# 163 | m_texture = m_window->createTextureFromId(0, QSize(1, 1));
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/qquickwindow.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/QQuickWindow:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/textureinthread/threadrenderer.cpp:62: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquickwindow.h:163:17: note: declared here
# 163 | QSGTexture *createTextureFromId(uint id, const QSize &size, CreateTextureOptions options = CreateTextureOption()) const;
# | ^~~~~~~~~~~~~~~~~~~
# 161| {
# 162| // Our texture node must have a texture, so use the default 0 texture.
# 163|-> m_texture = m_window->createTextureFromId(0, QSize(1, 1));
# 164| setTexture(m_texture);
# 165| setFiltering(QSGTexture::Linear);
Error: COMPILER_WARNING (CWE-477): [#def5]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/textureinthread/threadrenderer.cpp: scope_hint: In member function ‘void TextureNode::prepareNode()’
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/textureinthread/threadrenderer.cpp:204:54: warning[-Wdeprecated-declarations]: ‘QSGTexture* QQuickWindow::createTextureFromId(uint, const QSize&, CreateTextureOptions) const’ is deprecated: Use createTextureFromNativeObject() instead
# 204 | m_texture = m_window->createTextureFromId(newId, size);
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquickwindow.h:163:17: note: declared here
# 163 | QSGTexture *createTextureFromId(uint id, const QSize &size, CreateTextureOptions options = CreateTextureOption()) const;
# | ^~~~~~~~~~~~~~~~~~~
# 202| // note: include QQuickWindow::TextureHasAlphaChannel if the rendered content
# 203| // has alpha.
# 204|-> m_texture = m_window->createTextureFromId(newId, size);
# 205| setTexture(m_texture);
# 206|
Error: CLANG_WARNING: [#def6]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/vulkanunderqml/vulkansquircle.cpp:204:27: warning[deadcode.DeadStores]: Value stored to 'rif' during its initialization is never read
# 202| void SquircleRenderer::frameStart()
# 203| {
# 204|-> QSGRendererInterface *rif = m_window->rendererInterface();
# 205|
# 206| // We are not prepared for anything other than running with the RHI and its Vulkan backend.
Error: CLANG_WARNING: [#def7]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/3rdparty/masm/yarr/YarrPattern.cpp:1450:13: warning[deadcode.DeadStores]: Value stored to 'printSeperator' is never read
# 1448| out.print("|");
# 1449| out.print("sticky");
# 1450|-> printSeperator = true;
# 1451| }
# 1452| out.print(")");
Error: CLANG_WARNING: [#def8]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/imports/folderlistmodel/qquickfolderlistmodel.cpp:175:17: warning[deadcode.DeadStores]: Value stored to 'toIndex' is never read
# 173| if (list.size() > 0) {
# 174| if (toIndex > list.size() - 1)
# 175|-> toIndex = list.size() - 1;
# 176| q->beginInsertRows(parent, 0, data.size() - 1);
# 177| q->endInsertRows();
Error: CLANG_WARNING: [#def9]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/imports/sharedimage/qsharedimageloader.cpp:207:9: warning[deadcode.DeadStores]: Value stored to 'locked' is never read
# 205| return nil;
# 206| }
# 207|-> locked = true;
# 208| }
# 209|
Error: CLANG_WARNING: [#def10]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/particles/qquickcustomparticle.cpp:384:26: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'material'
# 382| }
# 383|
# 384|-> NodeHashConstIt it = m_nodes.cbegin();
# 385| rootNode = it.value();
# 386| rootNode->setFlag(QSGNode::OwnsMaterial, true);
Error: CLANG_WARNING: [#def11]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/particles/qquickparticlesystem.cpp:778:5: warning[deadcode.DeadStores]: Value stored to 'cleared' is never read
# 776| cleared += m_emitters.removeAll(nullptr);
# 777| cleared += m_painters.removeAll(nullptr);
# 778|-> cleared += m_affectors.removeAll(nullptr);
# 779|
# 780| bySysIdx.resize(0);
Error: CLANG_WARNING: [#def12]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/particles/qquickspritegoal.cpp:99:25: warning[core.CallAndMessage]: Called C++ object pointer is null
# 97| }else{
# 98| m_lastEngine = e;
# 99|-> for (int i=0; i<e->stateCount(); i++){
# 100| if (e->state(i)->name() == m_goalState){
# 101| m_goalIdx = i;
Error: CLANG_WARNING: [#def13]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/particles/qquickspritegoal.cpp:146:15: warning[core.CallAndMessage]: Called C++ object pointer is null
# 144| //TODO: It's possible to move to a group that is intermediate and not used by painters or emitters - but right now that will redirect to the default group
# 145| m_system->moveGroups(d, m_goalIdx);
# 146|-> }else if (engine->curState(index) != m_goalIdx){
# 147| engine->setGoal(m_goalIdx, index, m_jump);
# 148| return true; //Doesn't affect particle data, but necessary for onceOff
Error: CLANG_WARNING: [#def14]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/plugins/qmltooling/qmldbg_inspector/highlight.cpp:82:26: warning[core.CallAndMessage]: Called C++ object pointer is null
# 80| connect(item, &QQuickItem::transformOriginChanged, this, &Highlight::adjust);
# 81| }
# 82|-> QQuickWindow *view = item->window();
# 83| QQuickItem * contentItem = view->contentItem();
# 84| if (contentItem) {
Error: CLANG_WARNING: [#def15]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/plugins/qmltooling/qmldbg_preview/qqmlpreviewhandler.cpp:126:16: warning[deadcode.DeadStores]: Value stored to 'found' during its initialization is never read
# 124| void QQmlPreviewHandler::removeEngine(QQmlEngine *qmlEngine)
# 125| {
# 126|-> const bool found = m_engines.removeOne(qmlEngine);
# 127| Q_ASSERT(found);
# 128| for (QObject *obj : m_createdObjects)
Error: CLANG_WARNING: [#def16]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qanimationgroupjob.cpp:40: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qanimationgroupjob_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qanimationgroupjob_p.h:72:49: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 70| void removeAnimation(QAbstractAnimationJob *animation);
# 71|
# 72|-> QAbstractAnimationJob *firstChild() const { return m_firstChild; }
# 73| QAbstractAnimationJob *lastChild() const { return m_lastChild; }
# 74|
Error: COMPILER_WARNING: [#def17]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qanimationjobutil_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qabstractanimationjob_p.h:55: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qabstractanimationjob_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qabstractanimationjob.cpp:42: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qabstractanimationjob.cpp: scope_hint: In member function ‘void QAbstractAnimationJob::finished()’
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qanimationjobutil_p.h:77:39: warning[-Wdangling-pointer=]: storing the address of local variable ‘wasDeleted’ in ‘*this.QAbstractAnimationJob::m_selfDeletable.SelfDeletable::m_wasDeleted’
# 77 | (p)->m_selfDeletable.m_wasDeleted = &wasDeleted; \
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qanimationjobutil_p.h:88:1: note: in expansion of macro ‘ACTION_IF_DELETED’
# 88 | ACTION_IF_DELETED(this, func, return)
# | ^~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qabstractanimationjob.cpp:609:13: note: in expansion of macro ‘RETURN_IF_DELETED’
# 609 | RETURN_IF_DELETED(change.listener->animationFinished(this));
# | ^~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qanimationjobutil_p.h:76:10: note: ‘wasDeleted’ declared here
# 76 | bool wasDeleted = false; \
# | ^~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qanimationjobutil_p.h:88:1: note: in expansion of macro ‘ACTION_IF_DELETED’
# 88 | ACTION_IF_DELETED(this, func, return)
# | ^~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qabstractanimationjob.cpp:609:13: note: in expansion of macro ‘RETURN_IF_DELETED’
# 609 | RETURN_IF_DELETED(change.listener->animationFinished(this));
# | ^~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qabstractanimationjob.cpp:604:38: note: ‘this’ declared here
# 604 | void QAbstractAnimationJob::finished()
# | ^
# 75| bool *prevWasDeleted = (p)->m_selfDeletable.m_wasDeleted; \
# 76| bool wasDeleted = false; \
# 77|-> (p)->m_selfDeletable.m_wasDeleted = &wasDeleted; \
# 78| {func;} \
# 79| if (wasDeleted) { \
Error: CLANG_WARNING: [#def18]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/animations/qsequentialanimationgroupjob.cpp:380:12: warning[core.CallAndMessage]: Called C++ object pointer is null
# 378|
# 379| if (m_currentAnimation == anim->nextSibling()
# 380|-> && m_currentAnimation->currentTime() == 0 && m_currentAnimation->currentLoop() == 0) {
# 381| //in this case we simply insert the animation before the current one has actually started
# 382| RETURN_IF_DELETED(setCurrentAnimation(anim));
Error: CLANG_WARNING: [#def19]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qqmlirbuilder.cpp:1743:9: warning[deadcode.DeadStores]: Value stored to 'bindingPtr' is never read
# 1741| bindingPtr = writeBindings(bindingPtr, o, &QV4::CompiledData::Binding::isAttachedProperty);
# 1742| bindingPtr = writeBindings(bindingPtr, o, &QV4::CompiledData::Binding::isGroupProperty);
# 1743|-> bindingPtr = writeBindings(bindingPtr, o, &QV4::CompiledData::Binding::isValueBindingToAlias);
# 1744| Q_ASSERT((bindingPtr - objectToWrite->offsetToBindings - objectPtr) / sizeof(QV4::CompiledData::Binding) == unsigned(o->bindingCount()));
# 1745|
Error: CLANG_WARNING: [#def20]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qv4bytecodegenerator.cpp:233:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 231|
# 232| for (int j = 0; j < argCount; ++j) {
# 233|-> qToLittleEndian<qint32>(i.argumentsAsInts[j], code);
# 234| code += sizeof(int);
# 235| }
Error: CLANG_WARNING: [#def21]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qv4compiler.cpp:574:5: warning[deadcode.DeadStores]: Value stored to 'currentOffset' is never read
# 572| block->nLocals = irBlock->locals.size();
# 573| block->localsOffset = currentOffset;
# 574|-> currentOffset += block->nLocals * sizeof(quint32);
# 575|
# 576| // write locals
Error: CLANG_WARNING: [#def22]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qv4compilercontext.cpp:191:9: warning[core.NullDereference]: Access to field 'contextType' results in a dereference of a null pointer (loaded from variable 'c')
# 189|
# 190| // ### can we relax the restrictions here?
# 191|-> if (c->contextType == ContextType::Eval)
# 192| return result;
# 193|
Error: CLANG_WARNING: [#def23]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qv4compilerscanfunctions.cpp:183:31: warning[core.CallAndMessage]: Called C++ object pointer is null
# 181| if (declaration->exportAll) {
# 182| Compiler::ExportEntry entry;
# 183|-> entry.moduleRequest = declaration->fromClause->moduleSpecifier.toString();
# 184| entry.importName = QStringLiteral("*");
# 185| entry.location = location(declaration->firstSourceLocation());
Error: CLANG_WARNING: [#def24]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qv4compilerscanfunctions.cpp:441:33: warning[core.NullDereference]: Access to field 'requiresExecutionContext' results in a dereference of a null pointer (loaded from variable 'c')
# 439| }
# 440|
# 441|-> c->requiresExecutionContext |= needContext;
# 442|
# 443| return false;
Error: CLANG_WARNING: [#def25]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qv4compilerscanfunctions.cpp:703:39: warning[core.CallAndMessage]: Called C++ object pointer is null
# 701| bool duplicate = (boundNames.indexOf(arg, i + 1) != -1);
# 702| if (duplicate) {
# 703|-> _cg->throwSyntaxError(formals->firstSourceLocation(), QStringLiteral("Duplicate parameter name '%1' is not allowed.").arg(arg));
# 704| return false;
# 705| }
Error: CLANG_WARNING: [#def26]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qv4compilerscanfunctions.cpp:709:39: warning[core.CallAndMessage]: Called C++ object pointer is null
# 707| if (_context->isStrict) {
# 708| if (arg == QLatin1String("eval") || arg == QLatin1String("arguments")) {
# 709|-> _cg->throwSyntaxError(formals->firstSourceLocation(), QStringLiteral("'%1' cannot be used as parameter name in strict mode").arg(arg));
# 710| return false;
# 711| }
Error: CLANG_WARNING: [#def27]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qv4compilerscanfunctions.cpp:796:24: warning[core.NullDereference]: Access to field 'contextType' results in a dereference of a null pointer (loaded from variable 'c')
# 794| if (!inner->isStrict) {
# 795| Context *c = inner;
# 796|-> while (c->contextType == ContextType::Block) {
# 797| c = c->parent;
# 798| }
Error: CLANG_WARNING: [#def28]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/compiler/qv4compilerscanfunctions.cpp:813:20: warning[core.NullDereference]: Access to field 'contextType' results in a dereference of a null pointer (loaded from variable 'c')
# 811| bool innerFunctionAccessesThis = false;
# 812| Context *c = inner;
# 813|-> while (c->contextType == ContextType::Block || c->isArrowFunction) {
# 814| innerFunctionAccessesThis |= c->isArrowFunction;
# 815| c = c->parent;
Error: CLANG_WARNING: [#def29]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4arraydata.cpp:477:28: warning[deadcode.DeadStores]: Value stored to 'd' during its initialization is never read
# 475| void SparseArrayData::push_front(Object *o, const Value *values, uint n)
# 476| {
# 477|-> Heap::SparseArrayData *d = o->d()->arrayData.cast<Heap::SparseArrayData>();
# 478| Q_ASSERT(!d->attrs);
# 479| for (int i = static_cast<int>(n) - 1; i >= 0; --i) {
Error: CLANG_WARNING: [#def30]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4profiling.cpp:40: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4profiling_p.h:55: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4engine_p.h:56: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4stackframe_p.h:56: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qv4function_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4function_p.h:94:9: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 92| {
# 93| // This is safe: We require an ExecutableCompilationUnit in the ctor.
# 94|-> return static_cast<QV4::ExecutableCompilationUnit *>(compilationUnit);
# 95| }
# 96|
Error: CLANG_WARNING: [#def31]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4identifiertable.cpp:81:70: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'Heap::StringOrSymbol *', which is incompatible with sizeof operand type 'Heap::String *'
# 79| ++numBits;
# 80| int newAlloc = qPrimeForNumBits(numBits);
# 81|-> Heap::StringOrSymbol **newEntries = (Heap::StringOrSymbol **)malloc(newAlloc*sizeof(Heap::String *));
# 82| memset(newEntries, 0, newAlloc*sizeof(Heap::StringOrSymbol *));
# 83| for (uint i = 0; i < alloc; ++i) {
Error: CLANG_WARNING: [#def32]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4identifiertable.cpp:97:47: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'Heap::StringOrSymbol *', which is incompatible with sizeof operand type 'Heap::String *'
# 95| entriesByHash = newEntries;
# 96|
# 97|-> newEntries = (Heap::StringOrSymbol **)malloc(newAlloc*sizeof(Heap::String *));
# 98| memset(newEntries, 0, newAlloc*sizeof(Heap::StringOrSymbol *));
# 99| for (uint i = 0; i < alloc; ++i) {
Error: CLANG_WARNING: [#def33]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4identifiertable.cpp:248:64: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'Heap::StringOrSymbol *', which is incompatible with sizeof operand type 'Heap::String *'
# 246| int freed = 0;
# 247|
# 248|-> Heap::StringOrSymbol **newTable = (Heap::StringOrSymbol **)malloc(alloc*sizeof(Heap::String *));
# 249| memset(newTable, 0, alloc*sizeof(Heap::StringOrSymbol *));
# 250| memset(entriesById, 0, alloc*sizeof(Heap::StringOrSymbol *));
Error: CLANG_WARNING: [#def34]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4internalclass.cpp:40: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4internalclass_p.h:176:77: warning[core.CallAndMessage]: Called C++ object pointer is null
# 174|
# 175| PropertyAttributes at(uint i) const { Q_ASSERT(data && i < m_alloc); return data[i]; }
# 176|-> void set(uint i, PropertyAttributes t) { Q_ASSERT(data && i < m_alloc); data[i] = t; }
# 177|
# 178| void mark(MarkStack *) {}
Error: CLANG_WARNING: [#def35]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4object.cpp:372:17: warning[deadcode.DeadStores]: Value stored to 'arrayNode' is never read
# 370| Heap::SparseArrayData *sa = o->d()->arrayData.cast<Heap::SparseArrayData>();
# 371| const Property *p = reinterpret_cast<const Property *>(sa->values.data() + pidx);
# 372|-> arrayNode = arrayNode->nextNode();
# 373| PropertyAttributes a = sa->attrs ? sa->attrs[pidx] : Attr_Data;
# 374| arrayIndex = k + 1;
Error: CLANG_WARNING: [#def36]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4proxy.cpp:504:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 502| if (!target->isExtensible()) {
# 503| Heap::Object *targetProto = target->getPrototypeOf();
# 504|-> if (p->d() != targetProto) {
# 505| scope.engine->throwTypeError();
# 506| return false;
Error: CLANG_WARNING: [#def37]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4reflect.cpp:171:17: warning[core.NonNullParamChecker]: Forming reference to null pointer
# 169| if (scope.hasException())
# 170| return Encode::undefined();
# 171|-> ScopedValue receiver(scope, argc > 2 ? argv[2] : *o);
# 172|
# 173| return Encode(o->get(name, receiver));
Error: CLANG_WARNING: [#def38]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4module.cpp:41: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4module_p.h:53: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4object_p.h:56: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4engine_p.h:56: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4stackframe_p.h:137:9: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 135| jsFrame->setArgc(argc);
# 136|
# 137|-> memcpy(jsFrame->args, originalArguments, argc*sizeof(Value));
# 138| Q_STATIC_ASSERT(Encode::undefined() == 0);
# 139| memset(jsFrame->args + argc, 0, (nRegisters - argc)*sizeof(Value));
Error: COMPILER_WARNING: [#def39]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qv4vtable_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/memory/qv4heap_p.h:57: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qv4heap_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4value_p.h:58: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4sequenceobject_p.h:57: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4sequenceobject.cpp:42: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4vtable_p.h:205:18: warning[-Wtemplate-id-cdtor]: template-id not allowed for constructor in C++20
# 205 | DataClass() Q_DECL_EQ_DELETE; \
# | ^
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4sequenceobject.cpp:264:5: note: in expansion of macro ‘V4_OBJECT2’
# 264 | V4_OBJECT2(QQmlSequence<Container>, QV4::Object)
# | ^~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4vtable_p.h:205:18: note: remove the ‘< >’
# 205 | DataClass() Q_DECL_EQ_DELETE; \
# | ^
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/jsruntime/qv4sequenceobject.cpp:264:5: note: in expansion of macro ‘V4_OBJECT2’
# 264 | V4_OBJECT2(QQmlSequence<Container>, QV4::Object)
# | ^~~~~~~~~~
# 203| #define V4_OBJECT2(DataClass, superClass) \
# 204| private: \
# 205|-> DataClass() Q_DECL_EQ_DELETE; \
# 206| Q_DISABLE_COPY(DataClass) \
# 207| public: \
Error: CLANG_WARNING: [#def40]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/tools/qmllint/typedescriptionreader.cpp:29: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/tools/qmllint/typedescriptionreader.h:42: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/tools/qmllint/scopetree.h:45: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qqmljsast_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/parser/qqmljsast_p.h:984:57: warning[core.CallAndMessage]: Called C++ object pointer is null
# 982|
# 983| SourceLocation firstSourceLocation() const override
# 984|-> { return elision ? elision->firstSourceLocation() : element->firstSourceLocation(); }
# 985|
# 986| SourceLocation lastSourceLocation() const override
Error: CLANG_WARNING: [#def41]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/parser/qqmljsast_p.h:1062:14: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1060|
# 1061| SourceLocation firstSourceLocation() const override
# 1062|-> { return property->firstSourceLocation(); }
# 1063|
# 1064| SourceLocation lastSourceLocation() const override
Error: COMPILER_WARNING (CWE-590): [#def42]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/ftw/qqmlrefcount_p.h:117:1: warning[-Wfree-nonheap-object]: ‘void operator delete(void*, std::size_t)’ called on pointer ‘((void* const*)location)[4]’ with nonzero offset 80
# 117 | }
# | ^
# 115| {
# 116| Q_ASSERT(refCount.loadRelaxed() == 0);
# 117|-> }
# 118|
# 119| void QQmlRefCount::addref() const
Error: COMPILER_WARNING (CWE-590): [#def43]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/ftw/qqmlrefcount_p.h:117:1: warning[-Wfree-nonheap-object]: ‘void operator delete(void*, std::size_t)’ called on pointer ‘((void* const*)node)[7]’ with nonzero offset 80
# 117 | }
# | ^
# 115| {
# 116| Q_ASSERT(refCount.loadRelaxed() == 0);
# 117|-> }
# 118|
# 119| void QQmlRefCount::addref() const
Error: COMPILER_WARNING (CWE-590): [#def44]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/ftw/qqmlrefcount_p.h:117:1: warning[-Wfree-nonheap-object]: ‘void operator delete(void*, std::size_t)’ called on pointer ‘<unknown>’ with nonzero offset 80
# 117 | }
# | ^
# 115| {
# 116| Q_ASSERT(refCount.loadRelaxed() == 0);
# 117|-> }
# 118|
# 119| void QQmlRefCount::addref() const
Error: COMPILER_WARNING (CWE-590): [#def45]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/ftw/qqmlrefcount_p.h:117:1: warning[-Wfree-nonheap-object]: ‘void operator delete(void*, std::size_t)’ called on pointer ‘<unnamed>.QQmlProfiler::RefLocation::<unnamed>.QQmlProfiler::RefLocation::._anon_547::something’ with nonzero offset 80
# 117 | }
# | ^
# 115| {
# 116| Q_ASSERT(refCount.loadRelaxed() == 0);
# 117|-> }
# 118|
# 119| void QQmlRefCount::addref() const
Error: CLANG_WARNING: [#def46]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmltype.cpp:40: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmltype_p_p.h:54: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qqmltype_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmltype_p.h:57: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qqmlrefcount_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/ftw/qqmlrefcount_p.h:167:12: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 165| QQmlRefPointer<T>::~QQmlRefPointer()
# 166| {
# 167|-> if (o) o->release();
# 168| }
# 169|
Error: CLANG_WARNING: [#def47]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlabstractbinding.cpp:157:40: warning[core.CallAndMessage]: Called C++ object pointer is null
# 155| static_cast<QQmlValueTypeProxyBinding *>(vtbinding);
# 156|
# 157|-> QQmlAbstractBinding *binding = vtproxybinding->m_bindings.data();
# 158| if (binding == this) {
# 159| vtproxybinding->m_bindings = next;
Error: CLANG_WARNING: [#def48]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlboundsignal.cpp:40: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlboundsignal_p.h:56: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qqmljavascriptexpression_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmljavascriptexpression_p.h:56: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qqmlengine_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlengine_p.h:60: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlvaluetype_p.h:56: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlproperty_p.h:61: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQml/5.15.14/QtQml/private/qqmlboundsignalexpressionpointer_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlboundsignalexpressionpointer_p.h:69:60: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 67| QQmlBoundSignalExpressionPointer &operator=(QQmlBoundSignalExpression *);
# 68|
# 69|-> inline QQmlBoundSignalExpression* operator->() const { return o; }
# 70| inline QQmlBoundSignalExpression& operator*() const { return *o; }
# 71| inline operator QQmlBoundSignalExpression*() const { return o; }
Error: COMPILER_WARNING: [#def49]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlcontext_p.h:290:36: warning[-Wdangling-pointer=]: storing the address of local variable ‘guard’ in ‘*this.QQmlContextData::contextGuards’
# 290 | contextData->contextGuards = this;
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlcontext.cpp: scope_hint: In member function ‘void QQmlContextData::refreshExpressionsRecursive(bool)’
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlcontext.cpp:739:32: note: ‘guard’ declared here
# 739 | QQmlGuardedContextData guard(this);
# | ^~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlcontext.cpp:735:64: note: ‘this’ declared here
# 735 | void QQmlContextData::refreshExpressionsRecursive(bool isGlobal)
# | ^
# 288| if (m_next) m_next->m_prev = &m_next;
# 289| m_prev = &contextData->contextGuards;
# 290|-> contextData->contextGuards = this;
# 291| }
# 292| }
Error: CLANG_WARNING: [#def50]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlengine.cpp:2541:9: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 2539| q->setContextForObject(o, new QQmlContext(q->rootContext(), q));
# 2540| }
# 2541|-> singletonInstances.insert(type, value);
# 2542|
# 2543| } else if (siinfo->qobjectCallback) {
Error: CLANG_WARNING: [#def51]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlengine.cpp:2558:17: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 2556| // should behave identically to QML singleton types.
# 2557| q->setContextForObject(o, new QQmlContext(q->rootContext(), q));
# 2558|-> value = q->newQObject(o);
# 2559| singletonInstances.insert(type, value);
# 2560| } else if (!siinfo->url.isEmpty()) {
Error: CLANG_WARNING: [#def52]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlmetaobject.cpp:168:9: warning[deadcode.DeadStores]: Value stored to 'offset' is never read
# 166| break;
# 167| default:
# 168|-> offset = 0;
# 169| Q_UNIMPLEMENTED();
# 170| offset = INT_MAX;
Error: CLANG_WARNING: [#def53]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlmetatypedata.cpp:231:9: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 229|
# 230| if (minorVersion != maxMinorVersion)
# 231|-> setPropertyCacheForMinorVersion(type.index(), maxMinorVersion, raw);
# 232|
# 233| return raw;
Error: CLANG_WARNING: [#def54]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlmetatypedata.cpp:233:5: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 231| setPropertyCacheForMinorVersion(type.index(), maxMinorVersion, raw);
# 232|
# 233|-> return raw;
# 234| }
# 235|
Error: CLANG_WARNING: [#def55]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmlmoduleregistration.cpp:56:5: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 54| d(new QQmlModuleRegistrationPrivate { QString::fromUtf8(uri), majorVersion })
# 55| {
# 56|-> QQmlMetaType::qmlInsertModuleRegistration(d->uri, d->majorVersion,
# 57| registerFunction);
# 58| }
Error: CLANG_WARNING: [#def56]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qml/qml/qqmltypeloader.cpp:1009:9: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 1007|
# 1008| const bool exists = fileInfo.exists();
# 1009|-> fileSet->insert(file, new bool(exists));
# 1010| return exists;
# 1011| };
Error: CLANG_WARNING: [#def57]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qmlmodels/qqmllistcompositor.cpp:945:13: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 943| QT_QML_TRACE_LISTCOMPOSITOR("")
# 944| for (Range *range = m_ranges.next; range != &m_ranges; range = erase(range)) {}
# 945|-> m_end = iterator(m_ranges.next, 0, Default, m_groupCount);
# 946| m_cacheIt = m_end;
# 947| }
Error: CLANG_WARNING: [#def58]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/qmltest/quicktest.cpp:430:13: warning[deadcode.DeadStores]: Value stored to 'withWidgets' is never read
# 428| #ifdef QT_QMLTEST_WITH_WIDGETS
# 429| } else if (strcmp(argv[index], "-widgets") == 0) {
# 430|-> withWidgets = true;
# 431| ++index;
# 432| #endif
Error: CLANG_WARNING: [#def59]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/context2d/qquickcanvasitem.cpp:894:30: warning[core.CallAndMessage]: Called C++ object pointer is null
# 892|
# 893| if (createContext(contextId))
# 894|-> args->setReturnValue(d->context->v4value());
# 895| else
# 896| args->setReturnValue(QV4::Encode::null());
Error: CLANG_WARNING: [#def60]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/context2d/qquickcontext2dtexture.cpp:179:18: warning[core.CallAndMessage]: Called C++ object pointer is null
# 177| if (!qFuzzyCompare(m_canvasDevicePixelRatio, canvasDevicePixelRatio)) {
# 178| qCDebug(lcCanvas, "%s device pixel ratio %.1lf -> %.1lf",
# 179|-> (m_item->objectName().isEmpty() ? "Canvas" : qPrintable(m_item->objectName())),
# 180| m_canvasDevicePixelRatio, canvasDevicePixelRatio);
# 181| m_canvasDevicePixelRatio = canvasDevicePixelRatio;
Error: COMPILER_WARNING (CWE-457): [#def61]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquicklistview.cpp: scope_hint: In member function ‘virtual void QQuickListViewPrivate::fixup(QQuickFlickablePrivate::AxisData&, qreal, qreal)’
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquicklistview.cpp:1710:15: warning[-Wmaybe-uninitialized]: ‘pos’ may be used uninitialized
# 1710 | qreal pos;
# | ^~~
# 1708| bottomItem = currentItem;
# 1709| }
# 1710|-> qreal pos;
# 1711| bool isInBounds = -position() > maxExtent && -position() <= minExtent;
# 1712|
Error: CLANG_WARNING: [#def62]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquicktextnodeengine.cpp:271:41: warning[core.NullDereference]: Access to field 'selectionState' results in a dereference of a null pointer (loaded from variable 'node')
# 269|
# 270| if (i == 0)
# 271|-> currentSelectionState = node->selectionState;
# 272|
# 273| // Update decorations
Error: CLANG_WARNING: [#def63]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquicktextnodeengine.cpp:404:14: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'currentClipNode'
# 402| }
# 403|
# 404|-> if (!pendingUnderlines.isEmpty())
# 405| addTextDecorations(pendingUnderlines, underlineOffset, underlineThickness);
# 406|
Error: CLANG_WARNING: [#def64]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquicktextnodeengine.cpp:1128:9: warning[deadcode.DeadStores]: Value stored to 'textPos' is never read
# 1126| setCurrentLine(line);
# 1127| }
# 1128|-> textPos = addText(block, block.charFormat(), textColor, colorChanges,
# 1129| textPos, textPos + preeditLength,
# 1130| selectionStart, selectionEnd);
Error: CLANG_WARNING: [#def65]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quickwidgets/qquickwidget.cpp:44: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/5.15.14/QtQuick/private/qquickwindow_p.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquickwindow_p.h:119:70: warning[core.CallAndMessage]: Called C++ object pointer is null
# 117| };
# 118|
# 119|-> static inline QQuickWindowPrivate *get(QQuickWindow *c) { return c->d_func(); }
# 120|
# 121| QQuickWindowPrivate();
Error: CLANG_WARNING: [#def66]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquickwindowmodule.cpp:170:28: warning[core.CallAndMessage]: Called C++ object pointer is null
# 168| error.setUrl(urlContext ? urlContext->url() : QUrl());
# 169|
# 170|-> QString objectId = data->context->findObjectId(this);
# 171| if (!objectId.isEmpty())
# 172| error.setDescription(QCoreApplication::translate("QQuickWindowQmlImpl",
Error: CLANG_WARNING: [#def67]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalimagenode.cpp:112:11: warning[deadcode.DeadStores]: Value stored to 'dx' during its initialization is never read
# 110| yTarget[rows] = targetRect.top() + targetRect.height();
# 111|
# 112|-> qreal dx = targetCenterWidth;
# 113| qreal dy = targetCenterHeight;
# 114|
Error: CLANG_WARNING: [#def68]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalimagenode.cpp:113:11: warning[deadcode.DeadStores]: Value stored to 'dy' during its initialization is never read
# 111|
# 112| qreal dx = targetCenterWidth;
# 113|-> qreal dy = targetCenterHeight;
# 114|
# 115| switch (rules.horizontal) {
Error: CLANG_WARNING: [#def69]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderloop.cpp:192:44: warning[core.CallAndMessage]: Called C++ object pointer is null
# 190| //Flush backingstore to window
# 191| if (!isNewExpose)
# 192|-> m_backingStores[window]->flush(softwareRenderer->flushRegion());
# 193| else
# 194| m_backingStores[window]->flush(QRegion(QRect(QPoint(0,0), window->size())));
Error: CLANG_WARNING: [#def70]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/adaptations/software/qsgsoftwarethreadedrenderloop.cpp:815:13: warning[core.NullDereference]: Access to field 'window' results in a dereference of a null pointer (loaded from variable 'exposed')
# 813| // If animations are running, make sure we keep on animating
# 814| if (m_anim->isRunning())
# 815|-> exposed->window->requestUpdate();
# 816| } else if (!animationTimer && exposedWindowCount != 1 && m_anim->isRunning()) {
# 817| animationTimer = startTimer(qsgrl_animation_interval());
Error: CLANG_WARNING: [#def71]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/coreapi/qsgnode.cpp:385:9: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 383| while (m_firstChild) {
# 384| QSGNode *child = m_firstChild;
# 385|-> removeChildNode(child);
# 386| Q_ASSERT(child->m_parent == nullptr);
# 387| if (child->flags() & OwnedByParent)
Error: CLANG_WARNING: [#def72]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquicktextnode.cpp:40: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/items/qquicktextnode_p.h:54: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/qsgnode.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/coreapi/qsgnode.h:140:35: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 138| int childCount() const;
# 139| QSGNode *childAtIndex(int i) const;
# 140|-> QSGNode *firstChild() const { return m_firstChild; }
# 141| QSGNode *lastChild() const { return m_lastChild; }
# 142| QSGNode *nextSibling() const { return m_nextSibling; }
Error: CLANG_WARNING: [#def73]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgbasicinternalimagenode.cpp:282:9: warning[deadcode.DeadStores]: Value stored to 'xs' is never read
# 280| xs[1].x = targetRect.right();
# 281| xs[1].tx = sourceRect.right();
# 282|-> xs += 2;
# 283| }
# 284| Q_ASSERT(xs == xData.data() + xData.size());
Error: CLANG_WARNING: [#def74]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgbasicinternalimagenode.cpp:323:9: warning[deadcode.DeadStores]: Value stored to 'ys' is never read
# 321| ys[1].y = targetRect.bottom();
# 322| ys[1].ty = sourceRect.bottom();
# 323|-> ys += 2;
# 324| }
# 325| Q_ASSERT(ys == yData.data() + yData.size());
Error: CLANG_WARNING: [#def75]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgdefaultspritenode.cpp:172:9: warning[deadcode.DeadStores]: Value stored to 'changed' is never read
# 170| const QMatrix4x4 m = state.combinedMatrix();
# 171| memcpy(buf->data(), m.constData(), 64);
# 172|-> changed = true;
# 173| }
# 174|
Error: CLANG_WARNING: [#def76]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgrenderloop.cpp:648:30: warning[core.CallAndMessage]: Called C++ object pointer is null
# 646|
# 647| // Check for context loss. (legacy GL only)
# 648|-> if (!current && !rhi && !gl->isValid()) {
# 649| for (auto it = m_windows.constBegin() ; it != m_windows.constEnd(); it++) {
# 650| QQuickWindowPrivate *windowPrivate = QQuickWindowPrivate::get(it.key());
Error: CLANG_WARNING: [#def77]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgrenderloop.cpp:719:44: warning[core.CallAndMessage]: Called C++ object pointer is null
# 717|
# 718| cd->hasActiveSwapchain = cd->swapchain->buildOrResize();
# 719|-> if (!cd->hasActiveSwapchain && rhi->isDeviceLost()) {
# 720| handleDeviceLoss();
# 721| return;
Error: CLANG_WARNING: [#def78]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgrenderloop.cpp:741:43: warning[core.CallAndMessage]: Called C++ object pointer is null
# 739| // ### the flag should only be set when the app requests it, but there's no way to do that right now
# 740| QRhi::BeginFrameFlags frameFlags = QRhi::ExternalContentsInPass;
# 741|-> QRhi::FrameOpResult frameResult = rhi->beginFrame(cd->swapchain, frameFlags);
# 742| if (frameResult != QRhi::FrameOpSuccess) {
# 743| if (frameResult == QRhi::FrameOpDeviceLost)
Error: CLANG_WARNING: [#def79]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgrenderloop.cpp:788:43: warning[core.CallAndMessage]: Called C++ object pointer is null
# 786| if (!needsPresent)
# 787| flags |= QRhi::SkipPresent;
# 788|-> QRhi::FrameOpResult frameResult = rhi->endFrame(cd->swapchain, flags);
# 789| if (frameResult != QRhi::FrameOpSuccess) {
# 790| if (frameResult == QRhi::FrameOpDeviceLost)
Error: CLANG_WARNING: [#def80]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgthreadedrenderloop.cpp:836:47: warning[core.CallAndMessage]: Called C++ object pointer is null
# 834| }
# 835| if (current) {
# 836|-> d->renderSceneGraph(windowSize, rhi ? cd->swapchain->currentPixelSize() : QSize());
# 837|
# 838| if (profileFrames)
Error: CLANG_WARNING: [#def81]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgthreadedrenderloop.cpp:858:47: warning[core.CallAndMessage]: Called C++ object pointer is null
# 856| if (grabRequested)
# 857| flags |= QRhi::SkipPresent;
# 858|-> QRhi::FrameOpResult frameResult = rhi->endFrame(cd->swapchain, flags);
# 859| if (frameResult != QRhi::FrameOpSuccess) {
# 860| if (frameResult == QRhi::FrameOpDeviceLost)
Error: CLANG_WARNING: [#def82]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1099:5: warning[core.NullDereference]: Access to field 'window' results in a dereference of a null pointer (loaded from variable 'w')
# 1097| void QSGThreadedRenderLoop::maybePostPolishRequest(Window *w)
# 1098| {
# 1099|-> w->window->requestUpdate();
# 1100| }
# 1101|
Error: CLANG_WARNING: [#def83]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgareaallocator.cpp:226:20: warning[cplusplus.NewDelete]: Use of memory after it is freed
# 224|
# 225| QSGAreaAllocatorNode *neighbor = parent->left;
# 226|-> while (neighbor->right && neighbor->splitType == splitType)
# 227| neighbor = neighbor->right;
# 228|
Error: CLANG_WARNING: [#def84]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgdefaultpainternode.cpp:148:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 146| m_multisampledFbo->bind();
# 147| else
# 148|-> m_fbo->bind();
# 149|
# 150| painter.begin(m_gl_device);
Error: CLANG_WARNING: [#def85]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgengine.cpp:140:42: warning[core.CallAndMessage]: Called C++ object pointer is null
# 138| if (rc) {
# 139| QSGDefaultRenderContext::InitParams params;
# 140|-> params.sampleCount = qMax(1, context->format().samples());
# 141| params.openGLContext = context;
# 142| // leave the size hint and surface unset, we do not know, that's fine
Error: COMPILER_WARNING (CWE-477): [#def86]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/qsgsimplematerial.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/QSGSimpleMaterial:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/graph/linenode.cpp:55: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/graph/linenode.cpp: scope_hint: In static member function ‘static QSGSimpleMaterial<LineMaterial>* LineShader::createMaterial()’
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:133:53: warning[-Wdeprecated-declarations]: ‘QSGSimpleMaterial<State>::QSGSimpleMaterial(PtrShaderCreateFunc) [with State = LineMaterial; PtrShaderCreateFunc = QSGMaterialShader* (*)()]’ is deprecated: QSGSimpleMaterial is going to be removed in Qt 6.0. Use QSGMaterial instead.
# 133 | return new QSGSimpleMaterial<State>(createShader); \
# | ^
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/graph/linenode.cpp:66:5: note: in expansion of macro ‘QSG_DECLARE_SIMPLE_SHADER’
# 66 | QSG_DECLARE_SIMPLE_SHADER(LineShader, LineMaterial)
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:153:5: note: declared here
# 153 | QSGSimpleMaterial(PtrShaderCreateFunc func)
# | ^~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h: scope_hint: In instantiation of ‘void QSGSimpleMaterialShader<State>::updateState(const QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) [with State = LineMaterial]’
#/builddir/build/BUILD/qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:204:24: required from here
# 204 | Q_INLINE_TEMPLATE void QSGSimpleMaterialShader<State>::updateState(const RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial)
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 131| static QSGSimpleMaterial<State> *createMaterial() \
# 132| { \
# 133|-> return new QSGSimpleMaterial<State>(createShader); \
# 134| }
# 135|
Error: COMPILER_WARNING (CWE-477): [#def87]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/qsgsimplematerial.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/QSGSimpleMaterialShader:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/graph/noisynode.cpp:54: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/graph/noisynode.cpp: scope_hint: In static member function ‘static QSGSimpleMaterial<NoisyMaterial>* NoisyShader::createMaterial()’
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:133:53: warning[-Wdeprecated-declarations]: ‘QSGSimpleMaterial<State>::QSGSimpleMaterial(PtrShaderCreateFunc) [with State = NoisyMaterial; PtrShaderCreateFunc = QSGMaterialShader* (*)()]’ is deprecated: QSGSimpleMaterial is going to be removed in Qt 6.0. Use QSGMaterial instead.
# 133 | return new QSGSimpleMaterial<State>(createShader); \
# | ^
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/graph/noisynode.cpp:72:5: note: in expansion of macro ‘QSG_DECLARE_SIMPLE_SHADER’
# 72 | QSG_DECLARE_SIMPLE_SHADER(NoisyShader, NoisyMaterial)
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:153:5: note: declared here
# 153 | QSGSimpleMaterial(PtrShaderCreateFunc func)
# | ^~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h: scope_hint: In instantiation of ‘void QSGSimpleMaterialShader<State>::updateState(const QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) [with State = NoisyMaterial]’
#/builddir/build/BUILD/qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:204:24: required from here
# 204 | Q_INLINE_TEMPLATE void QSGSimpleMaterialShader<State>::updateState(const RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial)
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 131| static QSGSimpleMaterial<State> *createMaterial() \
# 132| { \
# 133|-> return new QSGSimpleMaterial<State>(createShader); \
# 134| }
# 135|
Error: COMPILER_WARNING (CWE-477): [#def88]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:191:40: warning[-Wdeprecated-declarations]: ‘QSGSimpleMaterial<State>::QSGSimpleMaterial(PtrShaderCreateFunc) [with State = State; PtrShaderCreateFunc = QSGMaterialShader* (*)()]’ is deprecated: QSGSimpleMaterial is going to be removed in Qt 6.0. Use QSGMaterial instead.
# 191 | : QSGSimpleMaterial<State>(func) {}
# | ^
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:153:5: note: declared here
# 153 | QSGSimpleMaterial(PtrShaderCreateFunc func)
# | ^~~~~~~~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h: scope_hint: In instantiation of ‘void QSGSimpleMaterialShader<State>::updateState(const QSGMaterialShader::RenderState&, QSGMaterial*, QSGMaterial*) [with State = State]’
#/builddir/build/BUILD/qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:204:24: required from here
# 204 | Q_INLINE_TEMPLATE void QSGSimpleMaterialShader<State>::updateState(const RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial)
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 189|
# 190| QSGSimpleMaterialComparableMaterial(PtrShaderCreateFunc func)
# 191|-> : QSGSimpleMaterial<State>(func) {}
# 192|
# 193| int compare(const QSGMaterial *other) const override {
Error: COMPILER_WARNING (CWE-477): [#def89]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:218:16: warning[-Wdeprecated-declarations]: ‘void QSGSimpleMaterialShader<State>::updateState(const State*, const State*) [with State = LineMaterial]’ is deprecated: QSGSimpleMaterialShader is going to be removed in Qt 6.0. Use QSGMaterialShader instead.
# 218 | updateState(ns, old);
# | ~~~~~~~~~~~^~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:83:18: note: declared here
# 83 | virtual void updateState(const State *newState, const State *oldState) = 0;
# | ^~~~~~~~~~~
# 216| if (oldMaterial)
# 217| old = static_cast<QSGSimpleMaterial<State> *>(oldMaterial)->state();
# 218|-> updateState(ns, old);
# 219| }
# 220|
Error: COMPILER_WARNING (CWE-477): [#def90]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:218:16: warning[-Wdeprecated-declarations]: ‘void QSGSimpleMaterialShader<State>::updateState(const State*, const State*) [with State = NoisyMaterial]’ is deprecated: QSGSimpleMaterialShader is going to be removed in Qt 6.0. Use QSGMaterialShader instead.
# 218 | updateState(ns, old);
# | ~~~~~~~~~~~^~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:83:18: note: declared here
# 83 | virtual void updateState(const State *newState, const State *oldState) = 0;
# | ^~~~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/include/QtQuick/qsgsimplematerial.h:1: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/simplematerial/simplematerialitem.cpp:53: included_from: Included from here.
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h: scope_hint: In instantiation of ‘QSGSimpleMaterialComparableMaterial<State>::QSGSimpleMaterialComparableMaterial(PtrShaderCreateFunc) [with State = State; PtrShaderCreateFunc = QSGMaterialShader* (*)()]’
#/builddir/build/BUILD/qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/examples/quick/scenegraph/simplematerial/simplematerialitem.cpp:80:5: required from here
# 179 | return new QSGSimpleMaterialComparableMaterial<State>(createShader); \
# | ^
# 216| if (oldMaterial)
# 217| old = static_cast<QSGSimpleMaterial<State> *>(oldMaterial)->state();
# 218|-> updateState(ns, old);
# 219| }
# 220|
Error: COMPILER_WARNING (CWE-477): [#def91]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:218:16: warning[-Wdeprecated-declarations]: ‘void QSGSimpleMaterialShader<State>::updateState(const State*, const State*) [with State = State]’ is deprecated: QSGSimpleMaterialShader is going to be removed in Qt 6.0. Use QSGMaterialShader instead.
# 218 | updateState(ns, old);
# | ~~~~~~~~~~~^~~~~~~~~
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quick/scenegraph/util/qsgsimplematerial.h:83:18: note: declared here
# 83 | virtual void updateState(const State *newState, const State *oldState) = 0;
# | ^~~~~~~~~~~
# 216| if (oldMaterial)
# 217| old = static_cast<QSGSimpleMaterial<State> *>(oldMaterial)->state();
# 218|-> updateState(ns, old);
# 219| }
# 220|
Error: CLANG_WARNING: [#def92]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quickshapes/qquickshapegenericrenderer.cpp:543:30: warning[core.NullDereference]: Access to field 'm_next' results in a dereference of a null pointer (loaded from variable 'prevNode')
# 541| Q_ASSERT(prevNode);
# 542| *nodePtr = new QQuickShapeGenericNode;
# 543|-> prevNode->m_next = *nodePtr;
# 544| prevNode->appendChildNode(*nodePtr);
# 545| }
Error: CLANG_WARNING: [#def93]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quickwidgets/qquickwidget.cpp:299:24: warning[core.CallAndMessage]: Called C++ object pointer is null
# 297| Q_ASSERT(context);
# 298|
# 299|-> bool current = context->makeCurrent(offscreenSurface);
# 300|
# 301| if (!current && !context->isValid()) {
Error: CLANG_WARNING: [#def94]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quickwidgets/qquickwidget.cpp:971:5: warning[core.CallAndMessage]: Called C++ object pointer is null
# 969| // Note: The position will be update when we get a move event (see: updatePosition()).
# 970| const QPoint &globalPos = mapToGlobal(QPoint(0, 0));
# 971|-> d->offscreenWindow->setGeometry(globalPos.x(), globalPos.y(), width(), height());
# 972|
# 973| if (d->useSoftwareRenderer) {
Error: CLANG_WARNING: [#def95]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/src/quickwidgets/qquickwidget.cpp:1000:9: warning[core.CallAndMessage]: Called C++ object pointer is null
# 998| // The screen may be different so we must recreate the offscreen surface too.
# 999| // Unlike QOpenGLContext, QOffscreenSurface's create() does not recreate so have to destroy() first.
# 1000|-> d->offscreenSurface->destroy();
# 1001| d->offscreenSurface->setScreen(context->screen());
# 1002| d->offscreenSurface->create();
Error: CLANG_WARNING: [#def96]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/tools/qmlcachegen/qmlcachegen.cpp:302:17: warning[deadcode.DeadStores]: Value stored to 'parsed' is never read
# 300| if (!program) {
# 301| lexer.setCode(QStringLiteral("undefined;"), 1, false);
# 302|-> parsed = parser.parseProgram();
# 303| Q_ASSERT(parsed);
# 304| program = QQmlJS::AST::cast<QQmlJS::AST::Program*>(parser.rootNode());
Error: CLANG_WARNING: [#def97]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/tools/qmlformat/commentastvisitor.cpp:171:32: warning[core.CallAndMessage]: Called C++ object pointer is null
# 169| continue;
# 170|
# 171|-> if (comment.begin() <= node->firstSourceLocation().begin()
# 172| || comment.end() > node->lastSourceLocation().end()) {
# 173| continue;
Error: CLANG_WARNING: [#def98]
qt5-qtdeclarative-5.15.14-build/qtdeclarative-everywhere-src-5.15.14/tools/qmlscene/main.cpp:419:58: warning[core.CallAndMessage]: Called C++ object pointer is null
# 417| if (newTitle.isEmpty()) {
# 418| newTitle = QLatin1String("qmlscene");
# 419|-> if (!qobject_cast<const QWindow *>(topLevel) && !topLevel->objectName().isEmpty())
# 420| newTitle += QLatin1String(": ") + topLevel->objectName();
# 421| }
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-140.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | qt5-qtdeclarative-5.15.14-1.fc41 |
store-results-to | /tmp/tmp1ceuhbo1/qt5-qtdeclarative-5.15.14-1.fc41.tar.xz |
time-created | 2024-07-03 17:59:47 |
time-finished | 2024-07-03 18:21:43 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp1ceuhbo1/qt5-qtdeclarative-5.15.14-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp1ceuhbo1/qt5-qtdeclarative-5.15.14-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |