Skip to content

Commit 496f22c

Browse files
authored
Merge pull request #271 from sy-c/master
v2.21.7
2 parents 87f88eb + 8556f61 commit 496f22c

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

doc/releaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,3 +600,6 @@ This file describes the main feature changes for each readout.exe released versi
600600

601601
## v2.21.6 - 09/11/2023
602602
- Minor changes: fix compilation warnings, FMQ API.
603+
604+
## v2.21.7 - 24/11/2023
605+
- Minor changes: fix for c++20 compatibility.

src/ConsumerFMQchannel.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct DataBlockFMQStats {
5555
uint64_t dataSizeAccounted;
5656
uint64_t memorySizeAccounted;
5757
};
58-
static_assert(std::is_pod<DataBlockFMQStats>::value, "DataBlockFMQStats is not a POD");
58+
static_assert(std::is_trivially_copyable<DataBlockFMQStats>::value, "DataBlockFMQStats is not a POD");
5959
static_assert(sizeof(DataBlockFMQStats) <= DataBlockHeaderUserSpace, "DataBlockFMQStats does not fit in DataBlock.userSpace");
6060

6161
#define timeNowMicrosec (std::chrono::duration_cast<std::chrono::microseconds>(std::chrono::steady_clock::now().time_since_epoch())).count

src/DataBlock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ typedef struct {
8787
const DataBlock defaultDataBlock = { .header = defaultDataBlockHeader, .data = nullptr };
8888

8989
// compile-time checks
90-
static_assert(std::is_pod<DataBlockHeader>::value, "DataBlockHeader is not a POD");
91-
static_assert(std::is_pod<DataBlock>::value, "DataBlock is not a POD");
90+
static_assert(std::is_trivially_copyable<DataBlockHeader>::value, "DataBlockHeader is not a POD");
91+
static_assert(std::is_trivially_copyable<DataBlock>::value, "DataBlock is not a POD");
9292

9393
#endif /* READOUT_DATABLOCK */
9494

src/ReadoutStats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct ReadoutStatsCounters {
6060
const uint32_t ReadoutStatsCountersVersion = 0xA0000004;
6161

6262
// need to be able to easily transmit this struct as a whole
63-
static_assert(std::is_pod<ReadoutStatsCounters>::value);
63+
static_assert(std::is_trivially_copyable<ReadoutStatsCounters>::value);
6464

6565
// utility to assign strings to uint64
6666
uint64_t stringToUint64(const char*);

src/ReadoutUtils.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ int getStatsFilesystem(unsigned long long &freeBytes, const std::string &path) {
267267
}
268268

269269
int numaBind(int numaNode) {
270+
(void)numaNode;
270271
#ifdef WITH_NUMA
271272
struct bitmask* nodemask = nullptr;
272273
if (numaNode>=0) {
@@ -291,6 +292,8 @@ int numaBind(int numaNode) {
291292
}
292293

293294
int numaGetNodeFromAddress(void *ptr, int &node) {
295+
(void)ptr;
296+
(void)node;
294297
#ifdef WITH_NUMA
295298
int err;
296299
node = -1;

src/ReadoutVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#define READOUT_VERSION "2.21.6"
12+
#define READOUT_VERSION "2.21.7"
1313

src/mainReadout.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,7 @@ int Readout::_configure(const boost::property_tree::ptree& properties)
12151215
// instanciate consumer of appropriate type
12161216
std::unique_ptr<Consumer> newConsumer = nullptr;
12171217
int cfgNumaNode = -1;
1218+
(void)cfgNumaNode;
12181219
try {
12191220
// configuration parameter: | consumer-* | consumerType | string | | The type of consumer to be instanciated. One of:stats, FairMQDevice, DataSampling, FairMQChannel, fileRecorder, checker, processor, tcp. |
12201221
std::string cfgType = "";

0 commit comments

Comments
 (0)