diff options
author | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-01-19 14:41:30 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-01-20 11:31:54 +0100 |
commit | cdb44933487401fc7487c888d3033dee8985042b (patch) | |
tree | 01d8f5b32379d77a106c0a77d3585ebbeb83ea37 /src | |
parent | 38f58ee4693272ca8e206dac8b484d012b683ebf (diff) |
Fix gcc warning 'may be used uninitialized'
Initialize glType to make gcc happy.
Change-Id: I558ac822666d54a623e68cd2182895b05ba410c0
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/web_engine_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index dadf9f36b..73ca9c603 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -232,7 +232,7 @@ WebEngineContext::WebEngineContext() if (usingANGLE() || usingSoftwareDynamicGL() || usingQtQuick2DRenderer()) { parsedCommandLine->AppendSwitch(switches::kDisableGpu); } else { - const char *glType; + const char *glType = 0; switch (QOpenGLContext::openGLModuleType()) { case QOpenGLContext::LibGL: glType = gfx::kGLImplementationDesktopName; |