diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2011-11-18 13:11:58 -0500 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-11-18 13:12:18 -0500 |
| commit | 68d13212f238f874600b8ef6020d174edbcbf5f0 (patch) | |
| tree | 8db886996b7176f24b9640d6dfedf7c14cdd562b /src/wayland-util.c | |
| parent | Introduce wl_resource_queue_event() for sending events later (diff) | |
| download | wayland-68d13212f238f874600b8ef6020d174edbcbf5f0.tar wayland-68d13212f238f874600b8ef6020d174edbcbf5f0.tar.gz wayland-68d13212f238f874600b8ef6020d174edbcbf5f0.tar.bz2 wayland-68d13212f238f874600b8ef6020d174edbcbf5f0.tar.lz wayland-68d13212f238f874600b8ef6020d174edbcbf5f0.tar.xz wayland-68d13212f238f874600b8ef6020d174edbcbf5f0.tar.zst wayland-68d13212f238f874600b8ef6020d174edbcbf5f0.zip | |
Fix unused variable warning
Diffstat (limited to 'src/wayland-util.c')
| -rw-r--r-- | src/wayland-util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wayland-util.c b/src/wayland-util.c index 9eb3d59..3b187b8 100644 --- a/src/wayland-util.c +++ b/src/wayland-util.c @@ -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; } |
