From 2eb6b32ef75ab44fdb8e734b07d1986a5baebad1 Mon Sep 17 00:00:00 2001 From: Sergey KHripchenko Date: Fri, 20 Apr 2012 19:16:26 +0400 Subject: [PATCH] fixes for make[2]: Entering directory `/home/laotse/src/abs/zeromq-git/src/libzmq-build/src' CXX libzmq_la-address.lo address.cpp: In destructor 'zmq::address_t::~address_t()': address.cpp:41:29: error: deleting object of polymorphic class type 'zmq::tcp_address_t' which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor] cc1plus: all warnings being treated as errors --- src/tcp_address.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcp_address.hpp b/src/tcp_address.hpp index 43a5cab0..8c5d8440 100644 --- a/src/tcp_address.hpp +++ b/src/tcp_address.hpp @@ -40,7 +40,7 @@ namespace zmq tcp_address_t (); tcp_address_t (const sockaddr *sa, socklen_t sa_len); - ~tcp_address_t (); + virtual ~tcp_address_t (); // This function translates textual TCP address into an address // strcuture. If 'local' is true, names are resolved as local interface