You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2022/03/05 08:58:39 UTC

[thrift] 02/08: init gen_enum_ to false

This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git

commit a0ccc7e5fae124d6fb43f77bf1f0e7bb12c176f9
Author: Kevin Wojniak <ka...@users.noreply.github.com>
AuthorDate: Sun Dec 12 13:12:18 2021 -0800

    init gen_enum_ to false
---
 compiler/cpp/src/thrift/generate/t_py_generator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/cpp/src/thrift/generate/t_py_generator.cc b/compiler/cpp/src/thrift/generate/t_py_generator.cc
index af5821b..164365b 100644
--- a/compiler/cpp/src/thrift/generate/t_py_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_py_generator.cc
@@ -297,7 +297,7 @@ private:
    * True if we should generate new-style classes.
    */
   bool gen_newstyle_;
-  bool gen_enum_;
+  bool gen_enum_{false};
 
   /**
   * True if we should generate dynamic style classes.