Skip to content

Commit e92ab77

Browse files
committed
fix unused when not compiling with libnuma
1 parent 69deda2 commit e92ab77

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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/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)