summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberth <alberth289346@gmail.com>2018-06-23 09:27:09 +0200
committerMichael Lutz <michi@icosahedron.de>2018-06-23 14:00:41 +0200
commit1a5a95aa49bd191901301f9241a21c02a0579c00 (patch)
tree25c181480ba1f0456b456c8e3aa35d73f6f3656b
parent21ac11548a6c8905e4e80b678357064fba23fd29 (diff)
downloadopenttd-1a5a95aa49bd191901301f9241a21c02a0579c00.tar.xz
Fix: Make switch on MD5File::ChecksumResult complete to avoid compiler warning
-rw-r--r--src/base_media_func.h3
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++;