cmd/go: disable warnings from cmd/cc when building for SWIG

Fixes issue 9065.

LGTM=rsc
R=rsc, misch
CC=golang-codereviews
https://codereview.appspot.com/171270043