diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-10-03 12:32:49 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-10-03 12:32:49 +0300 |
commit | 33f343d18d5d1886dd04314bded1781c3e46f7e7 (patch) | |
tree | 1785cfe99cffbaa665d78697e182a1fad948d3d9 /kms++/src | |
parent | f76171b7d754b2dd42bd90c72cab22bf62879372 (diff) |
card: fix compile warning
Diffstat (limited to 'kms++/src')
-rw-r--r-- | kms++/src/card.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp index 12bdef6..d8d89b2 100644 --- a/kms++/src/card.cpp +++ b/kms++/src/card.cpp @@ -217,11 +217,9 @@ static void page_flip_handler(int fd, unsigned int frame, void Card::call_page_flip_handlers() { - drmEventContext ev = { - .version = DRM_EVENT_CONTEXT_VERSION, - .vblank_handler = 0, - .page_flip_handler = page_flip_handler, - }; + drmEventContext ev { }; + ev.version = DRM_EVENT_CONTEXT_VERSION; + ev.page_flip_handler = page_flip_handler; drmHandleEvent(fd(), &ev); } |