Skip to content
Snippets Groups Projects
Commit 8faeaf2f authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Merge branch 'master' of gitlab.utu.fi:nicolas.pope/ftl

parents fa6e03a7 5ab362f7
No related branches found
No related tags found
No related merge requests found
Pipeline #12158 passed
...@@ -162,7 +162,7 @@ if (WIN32) # TODO(nick) Should do based upon compiler (VS) ...@@ -162,7 +162,7 @@ if (WIN32) # TODO(nick) Should do based upon compiler (VS)
set(OS_LIBS "") set(OS_LIBS "")
else() else()
add_definitions(-DUNIX) add_definitions(-DUNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -msse3") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -msse3 -Werror=return-type")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG -pg -Wall") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG -pg -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -mfpmath=sse") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -mfpmath=sse")
set(OS_LIBS "dl") set(OS_LIBS "dl")
......
...@@ -240,7 +240,7 @@ void ftl::gui::Camera::setChannel(ftl::rgbd::channel_t c) { ...@@ -240,7 +240,7 @@ void ftl::gui::Camera::setChannel(ftl::rgbd::channel_t c) {
} }
const GLTexture &ftl::gui::Camera::thumbnail() { const GLTexture &ftl::gui::Camera::thumbnail() {
return GLTexture();
} }
const GLTexture &ftl::gui::Camera::captureFrame() { const GLTexture &ftl::gui::Camera::captureFrame() {
...@@ -309,5 +309,5 @@ const GLTexture &ftl::gui::Camera::captureFrame() { ...@@ -309,5 +309,5 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
} }
nlohmann::json ftl::gui::Camera::getMetaData() { nlohmann::json ftl::gui::Camera::getMetaData() {
return nlohmann::json();
} }
...@@ -271,6 +271,7 @@ bool ftl::gui::Screen::mouseMotionEvent(const Eigen::Vector2i &p, const Eigen::V ...@@ -271,6 +271,7 @@ bool ftl::gui::Screen::mouseMotionEvent(const Eigen::Vector2i &p, const Eigen::V
} else { } else {
if (camera_) camera_->mouseMovement(rel[0], rel[1], button); if (camera_) camera_->mouseMovement(rel[0], rel[1], button);
} }
return true; // TODO: return statement was missing; is true correct?
} }
bool ftl::gui::Screen::mouseButtonEvent(const nanogui::Vector2i &p, int button, bool down, int modifiers) { bool ftl::gui::Screen::mouseButtonEvent(const nanogui::Vector2i &p, int button, bool down, int modifiers) {
......
...@@ -19,6 +19,8 @@ bool ThumbView::mouseButtonEvent(const nanogui::Vector2i &p, int button, bool do ...@@ -19,6 +19,8 @@ bool ThumbView::mouseButtonEvent(const nanogui::Vector2i &p, int button, bool do
if (button == 0 && !down) { if (button == 0 && !down) {
screen_->setActiveCamera(cam_); screen_->setActiveCamera(cam_);
} }
return false; // TODO: return statement was missing; is false correct?
} }
void ThumbView::draw(NVGcontext *ctx) { void ThumbView::draw(NVGcontext *ctx) {
......
...@@ -255,6 +255,8 @@ bool Correspondances::capture(cv::Mat &rgb1, cv::Mat &rgb2) { ...@@ -255,6 +255,8 @@ bool Correspondances::capture(cv::Mat &rgb1, cv::Mat &rgb2) {
} }
} }
} }
return true; // TODO: return statement was missing; is true correct?
} }
bool Correspondances::add(int tx, int ty, int sx, int sy) { bool Correspondances::add(int tx, int ty, int sx, int sy) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment