Module: wine Branch: stable Commit: 483e26259ba0530a42be722976df63a489a0e6d9 URL: https://source.winehq.org/git/wine.git/?a=commit;h=483e26259ba0530a42be72297...
Author: Gerald Pfeifer gerald@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@pfeifer.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit 7299735fdf6cd4f0d7c96cf9dc89f8ef50785e1b) Signed-off-by: Michael Stefaniuc mstefani@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; }