summaryrefslogtreecommitdiff
path: root/kmscube
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-04-16 22:26:47 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-04-16 22:26:47 +0300
commitcecb3644b9e0a76a9d2ebead72917523a5350adf (patch)
tree073a6616314827854ec8f57f0b1d67a845f2bed3 /kmscube
parentf902b289c2a3956176fc328afb31ea4fc91f8984 (diff)
add -Wextra & fix warnings
Diffstat (limited to 'kmscube')
-rw-r--r--kmscube/cube-gbm.cpp2
-rw-r--r--kmscube/cube-null.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/kmscube/cube-gbm.cpp b/kmscube/cube-gbm.cpp
index a65f693..d015c55 100644
--- a/kmscube/cube-gbm.cpp
+++ b/kmscube/cube-gbm.cpp
@@ -379,7 +379,7 @@ void main_gbm()
for (auto& out : outputs)
out->start_flipping();
- struct pollfd fds[2] = { 0 };
+ struct pollfd fds[2] = { };
fds[0].fd = 0;
fds[0].events = POLLIN;
fds[1].fd = card.fd();
diff --git a/kmscube/cube-null.cpp b/kmscube/cube-null.cpp
index 42f2ac2..2623394 100644
--- a/kmscube/cube-null.cpp
+++ b/kmscube/cube-null.cpp
@@ -18,7 +18,7 @@ void main_null()
int framenum = 0;
- struct pollfd fds[1] = { 0 };
+ struct pollfd fds[1] = { };
fds[0].fd = 0;
fds[0].events = POLLIN;