Merge pull request #4389 from Celelibi/fix-maybe-uninitialized-Og1

Fix compilation errors with -Og
This commit is contained in:
ajrhacker 2018-12-11 20:31:34 -05:00 committed by GitHub
commit 3045bdb804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -203,6 +203,9 @@ buildoptions {
}
configuration { }
buildoptions {
"-Wno-error=maybe-uninitialized"
}
defines {
"SOFTFLOAT_ROUND_ODD",
"INLINE_LEVEL=5",

View File

@ -705,7 +705,7 @@ public:
{
// read a chunk
std::unique_ptr<std::uint8_t []> chunk_data;
std::uint32_t chunk_type, chunk_length;
std::uint32_t chunk_type = 0, chunk_length;
error = read_chunk(fp, chunk_data, chunk_type, chunk_length);
if (PNGERR_NONE == error)
{