diff options
author | Steve Kondik <shade@chemlab.org> | 2017-07-08 01:49:14 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2017-07-08 02:28:12 -0700 |
commit | a6424624feda6f473e49f45f8c4bc32e3523c9e0 (patch) | |
tree | c293d7e3836b0357f1e2e4c483fbb1a6b7a412da /common/rdr/FdInStream.h | |
parent | 3f744f77f85b96de92fed53a60dc96d7d3f22eb0 (diff) | |
download | tigervnc-a6424624feda6f473e49f45f8c4bc32e3523c9e0.tar.gz tigervnc-a6424624feda6f473e49f45f8c4bc32e3523c9e0.zip |
Add missing virtual destructors
Fix warnings emitted by Clang:
/home/shade/dev/tigervnc/common/rdr/FdInStream.h:30:9: error: 'rdr::FdInStreamBlockCallback' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor]
class FdInStreamBlockCallback {
^
In file included from /home/shade/dev/tigervnc/common/network/TcpSocket.cxx:44:
In file included from /home/shade/dev/tigervnc/common/network/TcpSocket.h:31:
/home/shade/dev/tigervnc/common/network/Socket.h:82:9: error: 'network::ConnectionFilter' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor]
class ConnectionFilter {
^
..etc
Diffstat (limited to 'common/rdr/FdInStream.h')
-rw-r--r-- | common/rdr/FdInStream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/rdr/FdInStream.h b/common/rdr/FdInStream.h index 5d9598c8..b4c87653 100644 --- a/common/rdr/FdInStream.h +++ b/common/rdr/FdInStream.h @@ -30,6 +30,7 @@ namespace rdr { class FdInStreamBlockCallback { public: virtual void blockCallback() = 0; + virtual ~FdInStreamBlockCallback() {} }; class FdInStream : public InStream { |