winedump: Remove dead code (Coverity) (Try 2)

Andrew Talbot Andrew.Talbot at talbotville.com
Mon Oct 23 14:17:01 CDT 2006


To fix CID-41.

-- Andy.
---
Changelog:
    winedump: Remove dead code (Coverity).

diff -urN a/tools/winedump/dump.c b/tools/winedump/dump.c
--- a/tools/winedump/dump.c	2006-08-24 11:57:28.000000000 +0100
+++ b/tools/winedump/dump.c	2006-10-23 19:58:59.000000000 +0100
@@ -257,8 +257,6 @@
     {
 	switch (effective_sig)
 	{
-	case SIG_UNKNOWN: /* shouldn't happen... */
-	    ret = 0; break;
 	case SIG_PE:
 	case SIG_NE:
 	case SIG_LE:
@@ -273,6 +271,8 @@
         case SIG_MDMP:
             mdmp_dump();
             break;
+	default:       /* cover all enum values (for gcc),                   */
+	    assert(0); /* but avoid dead code for SIG_UNKNOWN (for Coverity) */
 	}
     }
     else



More information about the wine-patches mailing list