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 a warning emerging from a testsuite in GTest on newer versions of Clang. #4605

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Apr 8, 2024

@fruffy fruffy marked this pull request as ready for review April 9, 2024 13:33
@fruffy fruffy changed the title Fix a warning emerging from a testsuite in GTest. Fix a warning emerging from a testsuite in GTest on newer versions of CLang. Apr 9, 2024
@fruffy fruffy requested a review from grg April 9, 2024 13:33
@fruffy fruffy changed the title Fix a warning emerging from a testsuite in GTest on newer versions of CLang. Fix a warning emerging from a testsuite in GTest on newer versions of Clang. Apr 9, 2024
lib/gc.cpp Outdated
// This error is possible when compiling with clang and including "mm_malloc.h" after the definition
// of posix_memalign. This can easily happen in unity builds.
#if defined(__clang__)
#include <mm_malloc.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this header clang-specific?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually, this is what I am using to fix build failures (#4595). Shouldn't be in this PR.

@fruffy fruffy force-pushed the fruffy/gtest_warning branch from e36cc46 to 3816c1f Compare April 9, 2024 15:10
Copy link
Contributor

@grg grg left a comment

Choose a reason for hiding this comment

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

LGTM

@fruffy fruffy enabled auto-merge April 9, 2024 15:15
@fruffy fruffy added this pull request to the merge queue Apr 9, 2024
Merged via the queue into main with commit 8e2b256 Apr 9, 2024
17 checks passed
@fruffy fruffy deleted the fruffy/gtest_warning branch April 9, 2024 16:59
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