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] == '/')) { if (hasNext() && (is_whitespace(source[pos]) || source[pos] == '/')) {
skipWhitespaceCLikeComment(newline); skipWhitespaceCLikeComment(newline);
} }
break;
default: default:
pos--; pos--;
break; break;

View File

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