summaryrefslogtreecommitdiff
path: root/pkg/rootless/rootless_linux.go
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2019-06-21 10:14:19 +0200
committerSascha Grunert <sgrunert@suse.com>2019-06-21 10:14:19 +0200
commit4bfbc355de9d47b2b67e9b7c71ec6fb08fd5ab53 (patch)
tree82d14594b34691a380105db1de1a6f292f49f6f5 /pkg/rootless/rootless_linux.go
parentf446ccf0b050f5577328e5ba3efcdb5cafaae254 (diff)
downloadpodman-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 'pkg/rootless/rootless_linux.go')
-rw-r--r--pkg/rootless/rootless_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go
index 3f78ffc67..ca8faecbd 100644
--- a/pkg/rootless/rootless_linux.go
+++ b/pkg/rootless/rootless_linux.go
@@ -22,7 +22,7 @@ import (
)
/*
-#cgo remoteclient CFLAGS: -DDISABLE_JOIN_SHORTCUT
+#cgo remoteclient CFLAGS: -Wall -Werror -DDISABLE_JOIN_SHORTCUT
#include <stdlib.h>
#include <sys/types.h>
extern uid_t rootless_uid();