From 4bfbc355de9d47b2b67e9b7c71ec6fb08fd5ab53 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Fri, 21 Jun 2019 10:14:19 +0200 Subject: Build cgo files with -Wall -Werror To avoid unnecessary warnings and errors in the future I'd like to propose building all cgo related sources with `-Wall -Werror`. This commit fixes some warnings which came up in `shm_lock.c`, too. Signed-off-by: Sascha Grunert --- libpod/lock/shm/shm_lock.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'libpod/lock/shm/shm_lock.h') diff --git a/libpod/lock/shm/shm_lock.h b/libpod/lock/shm/shm_lock.h index 759f8178a..8796b43f4 100644 --- a/libpod/lock/shm/shm_lock.h +++ b/libpod/lock/shm/shm_lock.h @@ -32,9 +32,6 @@ typedef struct shm_struct { lock_group_t locks[]; } shm_struct_t; -static size_t compute_shm_size(uint32_t num_bitmaps); -static int take_mutex(pthread_mutex_t *mutex); -static int release_mutex(pthread_mutex_t *mutex); shm_struct_t *setup_lock_shm(char *path, uint32_t num_locks, int *error_code); shm_struct_t *open_lock_shm(char *path, uint32_t num_locks, int *error_code); int32_t close_lock_shm(shm_struct_t *shm); -- cgit v1.2.3-54-g00ecf