The MinGW-w64 compiler complains about a non-void function which does not return a value.
This is not true, but we can help the compiler to see that by rewriting the code. Signed-off-by: Stefan Weil <s...@weilnetz.de> --- block/raw-win32.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/block/raw-win32.c b/block/raw-win32.c index e4b0b75..a420f73 100644 --- a/block/raw-win32.c +++ b/block/raw-win32.c @@ -335,12 +335,10 @@ static int find_device_type(BlockDriverState *bs, const char *filename) return FTYPE_HARDDISK; case DRIVE_CDROM: return FTYPE_CD; - default: - return FTYPE_FILE; } - } else { - return FTYPE_FILE; } + + return FTYPE_FILE; } static int hdev_probe_device(const char *filename) -- 1.7.0.4