mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-06 04:06:06 -05: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,
|
||||
};
|
||||
|
||||
#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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue