shm: silence -Wunused-function on i386

shm.c:134:1: error: unused function 'page_size' [-Werror,-Wunused-function]
page_size(void)
^
This commit is contained in:
Jan Beich 2021-01-19 15:17:38 +00:00 committed by Daniel Eklöf
parent 67e713ff3a
commit e35e98ea94
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
shm.c
View file

@ -130,6 +130,7 @@ static const struct wl_buffer_listener buffer_listener = {
.release = &buffer_release,
};
#if !defined(__i386__)
static size_t
page_size(void)
{
@ -146,6 +147,7 @@ page_size(void)
xassert(size > 0);
return size;
}
#endif
static bool
instantiate_offset(struct wl_shm *shm, struct buffer *buf, off_t new_offset)