Skip to content

Commit 8eb66ff

Browse files
Mark Siblybnoazx005
authored andcommitted
Fix Macos compiler warnings
1 parent b3ce564 commit 8eb66ff

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

source/tcppLibrary.hpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,10 @@ namespace tcpp
412412
return "#elif found after #else block";
413413
case E_ERROR_TYPE::UNDEFINED_DIRECTIVE:
414414
return "Undefined directive";
415+
case E_ERROR_TYPE::INCORRECT_OPERATION_USAGE:
416+
return "Incorrect operation usage";
415417
case E_ERROR_TYPE::INCORRECT_STRINGIFY_OPERATOR_USAGE:
416-
return "Incorrect usage of stringification operation.";
418+
return "Incorrect usage of stringification operation";
417419
}
418420

419421
return "";
@@ -1296,14 +1298,6 @@ namespace tcpp
12961298

12971299
const bool isStringificationOperator = currToken.mType == E_TOKEN_TYPE::STRINGIZE_OP;
12981300

1299-
switch (currToken.mType)
1300-
{
1301-
case E_TOKEN_TYPE::CONCAT_OP:
1302-
break;
1303-
case E_TOKEN_TYPE::STRINGIZE_OP:
1304-
break;
1305-
}
1306-
13071301
while ((currToken = lexer.GetNextToken()).mType != E_TOKEN_TYPE::NEWLINE)
13081302
{
13091303
if (E_TOKEN_TYPE::IDENTIFIER == currToken.mType && currToken.mRawView == desc.mName)
@@ -1513,6 +1507,8 @@ namespace tcpp
15131507
case E_TOKEN_TYPE::CLOSE_BRACKET:
15141508
--currNestingLevel;
15151509
break;
1510+
default:
1511+
break;
15161512
}
15171513

15181514
currArgTokens.push_back(currToken);

0 commit comments

Comments
 (0)