summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-06-21 12:59:00 +0200
committerGitHub <noreply@github.com>2019-06-21 12:59:00 +0200
commitc3b75b232800d2d9bee2e1975cd6e0d35509791c (patch)
tree82d14594b34691a380105db1de1a6f292f49f6f5 /pkg
parentf446ccf0b050f5577328e5ba3efcdb5cafaae254 (diff)
parent4bfbc355de9d47b2b67e9b7c71ec6fb08fd5ab53 (diff)
downloadpodman-c3b75b232800d2d9bee2e1975cd6e0d35509791c.tar.gz
podman-c3b75b232800d2d9bee2e1975cd6e0d35509791c.tar.bz2
podman-c3b75b232800d2d9bee2e1975cd6e0d35509791c.zip
Merge pull request #3393 from openSUSE/werror
Build cgo files with -Wall and -Werror
Diffstat (limited to 'pkg')
-rw-r--r--pkg/rootless/rootless_linux.go2
-rw-r--r--pkg/sysinfo/sysinfo_solaris.go1
2 files changed, 2 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();
diff --git a/pkg/sysinfo/sysinfo_solaris.go b/pkg/sysinfo/sysinfo_solaris.go
index c858d57e0..7463cdd8f 100644
--- a/pkg/sysinfo/sysinfo_solaris.go
+++ b/pkg/sysinfo/sysinfo_solaris.go
@@ -11,6 +11,7 @@ import (
/*
#cgo LDFLAGS: -llgrp
+#cgo CFLAGS: -Wall -Werror
#include <unistd.h>
#include <stdlib.h>
#include <sys/lgrp_user.h>