diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-04-21 22:01:07 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-04-22 10:27:27 +0300 |
| commit | 7a4e4cbf5e70cd304b751f9862792e0d6af85eb1 (patch) | |
| tree | cbc504a4506f45f1a53f5fc239d701ccfa825507 /kmscube/cube-egl.cpp | |
| parent | 72ed148ff1b40511809811ee265a683a39eaebc6 (diff) | |
Fix a few clang warnings
Diffstat (limited to 'kmscube/cube-egl.cpp')
| -rw-r--r-- | kmscube/cube-egl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kmscube/cube-egl.cpp b/kmscube/cube-egl.cpp index 372c978..3ff6ea9 100644 --- a/kmscube/cube-egl.cpp +++ b/kmscube/cube-egl.cpp @@ -68,8 +68,8 @@ EglState::EglState(void* native_display, EGLint native_visual_id) FAIL_IF(!b, "failed to get number of configs"); if (s_verbose) { - EGLConfig configs[numConfigs]; - b = eglGetConfigs(m_display, configs, numConfigs, &numConfigs); + vector<EGLConfig> configs(numConfigs); + b = eglGetConfigs(m_display, configs.data(), numConfigs, &numConfigs); FAIL_IF(!b, "failed to get configs"); printf("Available configs:\n"); |
