-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
-Wmaybe-unitialized warnings in RenderingDeviceVulkan with GCC #38829
Comments
I stumbled on the same issue. This can be worked around by ignoring the warnings with the |
I can confirm the exact same issue when trying to build the package on Arch Linux Kernel: 5.4.46-1-lts |
Apparently it’s happening with all the Godot builds available in AUR repository. I just tried it first time and I love it. I really wanna work with the godot-git version but I don’t want to manually install them in system. It would be nice if this issue is resolved asap. |
Ask the Arch package maintainers to add |
It's recommended to use |
Just quick a look at relevant code: godot/drivers/vulkan/rendering_device_vulkan.cpp Lines 3066 to 3110 in d808697
"else" branches probably should be: description.storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
description.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
description.finalLayout = VK_IMAGE_LAYOUT_UNDEFINED; sicne And godot/drivers/vulkan/rendering_device_vulkan.cpp Lines 5545 to 5561 in d808697
Second one is probably not used anyway, first might be actual error. |
The changes from godotengine#38835 were not sufficient to fix godotengine#38829, as VkClearAttachment still had uninitialized member structs in its VkClearColor member struct. The struct rabbit hole goes deep and trying to do validation as done in godotengine#38829 doesn't appear realistic.
The changes from godotengine#38835 were not sufficient to fix godotengine#38829, as VkClearAttachment still had uninitialized member structs in its VkClearColor member struct. The struct rabbit hole goes deep and trying to do validation as done in godotengine#38829 doesn't appear realistic.
Godot version:
4.0.r1.0187cda-1
OS/device including version:
arch linux intel 4500u
built with gcc version 10.1.0
Issue description:
While compiling:
The text was updated successfully, but these errors were encountered: