Skip to content
Snippets Groups Projects
Commit 575c1d07 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Modified the main CMakeLists.txt to set the compiler flags for the C++...

Modified the main CMakeLists.txt to set the compiler flags for the C++ compiler instead of the C compiler.
Solved some compilation warnings that appeared.
parent a030187f
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,8 @@ IF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "DEBUG")
ENDIF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_C_FLAGS_DEBUG "-g -Wall -D_REENTRANT")
SET(CMAKE_C_FLAGS_RELEASE "-O3 -D_REENTRANT")
SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall -D_REENTRANT")
SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -D_REENTRANT")
ADD_SUBDIRECTORY(src)
......
......@@ -499,9 +499,8 @@ int CasteRx1::synchronizeHeader(const unsigned char *mark, int msecTimeOut, unsi
{
unsigned char cc;
string readMark, targetMark;
bool endLoop = false;
int retValue = BASIC_SUCCESS;
int ii=0;
unsigned int ii=0;
//sets targetMark
targetMark.append((const char*)mark,markSize);
......@@ -528,7 +527,6 @@ int CasteRx1::synchronizeHeader(const unsigned char *mark, int msecTimeOut, unsi
int CasteRx1::sendCommand(const string & cmnd)
{
int retValue;
int nn;
unsigned char replyBuffer[200];
string receivedReply, expectedReply;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment