Closed TestingPlant closed 2 years ago
clang++ -Wall emits the warning "suggest braces around initialization of subobject [-Wmissing-braces]" with code like
clang++ -Wall
VkClearValue clearColor = {0.0f, 0.0f, 0.0f, 1.0f};
Since this is trying to fill out clearColor.color.float32, 3 braces are needed like
clearColor.color.float32
VkClearValue clearColor = {{{0.0f, 0.0f, 0.0f, 1.0f}}};
to avoid the warning.
clang++ -Wall
emits the warning "suggest braces around initialization of subobject [-Wmissing-braces]" with code likeSince this is trying to fill out
clearColor.color.float32
, 3 braces are needed liketo avoid the warning.