You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ns...@apache.org on 2015/11/26 16:09:26 UTC

[2/2] thrift git commit: THRIFT-3443 Thrift include can generate uncompilable code Client: Go Compiler Patch: Nobuaki Sukegawa

THRIFT-3443 Thrift include can generate uncompilable code
Client: Go Compiler
Patch: Nobuaki Sukegawa

This closes #709


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

Branch: refs/heads/master
Commit: ef3cf819e120cc46ef8e1b35baa07eae3a39126a
Parents: 5479099
Author: Nobuaki Sukegawa <ns...@apache.org>
Authored: Mon Nov 23 19:20:44 2015 +0900
Committer: Nobuaki Sukegawa <ns...@apache.org>
Committed: Fri Nov 27 00:08:41 2015 +0900

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


http://git-wip-us.apache.org/repos/asf/thrift/blob/ef3cf819/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 b198d48..cd03359 100644
--- a/compiler/cpp/src/generate/t_go_generator.cc
+++ b/compiler/cpp/src/generate/t_go_generator.cc
@@ -782,7 +782,7 @@ string t_go_generator::render_included_programs() {
       }
     }
 
-    result += "\t\"" + gen_package_prefix_ + go_module + "\"\n";
+    result += "\t_ \"" + gen_package_prefix_ + go_module + "\"\n";
   }
 
   return result;