Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anura has stopped building on linux with OPTIMIZE=no. #355

Open
DDR0 opened this issue May 3, 2023 · 0 comments
Open

Anura has stopped building on linux with OPTIMIZE=no. #355

DDR0 opened this issue May 3, 2023 · 0 comments
Assignees
Labels
Build System Issues related to compiling Anura on various platforms.

Comments

@DDR0
Copy link
Contributor

DDR0 commented May 3, 2023

Command: make clean && OPTIMIZE=no make

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
@DDR0 DDR0 added the Build System Issues related to compiling Anura on various platforms. label May 3, 2023
@DDR0 DDR0 self-assigned this May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build System Issues related to compiling Anura on various platforms.
Projects
None yet
Development

No branches or pull requests

1 participant