From: Daniel Martí Date: Sat, 26 Nov 2016 15:27:29 +0000 (+0000) Subject: misc/cgo/testshared: remove unused flag.Parse() X-Git-Tag: go1.9beta1~1790 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=329fff0db01dd1252444cf106dffe72ba20ddbc8;p=gostls13.git misc/cgo/testshared: remove unused flag.Parse() TestMain doesn't make use of any flags. Change-Id: I98ec582fb004045a5067618f605ccfeb1f9f4bbb Reviewed-on: https://go-review.googlesource.com/33613 Reviewed-by: David Crawshaw Run-TryBot: David Crawshaw TryBot-Result: Gobot Gobot --- diff --git a/misc/cgo/testshared/shared_test.go b/misc/cgo/testshared/shared_test.go index f0766e511e..5017570ba6 100644 --- a/misc/cgo/testshared/shared_test.go +++ b/misc/cgo/testshared/shared_test.go @@ -10,7 +10,6 @@ import ( "debug/elf" "encoding/binary" "errors" - "flag" "fmt" "go/build" "io" @@ -166,7 +165,6 @@ func TestMain(m *testing.M) { // That won't work if GOBIN is set. os.Unsetenv("GOBIN") - flag.Parse() exitCode, err := testMain(m) if err != nil { log.Fatal(err)