diff --git a/src/quick/items/qquickcanvas.cpp b/src/quick/items/qquickcanvas.cpp
index d93f774207c61884434732fcc7b28b814524445a..432d1678647ed9168bde72de0440b6d3ae039def 100644
--- a/src/quick/items/qquickcanvas.cpp
+++ b/src/quick/items/qquickcanvas.cpp
@@ -45,10 +45,10 @@
 #include "qquickitem.h"
 #include "qquickitem_p.h"
 
-#include <private/qsgrenderer_p.h>
-#include <private/qsgtexture_p.h>
-#include <private/qsgflashnode_p.h>
-#include <qsgengine.h>
+#include <QtQuick/private/qsgrenderer_p.h>
+#include <QtQuick/private/qsgtexture_p.h>
+#include <QtQuick/private/qsgflashnode_p.h>
+#include <QtQuick/qsgengine.h>
 
 #include <private/qquickwindowmanager_p.h>
 
diff --git a/src/quick/items/qquickwindowmanager.cpp b/src/quick/items/qquickwindowmanager.cpp
index c6baf13758f6e4f263c452f12c081a2a7bba6680..d1b5275cc73785e3afce9c0b3326c24dc11045ab 100644
--- a/src/quick/items/qquickwindowmanager.cpp
+++ b/src/quick/items/qquickwindowmanager.cpp
@@ -1071,7 +1071,6 @@ void QQuickRenderThreadSingleContextWindowManager::maybeUpdate(QQuickCanvas *can
         printf("GUI: doing update...\n");
 #endif
         renderThreadAwakened = true;
-        bool locked = false;
 
         // If we are getting here from the renderer's sync event, the renderer is about
         // to go to sleep anyway.
diff --git a/src/quick/items/qquickwindowmodule.cpp b/src/quick/items/qquickwindowmodule.cpp
index 23ca00dd0a87170078735435d37f994805ba4884..1ef4bc1c89050009e03017e059b637a88804c45a 100644
--- a/src/quick/items/qquickwindowmodule.cpp
+++ b/src/quick/items/qquickwindowmodule.cpp
@@ -47,10 +47,10 @@ QT_BEGIN_NAMESPACE
 
 void QQuickWindowModule::defineModule()
 {
-    const char* uri = "QtQuick.Window";
+    const char uri[] = "QtQuick.Window";
 
     qmlRegisterType<QQuickCanvas>(uri, 2, 0, "Window");
-    qmlRegisterUncreatableType<QQuickScreen>(uri, 2, 0, "Screen", "Screen can only be used via the attached property.");
+    qmlRegisterUncreatableType<QQuickScreen>(uri, 2, 0, "Screen", QStringLiteral("Screen can only be used via the attached property."));
 }
 
 QT_END_NAMESPACE
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index b83e328158ddd3407e6750428fe337ff878e6ef9..a81571e5d8a714029db25476984aa38b88a2c7ed 100644
--- a/src/quick/scenegraph/qsgcontext.cpp
+++ b/src/quick/scenegraph/qsgcontext.cpp
@@ -221,8 +221,6 @@ bool QSGContext::isReady() const
 
 void QSGContext::renderNextFrame(QSGRenderer *renderer, QOpenGLFramebufferObject *fbo)
 {
-    Q_D(QSGContext);
-
     if (fbo) {
         QSGBindableFbo bindable(fbo);
         renderer->renderScene(bindable);