From 7a4e4cbf5e70cd304b751f9862792e0d6af85eb1 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 21 Apr 2025 22:01:07 +0300 Subject: Fix a few clang warnings --- kmscube/cube-egl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kmscube/cube-egl.cpp') 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 configs(numConfigs); + b = eglGetConfigs(m_display, configs.data(), numConfigs, &numConfigs); FAIL_IF(!b, "failed to get configs"); printf("Available configs:\n"); -- cgit v1.2.3