Skip to content
Snippets Groups Projects
Commit 8afb3fa8 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 c64778e9
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,8 @@ IF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "DEBUG")
ENDIF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_C_FLAGS_DEBUG "-g -Wall")
SET(CMAKE_C_FLAGS_RELEASE "-O3")
SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall")
SET(CMAKE_CXX_FLAGS_RELEASE "-O3")
ADD_SUBDIRECTORY(src)
......
......@@ -61,6 +61,7 @@ void *my_thread_function2(void *param)
i++;
sleep(1);
}
pthread_exit(NULL);
}
/// Function with parameters
......
......@@ -52,6 +52,7 @@ void *my_thread_function1(void *param)
i++;
sleep(1);
}
pthread_exit(NULL);
}
/**
......
......@@ -233,7 +233,7 @@ class CLog
template<class T>
void log_vector(const std::vector<T>& values)
{
int i=0;
unsigned int i=0;
this->access.enter();
this->time_stamp.set();
......
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