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@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 7299735fdf)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
stable
Gerald Pfeifer 2020-01-23 23:09:00 +01:00 committed by Michael Stefaniuc
parent da816802e0
commit 483e26259b
1 changed files with 1 additions and 0 deletions

View File

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