fixed clang compiler warnings (#586)

This commit is contained in:
Dhanya Thattil 2022-11-25 11:00:02 +01:00 committed by GitHub
parent 255a75a646
commit a2f41c13b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 6 deletions

View File

@ -50,7 +50,7 @@ void DetectorImpl::setupDetector(bool verify, bool update) {
ctb_shm.openSharedMemory(verify);
}
bool DetectorImpl::isAllPositions(const Positions pos) const {
bool DetectorImpl::isAllPositions(Positions pos) const {
return (pos.empty() || (pos.size() == 1 && pos[0] == -1) ||
(pos.size() == modules.size()));
}

View File

@ -190,7 +190,7 @@ class DetectorImpl : public virtual slsDetectorDefs {
}
}
bool isAllPositions(const Positions pos) const;
bool isAllPositions(Positions pos) const;
/** set acquiring flag in shared memory */
void setAcquiringFlag(bool flag);

View File

@ -24,7 +24,7 @@ class GeneralData;
class Fifo;
class File;
class DataStreamer;
struct MasterAttributes;
class MasterAttributes;
class DataProcessor : private virtual slsDetectorDefs, public ThreadObject {

View File

@ -13,8 +13,6 @@
namespace sls {
struct MasterAttributes;
class File : private virtual slsDetectorDefs {
public:

View File

@ -366,7 +366,6 @@ class Implementation : private virtual slsDetectorDefs {
bool activated{true};
std::array<bool, 2> detectorDataStream = {{true, true}};
std::array<bool, 2> detectorDataStream10GbE = {{true, true}};
std::array<bool, 2> portStream = {{true, true}};
int readNRows{0};
int thresholdEnergyeV{-1};
std::array<int, 3> thresholdAllEnergyeV = {{-1, -1, -1}};