Skip to content

Commit

Permalink
chore: Add UNUSED_PARAMETER macro to squawk_source_name function
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Jun 21, 2024
1 parent e09a05d commit 79a5590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/squawk-source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

const char *squawk_source_name(void *unused)
{
UNUSED_PARAMETER(unused);
return "Squawk Text-to-Speech";
}

Expand Down
2 changes: 1 addition & 1 deletion src/tts-utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ std::string phonetic_equivalent(std::string letter)
{
// return the phonetic equivalent of the letter
// e.g. "a" -> "aei", "b" -> "bee", "c" -> "see", etc.
letter = tolower((int)letter[0]);
letter = (char)tolower((int)letter[0]);
if (letter == "a") {
return "aei";
} else if (letter == "b") {
Expand Down

0 comments on commit 79a5590

Please sign in to comment.