Scanning dependencies of target rme
[ 2%] Building CXX object CMakeFiles/rme.dir/source/about_window.cpp.o
[ 2%] Building CXX object CMakeFiles/rme.dir/source/action.cpp.o
[ 3%] Building CXX object CMakeFiles/rme.dir/source/application.cpp.o
[ 4%] Building CXX object CMakeFiles/rme.dir/source/artprovider.cpp.o
[ 5%] Building CXX object CMakeFiles/rme.dir/source/basemap.cpp.o
[ 6%] Building CXX object CMakeFiles/rme.dir/source/brush.cpp.o
[ 7%] Building CXX object CMakeFiles/rme.dir/source/brush_tables.cpp.o
[ 8%] Building CXX object CMakeFiles/rme.dir/source/browse_tile_window.cpp.o
[ 9%] Building CXX object CMakeFiles/rme.dir/source/positionctrl.cpp.o
[ 10%] Building CXX object CMakeFiles/rme.dir/source/carpet_brush.cpp.o
[ 11%] Building CXX object CMakeFiles/rme.dir/source/client_version.cpp.o
[ 12%] Building CXX object CMakeFiles/rme.dir/source/common.cpp.o
[ 13%] Building CXX object CMakeFiles/rme.dir/source/common_windows.cpp.o
[ 14%] Building CXX object CMakeFiles/rme.dir/source/complexitem.cpp.o
In file included from /home/rafael/rme/source/client_version.cpp:21:
/home/rafael/rme/source/filehandle.h: In member function ‘bool FileReadHandle::getType(T&) [with T = unsigned int]’:
/home/rafael/rme/source/filehandle.h:96:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
96 | fread(&ref, sizeof(ref), 1, file);
|
Code:
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 15%] Building CXX object CMakeFiles/rme.dir/source/container_properties_window.cpp.o
[ 16%] Building CXX object CMakeFiles/rme.dir/source/copybuffer.cpp.o
[ 17%] Building CXX object CMakeFiles/rme.dir/source/creature_brush.cpp.o
[ 18%] Building CXX object CMakeFiles/rme.dir/source/creature.cpp.o
[ 20%] Building CXX object CMakeFiles/rme.dir/source/creatures.cpp.o
[ 21%] Building CXX object CMakeFiles/rme.dir/source/dat_debug_view.cpp.o
[ 22%] Building CXX object CMakeFiles/rme.dir/source/dcbutton.cpp.o
[ 23%] Building CXX object CMakeFiles/rme.dir/source/doodad_brush.cpp.o
[ 24%] Building CXX object CMakeFiles/rme.dir/source/editor.cpp.o
[ 25%] Building CXX object CMakeFiles/rme.dir/source/editor_tabs.cpp.o
[ 26%] Building CXX object CMakeFiles/rme.dir/source/eraser_brush.cpp.o
[ 27%] Building CXX object CMakeFiles/rme.dir/source/extension.cpp.o
[ 28%] Building CXX object CMakeFiles/rme.dir/source/extension_window.cpp.o
[ 29%] Building CXX object CMakeFiles/rme.dir/source/find_item_window.cpp.o
[ 30%] Building CXX object CMakeFiles/rme.dir/source/filehandle.cpp.o
[ 31%] Building CXX object CMakeFiles/rme.dir/source/graphics.cpp.o
In file included from /home/rafael/rme/source/filehandle.cpp:20:
/home/rafael/rme/source/filehandle.h: In member function ‘bool FileReadHandle::getType(T&) [with T = short unsigned int]’:
/home/rafael/rme/source/filehandle.h:96:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
96 | fread(&ref, sizeof(ref), 1, file);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/rafael/rme/source/filehandle.h: In member function ‘bool FileReadHandle::getType(T&) [with T = unsigned int]’:
/home/rafael/rme/source/filehandle.h:96:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
/home/rafael/rme/source/filehandle.cpp: In member function ‘virtual BinaryNode* DiskNodeFileReadHandle::getRootNode()’:
/home/rafael/rme/source/filehandle.cpp:301:7: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
301 | fread(&first, 1, 1, file);
|
Code:
~~^~~~~~~~~~~~~~~~~~~~
[ 32%] Building CXX object CMakeFiles/rme.dir/source/ground_brush.cpp.o
[ 33%] Building CXX object CMakeFiles/rme.dir/source/gui.cpp.o
[ 34%] Building CXX object CMakeFiles/rme.dir/source/house_brush.cpp.o
In file included from /home/rafael/rme/source/graphics.cpp:23:
/home/rafael/rme/source/filehandle.h: In member function ‘bool FileReadHandle::getType(T&) [with T = unsigned char]’:
/home/rafael/rme/source/filehandle.h:96:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
96 | fread(&ref, sizeof(ref), 1, file);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/home/rafael/rme/source/filehandle.h: In member function ‘bool FileReadHandle::getType(T&) [with T = int]’:
/home/rafael/rme/source/filehandle.h:96:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
/home/rafael/rme/source/filehandle.h: In member function ‘bool FileReadHandle::getType(T&) [with T = signed char]’:
/home/rafael/rme/source/filehandle.h:96:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
/home/rafael/rme/source/filehandle.h: In member function ‘bool FileReadHandle::getType(T&) [with T = unsigned int]’:
/home/rafael/rme/source/filehandle.h:96:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
/home/rafael/rme/source/filehandle.h: In member function ‘bool FileReadHandle::getType(T&) [with T = short unsigned int]’:
/home/rafael/rme/source/filehandle.h:96:8: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
/home/rafael/rme/source/gui.cpp: In static member function ‘static wxString GUI::GetDataDirectory()’:
/home/rafael/rme/source/gui.cpp:142:13: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
142 | catch(std::bad_cast)
| ^~~~~~~~
/home/rafael/rme/source/gui.cpp: In static member function ‘static wxString GUI::GetExecDirectory()’:
/home/rafael/rme/source/gui.cpp:159:13: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
159 | catch(std::bad_cast)
| ^~~~~~~~
/home/rafael/rme/source/gui.cpp: In member function ‘void GUI::ShowWelcomeDialog(const wxBitmap&)’:
/home/rafael/rme/source/gui.cpp:1186:106: error: ‘class MainFrame’ has no member named ‘FromDIP’
1186 | ME_APPLICATION_NAME__, "Version " +
W_RME_VERSION, root->FromDIP(wxSize(800, 480)), icon, recent_files);
| ^~~~~~~
make[2]: *** [CMakeFiles/rme.dir/build.make:466: CMakeFiles/rme.dir/source/gui.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/rme.dir/all] Error 2
make: *** [Makefile:84: all] Error 2