Skip to content

Commit

Permalink
Silence -Wdeprecated warning on clang
Browse files Browse the repository at this point in the history
* definition of implicit copy constructor for 'SnappySinkAllocator'
  is deprecated because it has a user-declared destructor.
  • Loading branch information
HowardHinnant authored and Quuxplusone committed Jan 1, 2024
1 parent 8774875 commit 41a3ade
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion snappy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2341,7 +2341,6 @@ bool SnappyScatteredWriter<Allocator>::SlowAppendFromSelf(size_t offset,
class SnappySinkAllocator {
public:
explicit SnappySinkAllocator(Sink* dest) : dest_(dest) {}
~SnappySinkAllocator() {}

char* Allocate(int size) {
Datablock block(new char[size], size);
Expand Down

0 comments on commit 41a3ade

Please sign in to comment.