From c544c137f5e0cc50115cb5e26e8d0d5c8244df9d Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Mon, 22 Feb 2021 07:21:14 -0500 Subject: [PATCH] Compiler warning cleanup for movie.cpp. Reordered initializer in constructor to match the order in which they are declared. Gave case statement a default for unhandled enum values. --- src/movie.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/movie.cpp b/src/movie.cpp index a908bbff..de84b340 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -402,12 +402,12 @@ MovieData::MovieData() , fds(false) , palFlag(false) , PPUflag(false) - , RAMInitOption(0) - , RAMInitSeed(0) , rerecordCount(0) , binaryFlag(false) , loadFrameCount(-1) , microphone(false) + , RAMInitOption(0) + , RAMInitSeed(0) { memset(&romChecksum,0,sizeof(MD5DATA)); } @@ -735,6 +735,9 @@ bool LoadFM2(MovieData& movieData, EMUFILE* fp, int size, bool stopAfterHeader) state = VALUE; if(isnewline) goto commit; value += c; + break; + default: + break; } goto done;