wasm: Mark switch case as unreachable
Fix "non-void function does not return a value in all control paths" warning. Change-Id: Idc58319b2704895ec56decabbdad67ffbf633ad7 Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
bcd3e500e1
commit
112e86a01e
@ -427,7 +427,7 @@ QSettingsPrivate *QSettingsPrivate::create(QSettings::Format format, QSettings::
|
|||||||
case QSettings::Format::InvalidFormat:
|
case QSettings::Format::InvalidFormat:
|
||||||
return nullptr;
|
return nullptr;
|
||||||
case QSettings::Format::NativeFormat:
|
case QSettings::Format::NativeFormat:
|
||||||
/* NOTREACHED */ assert(0);
|
Q_UNREACHABLE();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user