summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-10-03 12:32:49 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-10-03 12:32:49 +0300
commit33f343d18d5d1886dd04314bded1781c3e46f7e7 (patch)
tree1785cfe99cffbaa665d78697e182a1fad948d3d9
parentf76171b7d754b2dd42bd90c72cab22bf62879372 (diff)
card: fix compile warning
-rw-r--r--kms++/src/card.cpp8
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);
}