I switched over from Visual Studio 2017 to 2019 and I encountered a warning that I wasn't getting before. If I have a Vulkan-type member variable (i.e. VkCommandPool, VkBuffer, etc.) that is not initialized in the default constructor, I get the warning that is listed in my question title.
I've tried putting statements like
this->buffer = {};
or
this->buffer = 0;
but neither seem to do anything.
Example class:
class Example {
private:
VkBuffer buffer;
public:
// warning comes from here
Example() {
// NOTE: even with initialization in the constructor, I STILL get a warning
this->buffer = 0;
this->buffer = {};
}
// calls init with parameters
Example(/* parameters */) {
// implementation not relevant to the question
}
void init(/* parameters */) {
// implementation not relevant to the question
}
};