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:
parent
23d9c7b685
commit
27a7c7e186
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue