Open Dunard opened 2 months ago
Building: src/collision_utils.cpp src/cairo.cpp: In function ‘FTFaceRec graphics::{anonymous}::get_ft_font(const std::string&, int)’: src/cairo.cpp:147:44: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 147 | const std::string& ttf_file = get_font_path_from_name(ttf_name.empty() ? module::get_default_font() == "bitmap" ? "FreeMono" : module::get_default_font() : ttf_name); | ^~~~ src/cairo.cpp:147:78: note: the temporary was destroyed at the end of the full expression ‘graphics::{anonymous}::get_font_path_from_name(((& ttf_name)->std::__cxx11::basic_string::empty() ? (std::operator==<char, char_traits, allocator >(module::get_default_font()(), ((const char)"bitmap")) ? std::cxx11::basic_string(((const char)"FreeMono"), std::allocator()) : module::get_default_font()()) : std::__cxx11::basic_string(( & ttf_name))))’ 147 | const std::string& ttf_file = get_font_path_from_name(ttf_name.empty() ? module::get_default_font() == "bitmap" ? "FreeMono" : module::get_default_font() : ttf_name); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ Building: src/color_picker.cpp Building: src/ColorTransform.cpp Building: src/compress.cpp Building: src/controls.cpp Building: src/controls_dialog.cpp Building: src/current_generator.cpp Building: src/custom_object_callable.cpp Building: src/custom_object.cpp Building: src/custom_object_dialog.cpp src/code_editor_dialog.cpp: In member function ‘void CodeEditorDialog::process()’: src/code_editor_dialog.cpp:683:95: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 683 | for(const std::string& s : function_helpstrings("core")) { | ^ src/code_editor_dialog.cpp:683:88: note: the temporary was destroyed at the end of the full expression ‘function_helpstrings(std::cxx11::basic_string(((const char)"core"), std::allocator()))’ 683 | for(const std::string& s : function_helpstrings("core")) { | ~~~~^~~~ src/code_editor_dialog.cpp:686:104: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 686 | for(const std::string& s : function_helpstrings("custom_object")) { | ^ src/code_editor_dialog.cpp:686:88: note: the temporary was destroyed at the end of the full expression ‘function_helpstrings(std::__cxx11::basic_string(((const char)"custom_object"), std::allocator()))’ 686 | for(const std::string& s : function_helpstrings("custom_object")) { | ~~~~^~~~~ Building: src/custom_object_functions.cpp Building: src/custom_object_type.cpp Building: src/db_client.cpp Building: src/debug_console.cpp Building: src/decimal.cpp Building: src/dialog.cpp Building: src/difficulty.cpp Building: src/distortion.cpp Building: src/drag_widget.cpp Building: src/draw_primitive.cpp Building: src/draw_scene.cpp Building: src/draw_tile.cpp Building: src/dropdown_widget.cpp Building: src/editor.cpp src/custom_object_functions.cpp: In member function ‘virtual variant {anonymous}::get_object_or_die_function::executeWithArgs(const game_logic::FormulaCallable&, const variant, int) const’: src/custom_object_functions.cpp:3388:36: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 3388 | const std::string& label = EVAL_ARG(1).as_string(); | ^~~~~ src/custom_object_functions.cpp:3388:65: note: the temporary was destroyed at the end of the full expression ‘((num_passed_args < 0) ? game_logic::FormulaExpression::evaluate(const game_logic::FormulaCallable&) const(( & variables)) : variant((*(passed_args + 16)))).variant::as_string()’ 3388 | const std::string& label = EVAL_ARG(1).as_string(); cc1plus: all warnings being treated as errors make: [Makefile:218: build/code_editor_dialog.o] Error 1 make: Waiting for unfinished jobs.... cc1plus: all warnings being treated as errors make: [Makefile:217: build/cairo.o] Error 1 cc1plus: all warnings being treated as errors make: [Makefile:217: build/custom_object_functions.o] Error 1
sudo dnf -y install boost-devel boost-filesystem boost-iostreams boost-regex boost-system cairo-devel clang gcc git glew glew-devel glm-devel icu libvorbis-devel SDL2 SDL2-devel SDL2_image SDL2_image-devel SDL2_mixer SDL2_mixer-devel SDL2_ttf SDL2_ttf-devel
cd $HOME/ && git clone https://github.com/anura-engine/anura.git && cd $HOME/anura/modules/ && git clone https://github.com/frogatto/frogatto.git && mv frogatto frogatto4
cd $HOME/anura/ && git submodule init && git submodule update && git pull -f && make OVERRIDE_CC=clang OVERRIDE_CXX=clang++ STRIP_SYMBOLS=1 REGENIE=1 -j17 && rm -rfv $HOME/anura/build/ && cd $HOME/anura/modules/frogatto4/ && git pull -f
Building: src/collision_utils.cpp src/cairo.cpp: In function ‘FTFaceRec graphics::{anonymous}::get_ft_font(const std::string&, int)’: src/cairo.cpp:147:44: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 147 | const std::string& ttf_file = get_font_path_from_name(ttf_name.empty() ? module::get_default_font() == "bitmap" ? "FreeMono" : module::get_default_font() : ttf_name); | ^::empty() ? (std::operator==<char, char_traits, allocator >(module::get_default_font()(), ((const char )"bitmap")) ? std::cxx11::basic_string(((const char)"FreeMono"), std::allocator()) : module::get_default_font()()) : std::__cxx11::basic_string(( & ttf_name))))’
147 | const std::string& ttf_file = get_font_path_from_name(ttf_name.empty() ? module::get_default_font() == "bitmap" ? "FreeMono" : module::get_default_font() : ttf_name);
| cxx11::basic_string(((const char)"core"), std::allocator()))’
683 | for(const std::string& s : function_helpstrings("core")) {
| (((const char )"custom_object"), std::allocator()))’
686 | for(const std::string& s : function_helpstrings("custom_object")) {
|
~~~ src/cairo.cpp:147:78: note: the temporary was destroyed at the end of the full expression ‘graphics::{anonymous}::get_font_path_from_name(((& ttf_name)->std::__cxx11::basic_string~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ Building: src/color_picker.cpp Building: src/ColorTransform.cpp Building: src/compress.cpp Building: src/controls.cpp Building: src/controls_dialog.cpp Building: src/current_generator.cpp Building: src/custom_object_callable.cpp Building: src/custom_object.cpp Building: src/custom_object_dialog.cpp src/code_editor_dialog.cpp: In member function ‘void CodeEditorDialog::process()’: src/code_editor_dialog.cpp:683:95: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 683 | for(const std::string& s : function_helpstrings("core")) { | ^ src/code_editor_dialog.cpp:683:88: note: the temporary was destroyed at the end of the full expression ‘function_helpstrings(std::~~~~^~~~ src/code_editor_dialog.cpp:686:104: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 686 | for(const std::string& s : function_helpstrings("custom_object")) { | ^ src/code_editor_dialog.cpp:686:88: note: the temporary was destroyed at the end of the full expression ‘function_helpstrings(std::__cxx11::basic_string~~~~^~~~~ Building: src/custom_object_functions.cpp Building: src/custom_object_type.cpp Building: src/db_client.cpp Building: src/debug_console.cpp Building: src/decimal.cpp Building: src/dialog.cpp Building: src/difficulty.cpp Building: src/distortion.cpp Building: src/drag_widget.cpp Building: src/draw_primitive.cpp Building: src/draw_scene.cpp Building: src/draw_tile.cpp Building: src/dropdown_widget.cpp Building: src/editor.cpp src/custom_object_functions.cpp: In member function ‘virtual variant {anonymous}::get_object_or_die_function::executeWithArgs(const game_logic::FormulaCallable&, const variant, int) const’: src/custom_object_functions.cpp:3388:36: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 3388 | const std::string& label = EVAL_ARG(1).as_string(); | ^~~~~ src/custom_object_functions.cpp:3388:65: note: the temporary was destroyed at the end of the full expression ‘((num_passed_args < 0) ? game_logic::FormulaExpression::evaluate(const game_logic::FormulaCallable&) const(( & variables)) : variant((*(passed_args + 16)))).variant::as_string()’ 3388 | const std::string& label = EVAL_ARG(1).as_string(); cc1plus: all warnings being treated as errors make: [Makefile:218: build/code_editor_dialog.o] Error 1 make: Waiting for unfinished jobs.... cc1plus: all warnings being treated as errors make: [Makefile:217: build/cairo.o] Error 1 cc1plus: all warnings being treated as errors make: [Makefile:217: build/custom_object_functions.o] Error 1sudo dnf -y install boost-devel boost-filesystem boost-iostreams boost-regex boost-system cairo-devel clang gcc git glew glew-devel glm-devel icu libvorbis-devel SDL2 SDL2-devel SDL2_image SDL2_image-devel SDL2_mixer SDL2_mixer-devel SDL2_ttf SDL2_ttf-devel
cd $HOME/ && git clone https://github.com/anura-engine/anura.git && cd $HOME/anura/modules/ && git clone https://github.com/frogatto/frogatto.git && mv frogatto frogatto4
cd $HOME/anura/ && git submodule init && git submodule update && git pull -f && make OVERRIDE_CC=clang OVERRIDE_CXX=clang++ STRIP_SYMBOLS=1 REGENIE=1 -j17 && rm -rfv $HOME/anura/build/ && cd $HOME/anura/modules/frogatto4/ && git pull -f