Unverified Commit cb49fa92 authored by Kenton Varda's avatar Kenton Varda Committed by GitHub

Merge pull request #614 from capnproto/silence-gzip-dtor-warning

Silence compiler warning about non-virtual dtor on non-final classes
parents 96105657 5cd9c993
......@@ -26,7 +26,7 @@
namespace kj {
class GzipAsyncInputStream: public AsyncInputStream {
class GzipAsyncInputStream final: public AsyncInputStream {
public:
GzipAsyncInputStream(AsyncInputStream& inner);
~GzipAsyncInputStream() noexcept(false);
......@@ -44,7 +44,7 @@ private:
Promise<size_t> readImpl(byte* buffer, size_t minBytes, size_t maxBytes, size_t alreadyRead);
};
class GzipAsyncOutputStream: public AsyncOutputStream {
class GzipAsyncOutputStream final: public AsyncOutputStream {
public:
GzipAsyncOutputStream(AsyncOutputStream& inner, int compressionLevel = Z_DEFAULT_COMPRESSION);
~GzipAsyncOutputStream() noexcept(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment