THRIFT-1106. cpp: C++ code TAsyncProtocolProcessor.h & TAsyncBufferProcessor.h dont have virtual functions but no virtual destructor. Causes warnings on -Wall

Patch: Fasih

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1084656 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/async/TAsyncBufferProcessor.h b/lib/cpp/src/async/TAsyncBufferProcessor.h
index 06a503e..bfaf323 100644
--- a/lib/cpp/src/async/TAsyncBufferProcessor.h
+++ b/lib/cpp/src/async/TAsyncBufferProcessor.h
@@ -38,6 +38,7 @@
       std::tr1::function<void(bool healthy)> _return,
       boost::shared_ptr<apache::thrift::transport::TBufferBase> ibuf,
       boost::shared_ptr<apache::thrift::transport::TBufferBase> obuf) = 0;
+  virtual ~TAsyncBufferProcessor() {}
 };
 
 }}} // apache::thrift::async
diff --git a/lib/cpp/src/async/TAsyncProtocolProcessor.h b/lib/cpp/src/async/TAsyncProtocolProcessor.h
index 7ec718b..647bbb6 100644
--- a/lib/cpp/src/async/TAsyncProtocolProcessor.h
+++ b/lib/cpp/src/async/TAsyncProtocolProcessor.h
@@ -40,6 +40,8 @@
       boost::shared_ptr<apache::thrift::transport::TBufferBase> ibuf,
       boost::shared_ptr<apache::thrift::transport::TBufferBase> obuf);
 
+  virtual ~TAsyncProtocolProcessor() {}
+
  private:
   static void finish(
       std::tr1::function<void(bool healthy)> _return,