You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS/device including version:
Manjaro Linux; gcc 10.1.0
Issue description:
Compilation aborts because of uninitialized variable in drivers/vulkan/rendering_device_vulkan.cpp
[ 44%] Compiling ==> editor/audio_stream_preview.cpp
[ 44%] Compiling ==> editor/code_editor.cpp
In file included from ./core/ustring.h:35,
from ./core/string_name.h:36,
from ./core/node_path.h:34,
from ./core/hashfuncs.h:36,
from ./core/oa_hash_map.h:34,
from drivers/vulkan/rendering_device_vulkan.h:34,
from drivers/vulkan/rendering_device_vulkan.cpp:31:
./core/cowdata.h: In member function 'void RenderingDeviceVulkan::_draw_list_insert_clear_region(RenderingDeviceVulkan::DrawList*, RenderingDeviceVulkan::Framebuffer*, Point2i, Point2i, bool, const Vector<Color>&, bool, float, uint32_t)':
./core/cowdata.h:141:3: error: 'clear_at.VkClearAttachment::clearValue.VkClearValue::color.VkClearColorValue::float32[3]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
141 | _get_data()[p_index] = p_elem;
| ^~~~~~~~~
drivers/vulkan/rendering_device_vulkan.cpp:5647:21: note: 'clear_at.VkClearAttachment::clearValue.VkClearValue::color.VkClearColorValue::float32[3]' was declared here
5647 | VkClearAttachment clear_at;
| ^~~~~~~~
In file included from ./core/ustring.h:35,
from ./core/string_name.h:36,
from ./core/node_path.h:34,
from ./core/hashfuncs.h:36,
from ./core/oa_hash_map.h:34,
from drivers/vulkan/rendering_device_vulkan.h:34,
from drivers/vulkan/rendering_device_vulkan.cpp:31:
./core/cowdata.h:141:3: error: 'clear_at.VkClearAttachment::clearValue.VkClearValue::color.VkClearColorValue::float32[2]' may be used uninitialized in this function [-Werror=maybe-uninitialized]
141 | _get_data()[p_index] = p_elem;
| ^~~~~~~~~
drivers/vulkan/rendering_device_vulkan.cpp:5647:21: note: 'clear_at.VkClearAttachment::clearValue.VkClearValue::color.VkClearColorValue::float32[2]' was declared here
5647 | VkClearAttachment clear_at;
| ^~~~~~~~
cc1plus: all warnings being treated as errors
scons: *** [drivers/vulkan/rendering_device_vulkan.linuxbsd.opt.tools.64.o] Error 1
scons: building terminated because of errors.
The text was updated successfully, but these errors were encountered:
Godot version:
2737852
OS/device including version:
Manjaro Linux; gcc 10.1.0
Issue description:
Compilation aborts because of uninitialized variable in
drivers/vulkan/rendering_device_vulkan.cpp
The text was updated successfully, but these errors were encountered: