mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-05 04:06:20 -05:00
shm: Avoid unused variable warning !HAVE_MEMFD_CREATE case
../src/wayland-shm.c:307:14: warning: unused variable 'statbuf' [-Wunused-variable]
struct stat statbuf;
^
../src/wayland-shm.c:308:6: warning: unused variable 'seals' [-Wunused-variable]
int seals;
^
2 warnings generated.
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
e519c4318c
commit
2cd63a46bb
1 changed files with 2 additions and 0 deletions
|
|
@ -304,8 +304,10 @@ shm_create_pool(struct wl_client *client, struct wl_resource *resource,
|
|||
uint32_t id, int fd, int32_t size)
|
||||
{
|
||||
struct wl_shm_pool *pool;
|
||||
#ifdef HAVE_MEMFD_CREATE
|
||||
struct stat statbuf;
|
||||
int seals;
|
||||
#endif
|
||||
int prot;
|
||||
int flags;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue