1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

GCC: Fix some compiler warnings in GCC 11

This commit is contained in:
Tom Poole 2022-04-01 16:39:37 +01:00
parent f69fe7be0f
commit e984395b1d
9 changed files with 13 additions and 15 deletions

View file

@ -104,7 +104,7 @@ struct CppTokeniserFunctions
static int parseIdentifier (Iterator& source) noexcept
{
int tokenLength = 0;
String::CharPointerType::CharType possibleIdentifier[100];
String::CharPointerType::CharType possibleIdentifier[100] = {};
String::CharPointerType possible (possibleIdentifier);
while (isIdentifierBody (source.peekNextChar()))

View file

@ -71,7 +71,7 @@ struct LuaTokeniserFunctions
static int parseIdentifier (Iterator& source) noexcept
{
int tokenLength = 0;
String::CharPointerType::CharType possibleIdentifier[100];
String::CharPointerType::CharType possibleIdentifier[100] = {};
String::CharPointerType possible (possibleIdentifier);
while (CppTokeniserFunctions::isIdentifierBody (source.peekNextChar()))