diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2013-08-29 21:31:51 +0100 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2013-08-30 11:37:05 -0400 |
commit | 4a8da02e524d5d70ec638477e36fcafd2c8152ec (patch) | |
tree | 540e7d4317b744830848cfbbc76ee56d30387035 /tests/modetest | |
parent | 0100473de648f29dd5abbd3fabd0f73c0bd5bfd5 (diff) |
tests/modetest: silence compiler warning about uninitialised variables
The compiler is unaware of that we have at least one crts/connector/plane
thus it complains that some of our variables will be used uninitialised.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'tests/modetest')
-rw-r--r-- | tests/modetest/modetest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index 79b4f044..f0ed56b3 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -781,7 +781,7 @@ static struct crtc *pipe_find_crtc(struct device *dev, struct pipe_arg *pipe) static int pipe_find_crtc_and_mode(struct device *dev, struct pipe_arg *pipe) { - drmModeModeInfo *mode; + drmModeModeInfo *mode = NULL; int i; pipe->mode = NULL; @@ -838,8 +838,8 @@ struct property_arg { static void set_property(struct device *dev, struct property_arg *p) { - drmModeObjectProperties *props; - drmModePropertyRes **props_info; + drmModeObjectProperties *props = NULL; + drmModePropertyRes **props_info = NULL; const char *obj_type; int ret; int i; |