Clang-Tidy fixes (#6725)

This commit is contained in:
Pierre Wendling authored and GitHub committed 2022-12-01 13:07:03 -08:00
1 parent c2ce44bead
commit 3c501b963d
184 files changed
+1312 -1154

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ PrintText(const char *eventtype, const char *text)
expanded[0] = '\0';
for (spot = text; *spot; ++spot) {
size_t length = SDL_strlen(expanded);
SDL_snprintf(expanded + length, sizeof(expanded) - length, "\\x%.2x", (unsigned char)*spot);
(void)SDL_snprintf(expanded + length, sizeof expanded - length, "\\x%.2x", (unsigned char)*spot);
}
SDL_Log("%s Text (%s): \"%s%s\"\n", eventtype, expanded, *text == '"' ? "\\" : "", text);
}