removed all the warnings and errors from the merge, also removed added -wextra compiler flag, (yet to add additional commands for moench)

This commit is contained in:
2019-02-12 11:09:19 +01:00
parent a64b34610a
commit 031a11c4f7
6 changed files with 9 additions and 11 deletions

View File

@ -31,7 +31,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-misleading-indentation") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-misleading-indentation")
endif() endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -std=c++11 ") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 ")
# set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=thread") # set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=thread")
# set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=thread") # set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=thread")

View File

@ -2123,7 +2123,7 @@ int multiSlsDetector::setROI(int n, ROI roiLimits[], int detPos) {
ymin = roiLimits[i].ymin; ymin = roiLimits[i].ymin;
ymax = roiLimits[i].ymax; ymax = roiLimits[i].ymax;
if (getDetectorsType() != JUNGFRAUCTB || getNumberOfDetectors() > 1) { if (getNumberOfDetectors() > 1) {
// check roi max values // check roi max values
idet = decodeNChannel(xmax, ymax, channelX, channelY); idet = decodeNChannel(xmax, ymax, channelX, channelY);
FILE_LOG(logDEBUG1) << "Decoded Channel max vals: " << std::endl FILE_LOG(logDEBUG1) << "Decoded Channel max vals: " << std::endl

View File

@ -1569,7 +1569,7 @@ public:
* @param addr wait address, -1 gets * @param addr wait address, -1 gets
* @returns actual value * @returns actual value
*/ */
uint64_t setCTBPatWaitAddr(uint64_t level, uint64_t addr=-1); int setCTBPatWaitAddr(uint64_t level, uint64_t addr=-1);
/** /**
* Sets the wait time in the CTB * Sets the wait time in the CTB

View File

@ -1,7 +1,5 @@
#include "slsDetectorUsers.h" #include "slsDetectorUsers.h"
#include "detectorData.h" #include "detectorData.h"
#include "multiSlsDetector.h"
#include "multiSlsDetectorClient.h" #include "multiSlsDetectorClient.h"
@ -235,11 +233,11 @@ int slsDetectorUsers::setFlowControl10G(int i, int detPos) {
} }
int slsDetectorUsers::setROI(int n, slsDetectorDefs::ROI roiLimits[], int detPos) { int slsDetectorUsers::setROI(int n, slsDetectorDefs::ROI roiLimits[], int detPos) {
return myDetector->setROI(n, roiLimits, detPos); return detector.setROI(n, roiLimits, detPos);
} }
slsDetectorDefs::ROI* slsDetectorUsers::getROI(int &n, int detPos) { slsDetectorDefs::ROI* slsDetectorUsers::getROI(int &n, int detPos) {
return myDetector->getROI(n, detPos); return detector.getROI(n, detPos);
} }
/************************************************************************ /************************************************************************

View File

@ -14,7 +14,7 @@
class detectorData; class detectorData;
class multiSlsDetector; #include "multiSlsDetector.h"
#include <cstdint> #include <cstdint>
#include <string> #include <string>

View File

@ -572,9 +572,9 @@ uint32_t Listener::ListenToAnImage(char* buf) {
RecordFirstIndices(fnum); RecordFirstIndices(fnum);
if (pnum >= pperFrame ) { if (pnum >= pperFrame ) {
FILE_LOG(logERROR, ("Bad packet %d (fnum:%lld), throwing away. " FILE_LOG(logERROR) << "Bad packet " << pnum <<
"Packets caught so far: %d\n", "(fnum: " << fnum << "), throwing away. "
pnum, (long long int)fnum, numpackets)); "Packets caught so far: " << numpackets;
return 0; // bad packet return 0; // bad packet
} }