mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 15:48:05 +02:00
tests: fix build warnings when backend-drm is not enabled
Signed-off-by: Tomek Bury <tomek.bury@gmail.com>
This commit is contained in:
parent
4f2cc67fde
commit
c313543364
1 changed files with 4 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ prog_args_fini(struct prog_args *p)
|
|||
prog_args_init(p);
|
||||
}
|
||||
|
||||
#ifdef BUILD_DRM_COMPOSITOR
|
||||
static char *
|
||||
get_lock_path(void)
|
||||
{
|
||||
|
|
@ -173,6 +174,7 @@ err_open:
|
|||
err_path:
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/** Initialize part of compositor setup
|
||||
*
|
||||
|
|
@ -278,7 +280,9 @@ execute_compositor(const struct compositor_setup *setup,
|
|||
struct weston_testsuite_data test_data;
|
||||
struct prog_args args;
|
||||
char *tmp;
|
||||
#ifdef BUILD_DRM_COMPOSITOR
|
||||
const char *drm_device;
|
||||
#endif
|
||||
int lock_fd = -1;
|
||||
int ret = RESULT_OK;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue