diff options
author | 2018-12-10 22:10:42 +0100 | |
---|---|---|
committer | 2018-12-11 14:26:30 +0100 | |
commit | 2f70f9698efc59e01ba6f47315ea736ecc2a5341 (patch) | |
tree | 7f9c6567fec77809305afbaa0aec2183bb7777cf | |
parent | 65bf009f970122261f55869cadbc5d3077a75452 (diff) |
Fix compilation errors with -Og
Signed-off-by: Celelibi <celelibi@gmail.com>
-rw-r--r-- | scripts/src/3rdparty.lua | 3 | ||||
-rw-r--r-- | src/lib/util/png.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index 2ccfa749e19..431507005bc 100644 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -203,6 +203,9 @@ buildoptions { } configuration { } +buildoptions { + "-Wno-error=maybe-uninitialized" +} defines { "SOFTFLOAT_ROUND_ODD", "INLINE_LEVEL=5", diff --git a/src/lib/util/png.cpp b/src/lib/util/png.cpp index 0a3b616b01f..6b13f4f9593 100644 --- a/src/lib/util/png.cpp +++ b/src/lib/util/png.cpp @@ -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) { |