diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-06-22 10:05:23 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-06-26 18:10:42 +0000 |
commit | a8a0dffd1f78d27c04cfd1e20563e9ddda4a135c (patch) | |
tree | ba4aebe6554efafce1c6b3186b33510e3b57e91f /tests/auto | |
parent | 6f53c2bc967641ef16d681e7cec0db200e4da244 (diff) |
Windows QPA/GL: Fix build with MinGW/g++ 8.1 x64
Fix warnings about invalid function type casts (return types
conflicting with the PROC returned by wglGetProcAddress()) like:
qwindowsglcontext.cpp:1250:138: error: cast between incompatible function types from 'PROC' {aka 'long long int (*)()'} to 'GLenum (*)()' {aka 'unsigned int (*)()'} [-Werror=cast-function-type]
m_getGraphicsResetStatus = (GLenum (APIENTRY *)()) QOpenGLStaticContext::opengl32.wglGetProcAddress("glGetGraphicsResetStatusARB");
by introducing nested casts.
Task-number: QTBUG-68742
Task-number: QTQAINFRA-2095
Change-Id: I7c51836f2b9f7e2a6fa17c5108d59b23c42fb99d
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions