Skip to content

Commit

Permalink
Ignore unused return value of GetCodepointNext in GetCodepointCount (#…
Browse files Browse the repository at this point in the history
…3241)

* Ignore unused return value of GetCodepointNext in GetCodepointCount

Removes the last warning from non-external libraries when compiling with
the default build configuration on x64 Linux.

* Remove unnecessary void cast in GetCodepointCount
  • Loading branch information
ashn-dot-dev committed Aug 14, 2023
1 parent e2d4463 commit a86c93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ int GetCodepointCount(const char *text)
while (*ptr != '\0')
{
int next = 0;
int letter = GetCodepointNext(ptr, &next);
GetCodepointNext(ptr, &next);

ptr += next;

Expand Down

0 comments on commit a86c93e

Please sign in to comment.