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

FindUBSan fails with newer Clang versions when -Wextra is specified in user's CMAKE_CXX_FLAGS #1

Open
smspillaz opened this issue Oct 21, 2014 · 2 comments

Comments

@smspillaz
Copy link
Contributor

FindUBSan fails when UndefinedBehaviourSanitizer is supported on newer clang versions because FindUBSan uses check_cxx_source_compiles and the compiler may (if the user specified -Wextra) emit a warning about deleting an object with a non-virtual destructor at compile time which is caught by -Werror.

Ideally, this particular warning should be disabled so that we can get the undefined behaviour at runtime.

@alehaa
Copy link
Contributor

alehaa commented Nov 27, 2016

@smspillaz has the issue gone with the new version of sanitizers-cmake?

@smspillaz
Copy link
Contributor Author

@alehaa I'm not sure. I haven't been able to test this in some time. I'll be able to test it some time this week :)

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

No branches or pull requests

2 participants