mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-29 13:50:18 +01:00
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>
This commit is contained in:
parent
0100473de6
commit
4a8da02e52
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue