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

digitall 547637+digitall at users.noreply.github.com
Mon Oct 21 01:22:58 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:
dca112f94b COMMON: Fix Missing Default Switch Case in Coroutine Macros


Commit: dca112f94b188f797f42eababb39aef9bb891832
    https://github.com/scummvm/scummvm/commit/dca112f94b188f797f42eababb39aef9bb891832
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-21T00:19:41+01:00

Commit Message:
COMMON: Fix Missing Default Switch Case in Coroutine Macros

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

Changed paths:
    common/coroutines.h


diff --git a/common/coroutines.h b/common/coroutines.h
index 5e3fb4c..10e0bb2 100644
--- a/common/coroutines.h
+++ b/common/coroutines.h
@@ -149,7 +149,7 @@ public:
 	if (!x) { coroParam = x = new CoroContextTag(); } \
 	x->DUMMY = 0; \
 	Common::CoroContextHolder tmpHolder(coroParam); \
-	switch (coroParam->_line) { case 0:;
+	switch (coroParam->_line) { default: break; case 0:;
 
 /**
  * End the code section of a coroutine.





More information about the Scummvm-git-logs mailing list