summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorLaeeth Isharc <laeeth@kaleidic.io>2019-08-05 13:23:29 +0100
committerJim King <jking@apache.org>2019-08-11 07:54:36 -0400
commit74d6d9d3d6400d1672f48b4acf5bc7d1260ad96d (patch)
treec569b53e5073ddfd770d90b75ca91a54e56e6b3e /compiler
parent3e95c533be4489ff2cb82118e886ed93225d30fc (diff)
downloadthrift-74d6d9d3d6400d1672f48b4acf5bc7d1260ad96d.tar.gz
Initialisation of immutable data in static constructors has been
deprecated. They now need to be initialised in shared static constructors. This change brings the generator for D up to date with the latest version of the compiler, but it should continue to work with older versions.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/cpp/src/thrift/generate/t_d_generator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cpp/src/thrift/generate/t_d_generator.cc b/compiler/cpp/src/thrift/generate/t_d_generator.cc
index b8442041c..65f4b445e 100644
--- a/compiler/cpp/src/thrift/generate/t_d_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_d_generator.cc
@@ -145,7 +145,7 @@ protected:
indent(f_consts) << "immutable(" << render_type_name(type) << ") " << name << ";" << endl;
}
- f_consts << endl << "static this() {" << endl;
+ f_consts << endl << "shared static this() {" << endl;
indent_up();
bool first = true;