Changeset - r22918:df9cc6173f9b
[Not reviewed]
master
0 1 0
Alberth - 6 years ago 2018-06-23 07:27:09
alberth289346@gmail.com
Fix: Make switch on MD5File::ChecksumResult complete to avoid compiler warning
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/base_media_func.h
Show inline comments
 
@@ -122,24 +122,27 @@ bool BaseSet<T, Tnum_files, Tsearch_in_t
 
		/* Then find the warning message when the file's missing */
 
		item = origin->GetItem(filename, false);
 
		if (item == NULL) item = origin->GetItem("default", false);
 
		if (item == NULL) {
 
			DEBUG(grf, 1, "No origin warning message specified for: %s", filename);
 
			file->missing_warning = stredup("");
 
		} else {
 
			file->missing_warning = stredup(item->value);
 
		}
 

	
 
		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++;
 
				break;
 

	
 
			case MD5File::CR_MISMATCH:
 
				DEBUG(grf, 1, "MD5 checksum mismatch for: %s (in %s)", filename, full_filename);
 
				this->found_files++;
 
				break;
 

	
 
			case MD5File::CR_NO_FILE:
 
				DEBUG(grf, 1, "The file %s specified in %s is missing", filename, full_filename);
0 comments (0 inline, 0 general)