Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Compiler flags cleanup #51

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Compiler flags cleanup #51

wants to merge 6 commits into from

Conversation

sfraczek
Copy link
Collaborator

also fix clang warning: no out-of-line virtual method definitions by
moving destructor definition to .cpp file.
@@ -110,7 +110,7 @@ shared_ptr<localization::rcnn::decoded>
}

cv::Size im_size{mp->width(), mp->height()};
auto crop = settings->cropbox;
//auto crop = settings->cropbox;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you left the commented variable ?

Copy link
Collaborator Author

@sfraczek sfraczek Jan 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I thought maybe it's a mistake that it's not used. Maybe it should be used but for some reason it's not. We don't have tests enabled for it. I left it as a hint to someone who might work on it in the future.
Should I remove it? Someone can later look at file history if they want to look for clues what's wrong.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can keep this line but I suggest to add comment with explanation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will remove it

@@ -182,6 +182,9 @@ void test_multinode_manifest(bool shuffle)
auto block = manifest.next();
auto block_node1 = manifest_node1.next();
auto block_node2 = manifest_node2.next();
(void) block;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need these lines ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to prevent warning that block variable is never used. I could add volalite to also prevent optimization of this just in case. I don't know this test well. Probably @AdrShv knows more.

CMakeLists.txt Outdated
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=return-type")
# should add this
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=suggest-override")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we remove commented lines ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok if you insist

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants