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

compiler error GCC 11.4.0 in sparse_set.hpp #1194

Closed
beekayer opened this issue Nov 24, 2024 · 1 comment
Closed

compiler error GCC 11.4.0 in sparse_set.hpp #1194

beekayer opened this issue Nov 24, 2024 · 1 comment
Assignees
Labels
enhancement accepted requests, sooner or later I'll do it solved available upstream or in a branch

Comments

@beekayer
Copy link

On:
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

With entt checkout:
Using v3.14.0

Compiler Error:
/entt/entity/sparse_set.hpp: In member function ‘auto entt::basic_sparse_set<Entity, >::policy_to_head() const’:
/entt/src/entt/entity/sparse_set.hpp:168:50: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
168 | return static_cast<size_type>(max_size * static_cast<decltype(max_size)>(mode != deletion_policy::swap_only));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@beekayer
Copy link
Author

Sorry, not a compiler error per se, it's a warning and I build project with -Werror so I have to make an exception for entt and now project spews up that warning. You know what I mean.

@skypjack skypjack self-assigned this Nov 27, 2024
@skypjack skypjack added the enhancement accepted requests, sooner or later I'll do it label Nov 27, 2024
@skypjack skypjack added the solved available upstream or in a branch label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement accepted requests, sooner or later I'll do it solved available upstream or in a branch
Projects
None yet
Development

No branches or pull requests

2 participants