freebsd / kyua

Port/Package build and test system
https://github.com/freebsd/kyua/wiki
BSD 3-Clause "New" or "Revised" License
149 stars 42 forks source link

0.13: compile time warnings #215

Open kloczek opened 3 years ago

kloczek commented 3 years ago

Wint gcc 11.0.1 there are a lot of [-Wdeprecated-declarations] warnings like below:

In file included from cli/main.hpp:38,
                 from main.cpp:29:
./cli/common.hpp:71:14: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   71 | typedef std::auto_ptr< cli_command > cli_command_ptr;
      |              ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from ./cli/common.hpp:35,
                 from cli/main.hpp:38,
                 from main.cpp:29:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./cli/cmd_list.hpp:37,
                 from cli/cmd_list_test.cpp:29:
./cli/common.hpp:71:14: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   71 | typedef std::auto_ptr< cli_command > cli_command_ptr;
      |              ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from ./cli/common.hpp:35,
                 from ./cli/cmd_list.hpp:37,
                 from cli/cmd_list_test.cpp:29:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from cli/cmd_list_test.cpp:33:
./model/metadata.hpp:96:10: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   96 |     std::auto_ptr< impl > _pimpl;
      |          ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from ./cli/common.hpp:35,
                 from ./cli/cmd_list.hpp:37,
                 from cli/cmd_list_test.cpp:29:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from cli/cmd_list_test.cpp:34:
./model/test_program.hpp:90:10: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   90 |     std::auto_ptr< impl > _pimpl;
      |          ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from ./cli/common.hpp:35,
                 from ./cli/cmd_list.hpp:37,
                 from cli/cmd_list_test.cpp:29:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./cli/cmd_db_exec.hpp:37,
                 from cli/cmd_db_exec_test.cpp:29:
./cli/common.hpp:71:14: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   71 | typedef std::auto_ptr< cli_command > cli_command_ptr;
      |              ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from ./cli/common.hpp:35,
                 from ./cli/cmd_db_exec.hpp:37,
                 from cli/cmd_db_exec_test.cpp:29:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./cli/cmd_debug.hpp:35,
                 from cli/cmd_debug_test.cpp:29:
./cli/common.hpp:71:14: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   71 | typedef std::auto_ptr< cli_command > cli_command_ptr;
      |              ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from ./cli/common.hpp:35,
                 from ./cli/cmd_debug.hpp:35,
                 from cli/cmd_debug_test.cpp:29:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./cli/cmd_test.hpp:35,
                 from cli/cmd_test_test.cpp:29:
./cli/common.hpp:71:14: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   71 | typedef std::auto_ptr< cli_command > cli_command_ptr;
      |              ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from ./cli/common.hpp:35,
                 from ./cli/cmd_test.hpp:35,
                 from cli/cmd_test_test.cpp:29:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from ./cli/cmd_config.hpp:35,
                 from cli/cmd_config_test.cpp:29:
./cli/common.hpp:71:14: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   71 | typedef std::auto_ptr< cli_command > cli_command_ptr;
      |              ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from ./cli/common.hpp:35,
                 from ./cli/cmd_config.hpp:35,
                 from cli/cmd_config_test.cpp:29:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~
In file included from store/dbtypes_test.cpp:33:
./model/test_program.hpp:90:10: warning: 'template<class> class std::auto_ptr' is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
   90 |     std::auto_ptr< impl > _pimpl;
      |          ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
                 from /usr/include/atf-c++/tests.hpp:30,
                 from /usr/include/atf-c++/macros.hpp:33,
                 from /usr/include/atf-c++.hpp:29,
                 from store/dbtypes_test.cpp:31:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
   57 |   template<typename> class auto_ptr;
      |                            ^~~~~~~~