Fix for compilation error about missing virtual destructor in GCDQueue (#236)

Summary:
error: destructor called on non-final 'facebook::sonar::GCDQueue' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
    __data_.second().~_Tp();
Pull Request resolved: https://github.com/facebook/flipper/pull/236

Reviewed By: passy

Differential Revision: D9351946

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 4718460ff587e1d5fa475a5f3bf115b1e2b5305f
This commit is contained in:
Oleksiy Ivanov
2018-08-16 08:41:49 -07:00
committed by Facebook Github Bot
parent 4e943dbb36
commit 6924416de8

View File

@@ -30,6 +30,8 @@ namespace facebook {
dispatch_async(_underlyingQueue, block); dispatch_async(_underlyingQueue, block);
} }
virtual ~GCDQueue() { }
private: private:
dispatch_queue_t _underlyingQueue; dispatch_queue_t _underlyingQueue;
}; };