Hack: make clean && OPTIMIZE=no CXXFLAGS="-Wno-error=return-type" make which I am DEEPLY UNCOMFORTABLE WITH.
Errors:
src/json_parser.cpp: In function ‘variant json::{anonymous}::parse_internal(const std::string&, const std::string&, json::JSON_PARSE_OPTIONS, std::map<std::__cxx11::basic_string<char>, std::shared_ptr<JsonMacro> >*, const game_logic::FormulaCallable*)’:
src/json_parser.cpp:557:17: error: control reaches end of non-void function [-Werror=return-type]
557 | }
| ^
cc1plus: all warnings being treated as errors
make: *** [Makefile:218: build/json_parser.o] Error 1
make: *** Waiting for unfinished jobs....
src/particle_system_proxy.cpp: In member function ‘const KRE::Particles::Emitter& graphics::ParticleSystemContainerProxy::getActiveEmitter() const’:
src/particle_system_proxy.cpp:58:9: error: control reaches end of non-void function [-Werror=return-type]
58 | }
| ^
src/particle_system_proxy.cpp: In member function ‘KRE::Particles::Emitter& graphics::ParticleSystemContainerProxy::getActiveEmitter()’:
src/particle_system_proxy.cpp:69:9: error: control reaches end of non-void function [-Werror=return-type]
69 | }
| ^
cc1plus: all warnings being treated as errors
make: *** [Makefile:217: build/particle_system_proxy.o] Error 1
src/formula_object.cpp: In member function ‘virtual variant game_logic::FormulaObject::getValue(const std::string&) const’:
src/formula_object.cpp:1710:9: error: control reaches end of non-void function [-Werror=return-type]
1710 | }
| ^
cc1plus: all warnings being treated as errors
make: *** [Makefile:217: build/formula_object.o] Error 1
src/formula.cpp: In member function ‘virtual variant game_logic::{anonymous}::SliceSquareBracketExpression::execute(const game_logic::FormulaCallable&) const’:
src/formula.cpp:2215:25: error: control reaches end of non-void function [-Werror=return-type]
2215 | }
| ^
src/formula.cpp: In member function ‘virtual variant game_logic::{anonymous}::SquareBracketExpression::execute(const game_logic::FormulaCallable&) const’:
src/formula.cpp:2065:25: error: control reaches end of non-void function [-Werror=return-type]
2065 | }
| ^
cc1plus: all warnings being treated as errors
make: *** [Makefile:217: build/formula.o] Error 1
In file included from src/formula_function.cpp:74:
src/formula_function.cpp: In member function ‘virtual variant game_logic::{anonymous}::find_or_die_function::executeWithArgs(const game_logic::FormulaCallable&, const variant*, int) const’:
src/formula_function_registry.hpp:97:16: error: control reaches end of non-void function [-Werror=return-type]
97 | #define CAN_VM } bool canCreateVM() const override {
| ^
src/formula_function.cpp:3443:17: note: in expansion of macro ‘CAN_VM’
3443 | CAN_VM
| ^~~~~~
src/formula_function.cpp: In member function ‘virtual variant sprintf_function::executeWithArgs(const game_logic::FormulaCallable&, const variant*, int) const’:
src/formula_function_registry.hpp:89:27: error: control reaches end of non-void function [-Werror=return-type]
89 | #define FUNCTION_ARGS_DEF } void staticErrorAnalysis() const override { int num_passed_args = -1; int narg_number = 0;
| ^
src/formula_function.cpp:6516:1: note: in expansion of macro ‘FUNCTION_ARGS_DEF’
6516 | FUNCTION_ARGS_DEF
| ^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:217: build/formula_function.o] Error 1
Command:
make clean && OPTIMIZE=no make
Hack:
make clean && OPTIMIZE=no CXXFLAGS="-Wno-error=return-type" make
which I am DEEPLY UNCOMFORTABLE WITH.Errors: