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:
parent
f69fe7be0f
commit
e984395b1d
9 changed files with 13 additions and 15 deletions
|
|
@ -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()))
|
||||
|
|
|
|||
|
|
@ -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()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue