mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
Merge pull request #4389 from Celelibi/fix-maybe-uninitialized-Og1
Fix compilation errors with -Og
This commit is contained in:
commit
3045bdb804
@ -203,6 +203,9 @@ buildoptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
configuration { }
|
configuration { }
|
||||||
|
buildoptions {
|
||||||
|
"-Wno-error=maybe-uninitialized"
|
||||||
|
}
|
||||||
defines {
|
defines {
|
||||||
"SOFTFLOAT_ROUND_ODD",
|
"SOFTFLOAT_ROUND_ODD",
|
||||||
"INLINE_LEVEL=5",
|
"INLINE_LEVEL=5",
|
||||||
|
@ -705,7 +705,7 @@ public:
|
|||||||
{
|
{
|
||||||
// read a chunk
|
// read a chunk
|
||||||
std::unique_ptr<std::uint8_t []> chunk_data;
|
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);
|
error = read_chunk(fp, chunk_data, chunk_type, chunk_length);
|
||||||
if (PNGERR_NONE == error)
|
if (PNGERR_NONE == error)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user