[Scummvm-git-logs] scummvm master -> 906f850a9cfbf128afd9016bf2ae5de5bf230423

digitall dgturner at iee.org
Sun Jan 15 12:40:34 CET 2017


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:
906f850a9c COMMON: Fix Variable Used Uninitialized Compiler Warning.


Commit: 906f850a9cfbf128afd9016bf2ae5de5bf230423
    https://github.com/scummvm/scummvm/commit/906f850a9cfbf128afd9016bf2ae5de5bf230423
Author: D G Turner (digitall at scummvm.org)
Date: 2017-01-15T11:46:42Z

Commit Message:
COMMON: Fix Variable Used Uninitialized Compiler Warning.

Changed paths:
    common/span.h


diff --git a/common/span.h b/common/span.h
index db6110a..0bb5a25 100644
--- a/common/span.h
+++ b/common/span.h
@@ -580,7 +580,7 @@ public:
 	const String name() const { return String::format("%p", static_cast<const void *>(data())); }
 
 	String getValidationMessage(const index_type index, const difference_type deltaInBytes, const SpanValidationMode mode) const {
-		const char *modeName;
+		const char *modeName = "unknown";
 		switch (mode) {
 			case kValidateRead:
 				modeName = "reading";





More information about the Scummvm-git-logs mailing list