diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-27 14:52:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-27 14:52:32 +0100 |
| commit | 9a7dbc2acafdd04ff0fe09bc5f4838b4920348a8 (patch) | |
| tree | f274da1abc2a59923c7941b538842386462c8892 /modules | |
| parent | 7750302944af4485ed8e288af86905f0a38229e8 (diff) | |
| parent | f725bd99f4cedc9ce9cfc602b1aae8ee7b5a6a51 (diff) | |
Merge pull request #37351 from akien-mga/fix-warnings-Wmaybe-initialized
Fix some -Wmaybe-uninitialized warnings
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/basis_universal/register_types.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/basis_universal/register_types.cpp b/modules/basis_universal/register_types.cpp index 062b5b59f8..c29e91b5aa 100644 --- a/modules/basis_universal/register_types.cpp +++ b/modules/basis_universal/register_types.cpp @@ -174,7 +174,8 @@ static Ref<Image> basis_universal_unpacker(const Vector<uint8_t> &p_buffer) { //format = basist::transcoder_texture_format::cTFETC1; // get this from renderer //imgfmt = Image::FORMAT_RGTC_RG; } else { - //decompress + // FIXME: There wasn't anything here, but then imgformat is used uninitialized. + ERR_FAIL_V(image); } } break; case BASIS_DECOMPRESS_RGB: { |