aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-10 10:18:43 -0500
committerGitHub <noreply@github.com>2017-11-10 10:18:43 -0500
commit5f3b27347ccd9d5d23cd8590ed3fa6cee252024f (patch)
tree3913dd3b2f2e17fa44d8bb9b8353eee860a6f750 /backend
parente6babc07a050262dc487ec665b042346b06e4916 (diff)
parent5be11a5c95457c6d4f6cd9720162f962286c2258 (diff)
Merge pull request #404 from emolitor/CPP-Compatibility
Remove VLA from session.h
Diffstat (limited to 'backend')
-rw-r--r--backend/session/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/session/session.c b/backend/session/session.c
index b14ca4d0..760830c3 100644
--- a/backend/session/session.c
+++ b/backend/session/session.c
@@ -257,7 +257,7 @@ static size_t explicit_find_gpus(struct wlr_session *session,
* If it's not found, it returns the first valid GPU it finds.
*/
size_t wlr_session_find_gpus(struct wlr_session *session,
- size_t ret_len, int ret[static ret_len]) {
+ size_t ret_len, int *ret) {
const char *explicit = getenv("WLR_DRM_DEVICES");
if (explicit) {
return explicit_find_gpus(session, ret_len, ret, explicit);