From 737a2b440d7b6a00b94ba1bcff0e3dcd5acca32a Mon Sep 17 00:00:00 2001 From: Phenom Date: Thu, 15 Feb 2018 18:57:16 +0100 Subject: [PATCH] Fix Gcc Warning in nxstesthub.cc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /tests/unittests/libretroshare/gxs/nxs_test/nxstesthub.cc:109: warning: deleting object of polymorphic class type ‘NotifyWithPeerId’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non- virtual-dtor] delete *it ; --- tests/unittests/libretroshare/gxs/nxs_test/nxstesthub.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unittests/libretroshare/gxs/nxs_test/nxstesthub.cc b/tests/unittests/libretroshare/gxs/nxs_test/nxstesthub.cc index 46dabe0a2..04df689c7 100644 --- a/tests/unittests/libretroshare/gxs/nxs_test/nxstesthub.cc +++ b/tests/unittests/libretroshare/gxs/nxs_test/nxstesthub.cc @@ -10,6 +10,7 @@ public: : mPeerId(val), mTestHub(hub){ } + virtual ~NotifyWithPeerId(){} void notifyNewMessages(std::vector& messages) {