Skip to content

Commit da22ccc

Browse files
committed
clang: fix compile warnings on macos
1 parent 843f355 commit da22ccc

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

src/ReadoutEmulator/CruEmulator.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void CruLinkEmulator::linkReadoutThread()
3333
const auto cSuperpageSize = mMemHandler->getSuperpageSize();
3434
const auto cHBFrameSize = (mLinkBitsPerS / cHBFrameFreq) >> 3;
3535
const auto cStfLinkSize = cHBFrameSize * cHBFrameFreq / cStfPerS;
36-
const auto cNumDmaChunkPerSuperpage = std::min(size_t(256), cSuperpageSize / mDmaChunkSize);
36+
const auto cNumDmaChunkPerSuperpage = std::min(size_t(256), size_t(cSuperpageSize / mDmaChunkSize));
3737
constexpr int64_t cStfTimeUs = std::chrono::microseconds(1000000 / cStfPerS).count();
3838

3939
LOG(DEBUG) << "Superpage size: " << cSuperpageSize;

src/common/FilePathUtils.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <regex>
1818

1919
#include <string>
20+
#include <sstream>
2021
#include <iomanip>
2122
#include <chrono>
2223

src/common/include/SubTimeFrameDPL.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class StfDplAdapter : public ISubTimeFrameVisitor
3838
mMessages.reserve(1024);
3939
}
4040

41+
virtual ~StfDplAdapter() = default;
42+
4143
void sendToDpl(std::unique_ptr<SubTimeFrame>&& pStf);
4244

4345
protected:

src/common/include/SubTimeFrameDataModel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class SubTimeFrame : public IDataModelObject
262262
public:
263263
SubTimeFrame(TimeFrameIdType pStfId);
264264
//SubTimeFrame() = default;
265-
~SubTimeFrame() = default;
265+
virtual ~SubTimeFrame() = default;
266266
// no copy
267267
SubTimeFrame(const SubTimeFrame&) = delete;
268268
SubTimeFrame& operator=(const SubTimeFrame&) = delete;

src/common/include/SubTimeFrameFileWriter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class SubTimeFrameFileWriter : public ISubTimeFrameConstVisitor
4040
public:
4141
SubTimeFrameFileWriter() = delete;
4242
SubTimeFrameFileWriter(const boost::filesystem::path& pFileName, bool pWriteInfo = false);
43-
~SubTimeFrameFileWriter();
43+
virtual ~SubTimeFrameFileWriter();
4444

4545
///
4646
/// Writes a (Sub)TimeFrame

src/common/include/SubTimeFrameVisitors.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class InterleavedHdrDataSerializer : public ISubTimeFrameVisitor
4141
mMessages.reserve(1024);
4242
}
4343

44+
virtual ~InterleavedHdrDataSerializer() = default;
45+
4446
void serialize(std::unique_ptr<SubTimeFrame>&& pStf);
4547

4648
protected:
@@ -59,6 +61,7 @@ class InterleavedHdrDataDeserializer : public ISubTimeFrameVisitor
5961
{
6062
public:
6163
InterleavedHdrDataDeserializer() = default;
64+
virtual ~InterleavedHdrDataDeserializer() = default;
6265

6366
std::unique_ptr<SubTimeFrame> deserialize(FairMQChannel& pChan);
6467
std::unique_ptr<SubTimeFrame> deserialize(FairMQParts& pMsgs);

0 commit comments

Comments
 (0)