1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

i18n: fix warnings

This commit is contained in:
Gabor Kiss-Vamosi 2019-02-24 22:27:51 +01:00
parent c59c71b5c9
commit 72288f4450
2 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@
/********************** /**********************
* STATIC PROTOTYPES * STATIC PROTOTYPES
**********************/ **********************/
static const void * lv_i18n_get_text_core(lv_i18n_trans_t * trans, const char * msg_id); static const void * lv_i18n_get_text_core(const lv_i18n_trans_t * trans, const char * msg_id);
/********************** /**********************
* STATIC VARIABLES * STATIC VARIABLES
@ -238,7 +238,7 @@ const void * lv_i18n_get_current_local(void)
* STATIC FUNCTIONS * STATIC FUNCTIONS
**********************/ **********************/
static const void * lv_i18n_get_text_core(lv_i18n_trans_t * trans, const char * msg_id) static const void * lv_i18n_get_text_core(const lv_i18n_trans_t * trans, const char * msg_id)
{ {
uint16_t i; uint16_t i;
for(i = 0; trans[i].msg_id != NULL; i++) { for(i = 0; trans[i].msg_id != NULL; i++) {

View File

@ -49,12 +49,12 @@ typedef struct {
typedef struct { typedef struct {
const char * name; /*E.g. "en_GB"*/ const char * name; /*E.g. "en_GB"*/
lv_i18n_trans_t * simple; /*Translations of simple texts where no plurals are used*/ const lv_i18n_trans_t * simple; /*Translations of simple texts where no plurals are used*/
lv_i18n_trans_t * plurals[_LV_I18N_PLURAL_TYPE_NUM]; /*Translations of the plural forms*/ const lv_i18n_trans_t * plurals[_LV_I18N_PLURAL_TYPE_NUM]; /*Translations of the plural forms*/
uint8_t (*plural_rule)(int32_t num); /*Function pointer to get the correct plural form for a number*/ uint8_t (*plural_rule)(int32_t num); /*Function pointer to get the correct plural form for a number*/
}lv_i18n_lang_t; }lv_i18n_lang_t;
typedef lv_i18n_lang_t * lv_i18n_lang_pack_t; typedef const lv_i18n_lang_t * lv_i18n_lang_pack_t;
/********************** /**********************
* GLOBAL PROTOTYPES * GLOBAL PROTOTYPES