Updated Branches:
  refs/heads/master d9c80e2da -> 1406c9ada

THRIFT-2290 anyfile.go:10: imported and not used: "math"

Patch: Jens Geyer


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/1406c9ad
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/1406c9ad
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/1406c9ad

Branch: refs/heads/master
Commit: 1406c9adaf3bc7a43c9f594ad38fa90193a929cb
Parents: d9c80e2
Author: Jens Geyer <[email protected]>
Authored: Tue Dec 24 17:20:20 2013 +0100
Committer: Jens Geyer <[email protected]>
Committed: Tue Dec 24 17:20:20 2013 +0100

----------------------------------------------------------------------
 compiler/cpp/src/generate/t_go_generator.cc | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/1406c9ad/compiler/cpp/src/generate/t_go_generator.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/generate/t_go_generator.cc 
b/compiler/cpp/src/generate/t_go_generator.cc
index ca50d1b..bf1a03a 100644
--- a/compiler/cpp/src/generate/t_go_generator.cc
+++ b/compiler/cpp/src/generate/t_go_generator.cc
@@ -1856,6 +1856,7 @@ void t_go_generator::generate_service_remote(t_service* 
tservice)
              indent() << "var parsedUrl url.URL" << endl <<
              indent() << "var trans thrift.TTransport" << endl <<
              indent() << "_ = strconv.Atoi" << endl <<
+             indent() << "_ = math.Abs" << endl <<
              indent() << "flag.Usage = Usage" << endl <<
              indent() << "flag.StringVar(&host, \"h\", \"localhost\", 
\"Specify host and port\")" << endl <<
              indent() << "flag.IntVar(&port, \"p\", 9090, \"Specify port\")" 
<< endl <<

Reply via email to