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] == '/')) {
|
if (hasNext() && (is_whitespace(source[pos]) || source[pos] == '/')) {
|
||||||
skipWhitespaceCLikeComment(newline);
|
skipWhitespaceCLikeComment(newline);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
pos--;
|
pos--;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -202,7 +202,7 @@ public:
|
|||||||
skipWhitespace(false);
|
skipWhitespace(false);
|
||||||
// Parse type name
|
// Parse type name
|
||||||
auto typeName = parseName();
|
auto typeName = parseName();
|
||||||
Param::Type type;
|
Param::Type type {};
|
||||||
if (!Param::TypeMeta.getItem(typeName, type)) {
|
if (!Param::TypeMeta.getItem(typeName, type)) {
|
||||||
throw error("unsupported param type " + util::quote(typeName));
|
throw error("unsupported param type " + util::quote(typeName));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user