[Scummvm-git-logs] scummvm master -> a7c497af3b12b84df9dd1e7612a561df7388d050

digitall 547637+digitall at users.noreply.github.com
Sun Oct 6 10:54:33 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a7c497af3b COMMON: Add Missing Default Switch Case to U32String Class


Commit: a7c497af3b12b84df9dd1e7612a561df7388d050
    https://github.com/scummvm/scummvm/commit/a7c497af3b12b84df9dd1e7612a561df7388d050
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-06T09:51:01+01:00

Commit Message:
COMMON: Add Missing Default Switch Case to U32String Class

These are flagged by GCC if -Wswitch-default is enabled.

Changed paths:
    common/ustr.cpp


diff --git a/common/ustr.cpp b/common/ustr.cpp
index 3a78239..aab9dd6 100644
--- a/common/ustr.cpp
+++ b/common/ustr.cpp
@@ -542,6 +542,9 @@ String convertUtf32ToUtf8(const U32String &u32str) {
 			// fallthrough
 		case 1:
 			buffer = (char)(ch | firstByteMark[bytesToWrite]) + buffer;
+			break;
+		default:
+			break;
 		}
 
 		str += buffer;





More information about the Scummvm-git-logs mailing list