mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
Fix unused variable warning
This commit is contained in:
parent
4abc56bd6d
commit
68d13212f2
1 changed files with 2 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright © 2008 Kristian Høgsberg
|
||||
* Copyright © 2008-2011 Kristian Høgsberg
|
||||
* Copyright © 2011 Intel Corporation
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software and its
|
||||
* documentation for any purpose is hereby granted without fee, provided that
|
||||
|
|
@ -192,11 +193,8 @@ WL_EXPORT void
|
|||
wl_map_remove(struct wl_map *map, uint32_t i)
|
||||
{
|
||||
union map_entry *start;
|
||||
uint32_t count;
|
||||
|
||||
start = map->entries.data;
|
||||
count = map->entries.size / sizeof *start;
|
||||
|
||||
start[i].next = map->free_list;
|
||||
map->free_list = (i << 1) | 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue