[PATCH] winedump: Add a default case to numeric_leaf().

Gerald Pfeifer gerald at pfeifer.com
Sun Jan 19 15:57:17 CST 2020


This addresses two warnings issues by GCC 10 (currently in development
stage 4, so this is unlikely to change):

msc.c:687:9: warning: 'value' may be used uninitialized in this function
msc.c:301:13: warning: 'value' may be used uninitialized in this function

Gerald
---
 tools/winedump/msc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/winedump/msc.c b/tools/winedump/msc.c
index fbe7f9e541..6843f899b1 100644
--- a/tools/winedump/msc.c
+++ b/tools/winedump/msc.c
@@ -206,6 +206,7 @@ static int numeric_leaf(int* value, const unsigned short int* leaf)
     {
     case fv_integer: *value = fv.v.i; break;
     case fv_longlong: *value = (unsigned)fv.v.llu; printf("bad conversion\n"); break;
+    default: assert( 0 ); *value = 0;
     }
     return len;
 }
-- 
2.24.0



More information about the wine-devel mailing list