diff --git a/CMakeLists.txt b/CMakeLists.txt index 25ddbfc6fadf007e82d5cb756bab36e586f3589f..3fca4db69271c4ea9b7110ffe04bfec4afc6a607 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,7 +126,8 @@ SET(${PROJECT_NAME}_SOURCES ADD_LIBRARY(${PROJECT_NAME} SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS}) -TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} SYSTEM PUBLIC ${EIGEN3_INCLUDE_DIR}) +TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} SYSTEM PUBLIC ${EIGEN3_INCLUDE_DIR} + ${Boost_INCLUDE_DIRS}) TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:include>) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${Boost_LIBRARIES}) diff --git a/include/dynamic-graph/command-bind.h b/include/dynamic-graph/command-bind.h index 5e199ac524e78b8677628ea513695052c07528a2..6abbf7f66f23f335f4f804385d7a61b547be7618 100644 --- a/include/dynamic-graph/command-bind.h +++ b/include/dynamic-graph/command-bind.h @@ -434,7 +434,7 @@ makeCommandReturnType0(E &entity, ReturnType (E::*function)(void), template <typename ReturnType> inline std::string docCommandReturnType0(const std::string &doc, - const std::string &return_type) { + const std::string & /* return_type */) { return std::string("\n") + doc + "\n\nNo input.\n" + typeid(ReturnType).name() + " return.\n\n"; } diff --git a/include/dynamic-graph/process-list.hh b/include/dynamic-graph/process-list.hh index 54c99d01fd52883d3314ae916cf3614ed0118d2c..94c4fc6004439ff86c3c2006f0f000ce59fbc314 100644 --- a/include/dynamic-graph/process-list.hh +++ b/include/dynamic-graph/process-list.hh @@ -4,7 +4,7 @@ */ #ifndef DYNAMIC_GRAPH_PROCESS_LIST_H_ -#define DYNAMIC_GRAPH_PROCESS_LIST_H +#define DYNAMIC_GRAPH_PROCESS_LIST_H_ #include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarchive.hpp> diff --git a/include/dynamic-graph/real-time-logger-def.h b/include/dynamic-graph/real-time-logger-def.h index ea48ebad90a12b087b85fa4968e0bf07911ccad7..86a2a260d782db8c955871a4501dc08516924477 100644 --- a/include/dynamic-graph/real-time-logger-def.h +++ b/include/dynamic-graph/real-time-logger-def.h @@ -32,6 +32,7 @@ public: class LoggerIOStream : public LoggerStream { public: LoggerIOStream(std::ostream &os) : os_(os) {} + virtual ~LoggerIOStream() {} virtual void write(const char *c) { os_ << c; } private: diff --git a/src/mt/process-list.cpp b/src/mt/process-list.cpp index 307209e4e190bf0c95aa812d2e2a311d9367c000..19a16bbc077ee67d0bce7c5a8f9e3ba44acc5c9c 100644 --- a/src/mt/process-list.cpp +++ b/src/mt/process-list.cpp @@ -141,8 +141,8 @@ void System::readProcStat() { if (!init_) { /// The number of CPU has been detected by going through /proc/stat. vCPUData_.resize(cpuNb_ + 1); - for (int i = 0; i < (int)cpuNb_; i++) - vCPUData_[i].cpu_id_ = i; + for (unsigned long i = 0; i < (unsigned long )cpuNb_; i++) + vCPUData_[i].cpu_id_ = (int)i; } aif.close(); }