-
Notifications
You must be signed in to change notification settings - Fork 801
Fixes warning with GCC 10.2 #2515
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
Conversation
Could you please elaborate more on why it is a problem? |
|
I am getting the following error during compilation and it gets fixed when I remove the const there. |
|
I corrected my compiler version in the title |
see this https://godbolt.org/z/P3b5K5, actually this might fail to compile because of something else. I am not sure why such a warning I am getting is fixed by this simple change. |
|
For more info, I am on a Ubuntu 20.04 system with |
|
Actually, this reproduces the issue, I copied all compiler flags to compiler explorer to reproduce it. |
|
This has the least number of compiler flags that still fails to compile |
Thank you, I also found some explanation here https://stackoverflow.com/questions/62733524/why-does-gcc-handle-a-const-reinterpret-cast-different-when-type-alias-is-used . |
[L0 v2] implement urKernelSuggestMaxCooperativeGroupCountExp
[L0 v2] implement urKernelSuggestMaxCooperativeGroupCountExp
The variable bufferRegion is already declared as const so there is no need for const inside reinterpret_cast.