Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning on clang #563

Merged
merged 2 commits into from
Oct 29, 2020
Merged

Fix warning on clang #563

merged 2 commits into from
Oct 29, 2020

Conversation

dellaert
Copy link
Member

Clang started spewing out warnings after cmake changes, because of this new flag. Makes me think there is some conditional logic missing :-) I commented out for now but suggest @jlblancoc takes over this PR and branch.

@jlblancoc
Copy link
Member

Copy that

@jlblancoc
Copy link
Member

I can't reproduce with my default clang version.
After cmake ., what are your values for: CMAKE_CXX_COMPILER_ID and CMAKE_CXX_COMPILER_VERSION? (first two lines of configuration list at the end)

@dellaert
Copy link
Member Author

I can't reproduce with my default clang version.
After cmake ., what are your values for: CMAKE_CXX_COMPILER_ID and CMAKE_CXX_COMPILER_VERSION? (first two lines of configuration list at the end)

Yeah, this is latest Xcode

Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.6.0
Thread model: posix

Which file can I find those flags in? grep yields no results

@jlblancoc
Copy link
Member

Clang started spewing out warnings after cmake changes, because of this new flag. Makes me think there is some conditional logic missing :-) I commented out for now but suggest @jlblancoc takes over this PR and branch.

Perhaps I misunderstood your problem from the beginning: is the problem that clang doesn't recognize the flag -Wsuggest-override (hence you commented it out), or that the flag is doing its job and detecting warnings in many places?

If it's the latter, we should fix it by finding out what are the offending headers and either fixing them by adding the override if they belong to gtsam, or including them with -isystem instead of -I if they are 3rd party code.

@dellaert
Copy link
Member Author

The flag is not recognized...

@jlblancoc
Copy link
Member

@dellaert This should work now...

@dellaert
Copy link
Member Author

Yay, thanks! BTW I might be less responsive (to anything) until CVPR deadline.

@dellaert
Copy link
Member Author

Note I cannot merge I because I was the original author of this PR :-) could you approve?

@jlblancoc
Copy link
Member

Done. Feel free to merge

@dellaert dellaert merged commit 2fc8785 into develop Oct 29, 2020
@dellaert dellaert deleted the fix/unknown-warning branch October 29, 2020 03:15
@dellaert
Copy link
Member Author

Done, and thanks!!!

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

Successfully merging this pull request may close these issues.

2 participants