1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Silence compiler warning in HasTranslatedDocumentation function

This commit is contained in:
Mounir IDRASSI
2025-05-15 10:29:59 +09:00
parent a6f734ae2b
commit e1c7f2f043
2 changed files with 2 additions and 2 deletions

View File

@@ -11228,7 +11228,7 @@ BOOL HasTranslatedDocumentation(const char* language)
{ {
// hardcoded list of languages for which a translated documentation exists // hardcoded list of languages for which a translated documentation exists
const char* supportedLanguages[] = { "en", "ru", "zh-cn"}; const char* supportedLanguages[] = { "en", "ru", "zh-cn"};
for (int i = 0; i < sizeof(supportedLanguages) / sizeof(supportedLanguages[0]); i++) for (size_t i = 0; i < sizeof(supportedLanguages) / sizeof(supportedLanguages[0]); i++)
{ {
if (strcmp(language, supportedLanguages[i]) == 0) if (strcmp(language, supportedLanguages[i]) == 0)
return TRUE; return TRUE;

View File

@@ -73,7 +73,7 @@ namespace VeraCrypt
{ {
// hardcoded list of languages for which a translated documentation exists // hardcoded list of languages for which a translated documentation exists
const char* supportedLanguages[] = { "en", "ru", "zh-cn"}; const char* supportedLanguages[] = { "en", "ru", "zh-cn"};
for (int i = 0; i < sizeof(supportedLanguages) / sizeof(supportedLanguages[0]); i++) for (size_t i = 0; i < sizeof(supportedLanguages) / sizeof(supportedLanguages[0]); i++)
{ {
if (strcmp(language, supportedLanguages[i]) == 0) if (strcmp(language, supportedLanguages[i]) == 0)
return TRUE; return TRUE;