summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-07-01 14:14:47 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-07-11 23:57:39 +0000
commita9e10e2a7478bf3c68426a60fcc1862e6bd9f791 (patch)
tree41089aae72abdc0bd83bf0d754daa8ddd6e52c6d
parenteebceec16b05439ded58abbbcb2420fe3dcb4c18 (diff)
Remove fallthrough warnings
Found by GCC 7: qwaylandquickitem.cpp:223:9: warning: this statement may fall through [-Wimplicit-fallthrough=] Change-Id: I8d96dea9955d4c749b99fffd14cd5157a79d782b Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
-rw-r--r--src/compositor/compositor_api/qwaylandquickitem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandquickitem.cpp b/src/compositor/compositor_api/qwaylandquickitem.cpp
index 14d4a9f11..3f5bbc715 100644
--- a/src/compositor/compositor_api/qwaylandquickitem.cpp
+++ b/src/compositor/compositor_api/qwaylandquickitem.cpp
@@ -222,9 +222,11 @@ void QWaylandBufferMaterial::bind()
case 3:
if (m_textures[2])
m_textures[2]->bind(GL_TEXTURE2);
+ Q_FALLTHROUGH();
case 2:
if (m_textures[1])
m_textures[1]->bind(GL_TEXTURE1);
+ Q_FALLTHROUGH();
case 1:
if (m_textures[0])
m_textures[0]->bind(GL_TEXTURE0);