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 Clang deprecated builtins #1211

Merged

Conversation

adamscott
Copy link
Member

It seems that Clang and GCC have different interpretations of certain builtins. So this PR fixes the "deprecated" builtins for Clang, but keeps them for GCC.

Fixes #1210

@adamscott adamscott requested a review from a team as a code owner August 15, 2023 15:52
@adamscott adamscott added this to the 4.2 milestone Aug 15, 2023
@dsnopek
Copy link
Collaborator

dsnopek commented Aug 15, 2023

Thanks!

Looking at cowdata.h in Godot, it's using the functions from the C++11, ie std::is_trivially_destrucible(), etc. Perhaps it would be better to sync up with Godot, rather than adding the #ifdefs?

@adamscott adamscott force-pushed the fix-deprecated-builtins-clang branch from 0334915 to 1a49895 Compare August 15, 2023 22:49
It seems that Clang and GCC have different interpretations of certain
builtins. So this PR uses std <type_traits> functions just as cowdata.h
does in the godot project.
@adamscott adamscott force-pushed the fix-deprecated-builtins-clang branch from 1a49895 to 5c26284 Compare August 15, 2023 22:50
@adamscott
Copy link
Member Author

Looking at cowdata.h in Godot, it's using the functions from the C++11, ie std::is_trivially_destrucible(), etc. Perhaps it would be better to sync up with Godot, rather than adding the #ifdefs?

Done!

@akien-mga akien-mga added bug This has been identified as a bug and removed usability labels Aug 16, 2023
@akien-mga akien-mga merged commit 524bbd3 into godotengine:master Aug 16, 2023
11 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This has been identified as a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Clang] Use of deprecated builtins
3 participants