Gerald Pfeifer : winedump: Add a default case to numeric_leaf().

Alexandre Julliard julliard at winehq.org
Fri Jan 24 16:14:09 CST 2020


Module: wine
Branch: master
Commit: 7299735fdf6cd4f0d7c96cf9dc89f8ef50785e1b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7299735fdf6cd4f0d7c96cf9dc89f8ef50785e1b

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Thu Jan 23 23:09:00 2020 +0100

winedump: Add a default case to numeric_leaf().

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

Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;
 }




More information about the wine-cvs mailing list