aboutsummaryrefslogtreecommitdiff
path: root/shm.c
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2021-01-19 15:17:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-23 08:52:40 +0000
commite35e98ea94dd216dc0eb86c9199aa49997659b96 (patch)
tree8ed49c9a96535e21a852cc3ad8a451246f875386 /shm.c
parentslave: skip e310487dae99 if not supported (diff)
shm: silence -Wunused-function on i386
shm.c:134:1: error: unused function 'page_size' [-Werror,-Wunused-function] page_size(void) ^
Diffstat (limited to 'shm.c')
-rw-r--r--shm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shm.c b/shm.c
index 2231f057..4038f0f2 100644
--- a/shm.c
+++ b/shm.c
@@ -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)