bind: add -Werror to gomobile bind CFLAGS

C compiler warnings are hidden in the gomobile build process. Expose
them through -Werror.

Change-Id: I2d87e5985f9ff874dc6feb836ba35c2bd848bfa6
Reviewed-on: https://go-review.googlesource.com/31517
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Elias Naur 2016-10-20 14:24:04 +02:00
parent 23d9c7b685
commit 27a7c7e186
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ package gomobile_bind
// generated gomobile_bind package and compiled along with the // generated gomobile_bind package and compiled along with the
// generated binding files. // generated binding files.
//#cgo CFLAGS: -Werror
//#cgo LDFLAGS: -llog //#cgo LDFLAGS: -llog
//#include <jni.h> //#include <jni.h>
//#include <stdint.h> //#include <stdint.h>

View File

@ -9,7 +9,7 @@ package gomobile_bind
// bindings. // bindings.
/* /*
#cgo CFLAGS: -x objective-c -fobjc-arc #cgo CFLAGS: -x objective-c -fobjc-arc -Werror
#cgo LDFLAGS: -framework Foundation #cgo LDFLAGS: -framework Foundation
#include <stdint.h> #include <stdint.h>