src/gui/ComponentLoader.cpp: In function ‘Component* loadGUIFile(const string&)’: src/gui/ComponentLoader.cpp:70:14: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 70 | std::auto_ptr desktop (new Desktop()); | ^~~~~~~~ In file included from /usr/include/c++/11.2.0/memory:76, from src/gui/ComponentFactory.hpp:29, from src/gui/ComponentLoader.cpp:27: /usr/include/c++/11.2.0/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ src/gui/ComponentLoader.cpp:75:10: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 75 | std::auto_ptr component (createComponent(componentName, reader)); | ^~~~~~~~ In file included from /usr/include/c++/11.2.0/memory:76, from src/gui/ComponentFactory.hpp:29, from src/gui/ComponentLoader.cpp:27: /usr/include/c++/11.2.0/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from src/gui/Paragraph.cpp:41: src/gui/Paragraph.cpp: In member function ‘virtual Component* INTERN_ParagraphFactory::createComponent(XmlReader&)’: src/gui/ComponentFactory.hpp:73:12: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro ‘DECLARE_COMPONENT_FACTORY’ 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/gui/Paragraph.cpp:536:1: note: in expansion of macro ‘IMPLEMENT_COMPONENT_FACTORY’ 536 | IMPLEMENT_COMPONENT_FACTORY(Paragraph); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11.2.0/memory:76, from src/gui/ComponentFactory.hpp:29, from src/gui/Paragraph.cpp:41: /usr/include/c++/11.2.0/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ src/gui/Button.cpp: In member function ‘void Button::setChildImage(Child&, XmlReader&)’: src/gui/Button.cpp:219:10: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 219 | std::auto_ptr image(new Image()); | ^~~~~~~~ In file included from /usr/include/c++/11.2.0/memory:76, from src/gui/Image.hpp:28, from src/gui/Button.cpp:32: /usr/include/c++/11.2.0/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ src/gui/Button.cpp: In member function ‘void Button::setChildText(Child&, XmlReader&)’: src/gui/Button.cpp:227:10: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 227 | std::auto_ptr paragraph(new Paragraph()); | ^~~~~~~~ In file included from /usr/include/c++/11.2.0/memory:76, from src/gui/Image.hpp:28, from src/gui/Button.cpp:32: /usr/include/c++/11.2.0/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from src/gui/Button.cpp:35: src/gui/Button.cpp: In member function ‘virtual Component* INTERN_ButtonFactory::createComponent(XmlReader&)’: src/gui/ComponentFactory.hpp:73:12: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro ‘DECLARE_COMPONENT_FACTORY’ 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/gui/Button.cpp:364:1: note: in expansion of macro ‘IMPLEMENT_COMPONENT_FACTORY’ 364 | IMPLEMENT_COMPONENT_FACTORY(Button) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11.2.0/memory:76, from src/gui/Image.hpp:28, from src/gui/Button.cpp:32: /usr/include/c++/11.2.0/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ In file included from src/gui/Image.cpp:29: src/gui/Image.cpp: In member function ‘virtual Component* INTERN_ImageFactory::createComponent(XmlReader&)’: src/gui/ComponentFactory.hpp:73:12: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 73 | std::auto_ptr component (new CLASS()); \ | ^~~~~~~~ src/gui/ComponentFactory.hpp:79:1: note: in expansion of macro ‘DECLARE_COMPONENT_FACTORY’ 79 | DECLARE_COMPONENT_FACTORY(CLASS) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/gui/Image.cpp:137:1: note: in expansion of macro ‘IMPLEMENT_COMPONENT_FACTORY’ 137 | IMPLEMENT_COMPONENT_FACTORY(Image); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11.2.0/memory:76, from src/gui/Image.hpp:28, from src/gui/Image.cpp:26: /usr/include/c++/11.2.0/bits/unique_ptr.h:57:28: note: declared here 57 | template class auto_ptr; | ^~~~~~~~ src/gui/XmlReader.cpp: In constructor ‘XmlReader::XmlReader(const string&)’: src/gui/XmlReader.cpp:42:35: warning: ‘const char* PHYSFS_getLastError()’ is deprecated [-Wdeprecated-declarations] 42 | << PHYSFS_getLastError(); | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/gui/XmlReader.cpp:29: /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/gui/XmlReader.cpp: In static member function ‘static int XmlReader::readCallback(void*, char*, int)’: src/gui/XmlReader.cpp:77:39: warning: ‘PHYSFS_sint64 PHYSFS_read(PHYSFS_File*, void*, PHYSFS_uint32, PHYSFS_uint32)’ is deprecated [-Wdeprecated-declarations] 77 | PHYSFS_sint64 result = PHYSFS_read(file, buffer, 1, len); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from src/gui/XmlReader.cpp:29: /usr/include/physfs.h:1333:27: note: declared here 1333 | PHYSFS_DECL PHYSFS_sint64 PHYSFS_read(PHYSFS_File *handle, | ^~~~~~~~~~~ src/gui/XmlReader.cpp:79:59: warning: ‘const char* PHYSFS_getLastError()’ is deprecated [-Wdeprecated-declarations] 79 | std::cerr << "Read error: " << PHYSFS_getLastError() << "\n"; | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/gui/XmlReader.cpp:29: /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/gui/XmlReader.cpp: In static member function ‘static int XmlReader::closeCallback(void*)’: src/gui/XmlReader.cpp:95:60: warning: ‘const char* PHYSFS_getLastError()’ is deprecated [-Wdeprecated-declarations] 95 | std::cerr << "Close error: " << PHYSFS_getLastError() << "\n"; | ~~~~~~~~~~~~~~~~~~~^~ In file included from src/gui/XmlReader.cpp:29: /usr/include/physfs.h:654:25: note: declared here 654 | PHYSFS_DECL const char *PHYSFS_getLastError(void) PHYSFS_DEPRECATED; | ^~~~~~~~~~~~~~~~~~~ src/gui/ScrollBar.cpp: In member function ‘void ScrollBar::parse(XmlReader&)’: src/gui/ScrollBar.cpp:84:22: warning: ‘template class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations] 84 | std::auto_ptr