From 5b4d4ca5eb1284edd4d5bfd6c6b0802e35bd6c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Vanda=C3=ABle?= Date: Fri, 21 Feb 2025 01:06:32 +0100 Subject: Fix multiple minor warnings - ExpressionParser.cpp: `-Wmissing-declarations` - AchievementManager.cpp: `-Wsign-compare` - SI.cpp: `-Warray-bounds=` - NetPlayClient.cpp: `-Wdangling-reference` --- Source/Core/InputCommon/ControlReference/ExpressionParser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/InputCommon/ControlReference/ExpressionParser.cpp') diff --git a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp index 5fccc2feef..df146f425c 100644 --- a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp +++ b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp @@ -26,12 +26,12 @@ using namespace ciface::Core; class ControlExpression; // Check if operator is usable with assignment, e.g. += -= *= -bool IsCompoundAssignmentUsableBinaryOperator(TokenType type) +static bool IsCompoundAssignmentUsableBinaryOperator(TokenType type) { return type >= TOK_COMPOUND_ASSIGN_OPS_BEGIN && type < TOK_COMPOUND_ASSIGN_OPS_END; } -TokenType GetBinaryOperatorTokenTypeFromChar(char c) +static TokenType GetBinaryOperatorTokenTypeFromChar(char c) { switch (c) { @@ -744,7 +744,7 @@ ParseResult ParseResult::MakeErrorResult(Token token, std::string description) return result; } -bool IsInertToken(const Token& tok) +static bool IsInertToken(const Token& tok) { return tok.type == TOK_COMMENT || tok.type == TOK_WHITESPACE; } -- cgit v1.2.3