card: fix compile warning
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 3 Oct 2017 09:32:49 +0000 (12:32 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 3 Oct 2017 09:32:49 +0000 (12:32 +0300)
kms++/src/card.cpp

index 12bdef6173f29b592d64b875bd00ca3d43f071ee..d8d89b2b66c729e8a6cc7ebb781bd585b532846f 100644 (file)
@@ -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);
 }