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:
Jeremy Huddleston Sequoia 2023-01-27 19:44:15 -08:00
parent e519c4318c
commit 2cd63a46bb

View file

@ -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;