mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-19 05:33:44 -04:00
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:
parent
67e713ff3a
commit
e35e98ea94
1 changed files with 2 additions and 0 deletions
2
shm.c
2
shm.c
|
|
@ -130,6 +130,7 @@ static const struct wl_buffer_listener buffer_listener = {
|
||||||
.release = &buffer_release,
|
.release = &buffer_release,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if !defined(__i386__)
|
||||||
static size_t
|
static size_t
|
||||||
page_size(void)
|
page_size(void)
|
||||||
{
|
{
|
||||||
|
|
@ -146,6 +147,7 @@ page_size(void)
|
||||||
xassert(size > 0);
|
xassert(size > 0);
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
instantiate_offset(struct wl_shm *shm, struct buffer *buf, off_t new_offset)
|
instantiate_offset(struct wl_shm *shm, struct buffer *buf, off_t new_offset)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue