init gen_enum_ to false
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 @@
    * 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.