aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 18:03:25 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 18:03:25 +0200
commitc7b758fd43358b7b24598f051b904ce637f8b70e (patch)
tree5db4cb286bd77d286f84172f15c25e01a978e0f5
parentservice: clean up token mangling (diff)
downloadwireguard-windows-c7b758fd43358b7b24598f051b904ce637f8b70e.tar.xz
wireguard-windows-c7b758fd43358b7b24598f051b904ce637f8b70e.zip
build: allow unused functions, for cgo
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--Makefile2
-rw-r--r--build.bat2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d0cd21f7..cf2c66ce 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
GOFLAGS := -ldflags="-H windowsgui -s -w" -v
export CGO_ENABLED := 1
-export CGO_CFLAGS := -O3 -Wall -Wno-switch -std=gnu11 -DWINVER=0x0601
+export CGO_CFLAGS := -O3 -Wall -Wno-unused-function -Wno-switch -std=gnu11 -DWINVER=0x0601
export GOOS := windows
OLD_GOROOT := $(GOROOT)
export GOROOT := $(CURDIR)/.deps/goroot
diff --git a/build.bat b/build.bat
index 9bddfcfa..fc870fa3 100644
--- a/build.bat
+++ b/build.bat
@@ -34,7 +34,7 @@ if exist .deps\prepared goto :render
set GOPATH=%STARTDIR%\.deps\gopath
set GOROOT=%STARTDIR%\.deps\go
set CGO_ENABLED=1
- set CGO_CFLAGS=-O3 -Wall -Wno-switch -std=gnu11 -DWINVER=0x0601
+ set CGO_CFLAGS=-O3 -Wall -Wno-unused-function -Wno-switch -std=gnu11 -DWINVER=0x0601
call :build_plat x86 i686 386 || goto :error
call :build_plat amd64 x86_64 amd64 || goto :error