fix gcc warnings
This commit is contained in:
parent
d1fb68eeac
commit
8456f6fc56
@ -103,6 +103,7 @@ void BasicParser<CharT>::skipWhitespaceCLikeComment(bool newline) {
|
||||
if (hasNext() && (is_whitespace(source[pos]) || source[pos] == '/')) {
|
||||
skipWhitespaceCLikeComment(newline);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
pos--;
|
||||
break;
|
||||
|
||||
@ -202,7 +202,7 @@ public:
|
||||
skipWhitespace(false);
|
||||
// Parse type name
|
||||
auto typeName = parseName();
|
||||
Param::Type type;
|
||||
Param::Type type {};
|
||||
if (!Param::TypeMeta.getItem(typeName, type)) {
|
||||
throw error("unsupported param type " + util::quote(typeName));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user