# HG changeset patch # User Mario de Sousa # Date 1505382641 -3600 # Node ID f762b43c8fadd0df1dd743c13f9d7066cfce3eb4 # Parent 01c48180af05451044a48b77750503e6afad99be fix initialization of variable (was not following ISO C++ rules) diff -r 01c48180af05 -r f762b43c8fad stage4/generate_c/generate_c.cc --- a/stage4/generate_c/generate_c.cc Wed Aug 30 22:13:26 2017 +0100 +++ b/stage4/generate_c/generate_c.cc Thu Sep 14 10:50:41 2017 +0100 @@ -222,7 +222,7 @@ /* getsubopt isn't supported with mingw, * then stage4 options aren't available on windows*/ void stage4_print_options(void) {} -int stage4_parse_options(char *options) {} +int stage4_parse_options(char *options) {return 0;} #endif /***********************************************************************/ @@ -2201,11 +2201,13 @@ */ class generate_c_backup_config_c: public generate_c_base_and_typeid_c { private: - const char *func_to_call = NULL; // will later be set to either "_backup__" or "_restore__" + const char *func_to_call; // parameter to pass data from: void *visit(configuration_declaration_c *) + // to: void *visit(resource_declaration_c *) public: generate_c_backup_config_c(stage4out_c *s4o_ptr) : generate_c_base_and_typeid_c(s4o_ptr) { + func_to_call = NULL; }; virtual ~generate_c_backup_config_c(void) {}