diff options
author | Alberth <alberth289346@gmail.com> | 2018-06-23 09:27:09 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2018-06-23 14:00:41 +0200 |
commit | 1a5a95aa49bd191901301f9241a21c02a0579c00 (patch) | |
tree | 25c181480ba1f0456b456c8e3aa35d73f6f3656b /src | |
parent | 21ac11548a6c8905e4e80b678357064fba23fd29 (diff) | |
download | openttd-1a5a95aa49bd191901301f9241a21c02a0579c00.tar.xz |
Fix: Make switch on MD5File::ChecksumResult complete to avoid compiler warning
Diffstat (limited to 'src')
-rw-r--r-- | src/base_media_func.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base_media_func.h b/src/base_media_func.h index f30824ad2..2cb751fe0 100644 --- a/src/base_media_func.h +++ b/src/base_media_func.h @@ -131,6 +131,9 @@ bool BaseSet<T, Tnum_files, Tsearch_in_tars>::FillSetDetails(IniFile *ini, const file->check_result = T::CheckMD5(file, BASESET_DIR); switch (file->check_result) { + case MD5File::CR_UNKNOWN: + break; + case MD5File::CR_MATCH: this->valid_files++; this->found_files++; |