mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
minor changes and removed W flag not found
This commit is contained in:
@ -12,7 +12,7 @@ option (USE_GUI "GUI" OFF)
|
||||
option (USE_TESTS "TESTS" ON)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -Wno-misleading-indentation")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")
|
||||
else ()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 ")
|
||||
endif ()
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "versionAPI.h"
|
||||
#include "slsDetectorCommand.h"
|
||||
#include "utilities.h"
|
||||
#include "string_utils.h"
|
||||
#include "MySocketTCP.h"
|
||||
|
||||
|
||||
@ -1770,7 +1771,7 @@ std::string slsDetector::getSettingsDir() {
|
||||
|
||||
|
||||
std::string slsDetector::setSettingsDir(std::string s) {
|
||||
sprintf(thisDetector->settingsDir, s.c_str());
|
||||
sls::strcpy_safe(thisDetector->settingsDir, s.c_str());
|
||||
return thisDetector->settingsDir;
|
||||
}
|
||||
|
||||
@ -3244,8 +3245,8 @@ std::string slsDetector::setDetectorNetworkParameter(networkParameter index, int
|
||||
int slsDetector::setUDPConnection() {
|
||||
int fnum = F_SETUP_RECEIVER_UDP;
|
||||
int ret = FAIL;
|
||||
char args[3][MAX_STR_LENGTH] = {0};
|
||||
char retvals[MAX_STR_LENGTH] = {0};
|
||||
char args[3][MAX_STR_LENGTH] = {{""}, {""}, {""}};;
|
||||
char retvals[MAX_STR_LENGTH] = {""};
|
||||
FILE_LOG(logDEBUG1) << "Setting UDP Connection";
|
||||
|
||||
// called before set up
|
||||
|
@ -480,8 +480,8 @@ private:
|
||||
/**
|
||||
* Print all variables
|
||||
*/
|
||||
void Print() const {
|
||||
GeneralData::Print();
|
||||
void Print(TLogLevel level = logDEBUG1) const {
|
||||
GeneralData::Print(level);
|
||||
FILE_LOG(logINFO) << "Bytes Per Adc: " << bytesPerAdc;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user