Skip to content

Commit 6e3d6f6

Browse files
yfeldblumfacebook-github-bot
authored andcommitted
fix various warning violations under llvm-19
Reviewed By: therealgymmy Differential Revision: D69936856 fbshipit-source-id: 92dbfaf474ee0ed546b0edcbb56adb3704159d80
1 parent 6e29644 commit 6e3d6f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cachelib/common/Serialization.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ std::unique_ptr<RecordReader> createMemoryRecordReader(
186186
template <typename ThriftObject, typename SerializationProto>
187187
void serializeProto(const ThriftObject& obj, RecordWriter& writer) {
188188
folly::IOBufQueue temp;
189-
SerializationProto::template serialize(obj, &temp);
189+
SerializationProto::serialize(obj, &temp);
190190
// Passes linked chain of IOBufs
191191
writer.writeRecord(temp.move());
192192
}

cachelib/common/tests/SerializationTest.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ TEST(Serializer, InvalidSerialization) {
4040
{
4141
const size_t smallSize = bytesUsed / 2;
4242
ASSERT_LT(smallSize, bytesUsed);
43-
uint8_t smallBuf[smallSize];
43+
uint8_t smallBuf[SerializationBufferSize];
4444
Serializer s2(&smallBuf[0], &smallBuf[smallSize - 1]);
4545
ASSERT_THROW(s2.serialize(m), std::exception);
4646
}

0 commit comments

Comments
 (0)