fix gcc warnings

This commit is contained in:
MihailRis 2025-04-14 20:07:44 +03:00
parent d1fb68eeac
commit 8456f6fc56
2 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,7 @@ void BasicParser<CharT>::skipWhitespaceCLikeComment(bool newline) {
if (hasNext() && (is_whitespace(source[pos]) || source[pos] == '/')) {
skipWhitespaceCLikeComment(newline);
}
break;
default:
pos--;
break;

View File

@ -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));
}