Skip to content

Commit

Permalink
Ignore warnings on missing virtual destructor
Browse files Browse the repository at this point in the history
The boost::system::error_category has a non virtual destructor but
virtual functions. There's probably a good reason for that and not
much to do about it so silence that reasonable warning from GCC when
inheriting from boost::system::error_category
  • Loading branch information
laudrup committed Feb 26, 2024
1 parent e5debef commit 4ac6589
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_stream/impl/error.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@

#include "error.hpp"

#ifdef __MINGW32__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#endif

namespace wintls {
namespace test {

Expand Down Expand Up @@ -45,6 +50,10 @@ public:
}
};

#ifdef __MINGW32__
#pragma GCC diagnostic pop
#endif

inline
error_code
make_error_code(wintls::test::error e) noexcept
Expand Down

0 comments on commit 4ac6589

Please sign in to comment.