diff options
author | Sascha Grunert <sgrunert@suse.com> | 2019-06-21 10:14:19 +0200 |
---|---|---|
committer | Sascha Grunert <sgrunert@suse.com> | 2019-06-21 10:14:19 +0200 |
commit | 4bfbc355de9d47b2b67e9b7c71ec6fb08fd5ab53 (patch) | |
tree | 82d14594b34691a380105db1de1a6f292f49f6f5 /libpod/lock/shm/shm_lock.go | |
parent | f446ccf0b050f5577328e5ba3efcdb5cafaae254 (diff) | |
download | podman-4bfbc355de9d47b2b67e9b7c71ec6fb08fd5ab53.tar.gz podman-4bfbc355de9d47b2b67e9b7c71ec6fb08fd5ab53.tar.bz2 podman-4bfbc355de9d47b2b67e9b7c71ec6fb08fd5ab53.zip |
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 <sgrunert@suse.com>
Diffstat (limited to 'libpod/lock/shm/shm_lock.go')
-rw-r--r-- | libpod/lock/shm/shm_lock.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/lock/shm/shm_lock.go b/libpod/lock/shm/shm_lock.go index c21e9a221..76dd5729e 100644 --- a/libpod/lock/shm/shm_lock.go +++ b/libpod/lock/shm/shm_lock.go @@ -1,6 +1,7 @@ package shm // #cgo LDFLAGS: -lrt -lpthread +// #cgo CFLAGS: -Wall -Werror // #include <stdlib.h> // #include "shm_lock.h" // const uint32_t bitmap_size_c = BITMAP_SIZE; |