aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen2017-10-03 04:32:49 -0500
committerTomi Valkeinen2017-10-03 04:32:49 -0500
commit33f343d18d5d1886dd04314bded1781c3e46f7e7 (patch)
tree1785cfe99cffbaa665d78697e182a1fad948d3d9
parentf76171b7d754b2dd42bd90c72cab22bf62879372 (diff)
downloadexternal-libkmsxx-33f343d18d5d1886dd04314bded1781c3e46f7e7.tar.gz
external-libkmsxx-33f343d18d5d1886dd04314bded1781c3e46f7e7.tar.xz
external-libkmsxx-33f343d18d5d1886dd04314bded1781c3e46f7e7.zip
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,
217 217
218void Card::call_page_flip_handlers() 218void Card::call_page_flip_handlers()
219{ 219{
220 drmEventContext ev = { 220 drmEventContext ev { };
221 .version = DRM_EVENT_CONTEXT_VERSION, 221 ev.version = DRM_EVENT_CONTEXT_VERSION;
222 .vblank_handler = 0, 222 ev.page_flip_handler = page_flip_handler;
223 .page_flip_handler = page_flip_handler,
224 };
225 223
226 drmHandleEvent(fd(), &ev); 224 drmHandleEvent(fd(), &ev);
227} 225}