Fix compilation errors with -Og

Signed-off-by: Celelibi <celelibi@gmail.com>
This commit is contained in:
Celelibi 2018-12-10 22:10:42 +01:00
parent 65bf009f97
commit 2f70f9698e
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)
{