Silence a warning in EGL check
There is a chance that an unused variable warning will be treated as an error, and in that case, this check will fail, and as a result FindEGL will fail. Pick-to: 6.2 6.5 6.6 Fixes: QTBUG-114431 Change-Id: Iaac49589144dbe4172ec58c6705a9f899c25f01f Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
1a619ccb24
commit
14b01b0aad
@ -128,7 +128,8 @@ check_cxx_source_compiles("
|
|||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
|
|
||||||
int main(int, char **) {
|
int main(int, char **) {
|
||||||
EGLint x = 0; EGLDisplay dpy = 0; EGLContext ctx = 0;
|
[[maybe_unused]] EGLint x = 0;
|
||||||
|
EGLDisplay dpy = 0; EGLContext ctx = 0;
|
||||||
eglDestroyContext(dpy, ctx);
|
eglDestroyContext(dpy, ctx);
|
||||||
}" HAVE_EGL)
|
}" HAVE_EGL)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user