Skip to content

Conversation

royjacobson
Copy link
Contributor

Let's see if it works :)

@royjacobson royjacobson requested a review from adiholden May 21, 2023 14:03
Comment on lines +15 to +19
# Disabled because it has false positives with ref-counted intrusive pointers.
CHECK_CXX_COMPILER_FLAG("-Wuse-after-free" HAS_USE_AFTER_FREE_WARN)
if (HAS_USE_AFTER_FREE_WARN)
set(CMAKE_CXX_FLAGS "-Wno-use-after-free ${CMAKE_CXX_FLAGS}")
endif()
Copy link
Contributor

@dranikpg dranikpg May 21, 2023

Choose a reason for hiding this comment

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

For all? Or is it the false positive from helio's event count. Maybe we can surpress it somehow only for helio or even this exact case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's tricky because you'd have to suppress it where the actual compilation error is emitted. Which in this case would be the first place after GCC loses track of the ref-counting and decides the pointer is deleted, so it could be a different call site each time.

It's a relatively new and complex warning, so I'm pretty Ok with disabling it for now.

@romange romange merged commit 211be14 into main May 22, 2023
@romange romange deleted the ci_werror branch May 22, 2023 02:21
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.

3 participants