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

0.13: compile time warnings #215

Open
kloczek opened this issue Feb 5, 2021 · 0 comments
Open

0.13: compile time warnings #215

kloczek opened this issue Feb 5, 2021 · 0 comments

Comments

@kloczek
Copy link

kloczek commented Feb 5, 2021

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;
      |                            ^~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant