You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling yml translation files that do not contain any plural strings
en-GB:
s_en_only: english only
s_translated: s translated
s_untranslated: ~
ru-RU:
s_en_only: ~
s_translated: s переведено
s_untranslated: ~
to lv_i18n.c/h file without optimization enabled, the created source file accomodates zero size arrays that cannot be compiled with the compiler option -Wpedantic enabled:
...
#ifndef LV_I18N_OPTIMIZE
static const char * singular_idx[] = {
"This is a new text",
"s_en_only",
"s_translated",
"s_untranslated",
};
static const char * plural_idx[] = {
};
#endif
...
When compiling yml translation files that do not contain any plural strings
to lv_i18n.c/h file without optimization enabled, the created source file accomodates zero size arrays that cannot be compiled with the compiler option
-Wpedantic
enabled:The patch below adds a null pointer to the array when the translation memory does not contain any strings:
0001-Avoid-zero-size-array-creation.patch
The text was updated successfully, but these errors were encountered: