mirror of
https://github.com/deepseek-ai/3FS.git
synced 2026-11-05 00:47:47 +00:00
[PR #44] [MERGED] robin hood: resolve warning on new clang #265
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/3FS#265
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/3FS/pull/44
Author: @huww98
Created: 3/2/2025
Status: ✅ Merged
Merged: 3/3/2025
Merged by: @SF-Zhou
Base:
main← Head:robin_hood📝 Commits (1)
0378677robin hood: resolve warning on new clang📊 Changes
1 file changed (+1 additions, -9 deletions)
View changed files
📝
src/common/utils/RobinHood.h(+1 -9)📄 Description
Clang has this weird behavior of setting
__GNUC__to 4, hence clang will always take the if branch. This is suboptimal because std::is_trivially_copyable has almost always been in clang.starting with clang 15 a warning is raised for the current implementation: warning: builtin __has_trivial_copy is deprecated; use __is_trivially_copyable instead [-Wdeprecated-builtins]
Since we are using -Werror, we should fix this.
Note this resolves the same issue with https://github.com/martinus/robin-hood-hashing/pull/166 , but with a different patch.
But that PR is never released, and the original repo is archived. So, I just removed this helper. GCC4 is too old to support.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.