Skip to content

Commit 29bb894

Browse files
committed
const up my_uca1400_collation_definitions
move this symbol out of the .data section
1 parent cacd251 commit 29bb894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libmariadb/ma_charset.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ typedef struct my_uca1400_collation_definition_st
968968
with IDs of their closest UCA1400 counterparts, for character sets
969969
utf8mb3, utf8mb4, ucs2, utf16, utf32.
970970
*/
971-
static MY_UCA1400_COLLATION_DEFINITION
971+
static const MY_UCA1400_COLLATION_DEFINITION
972972
my_uca1400_collation_definitions[MY_UCA1400_COLLATION_DEFINITION_COUNT]=
973973
{
974974
#define COLDEF(tl,name,id_utf8mb3,id_utf8mb4,id_ucs2,id_utf16,id_utf32) \
@@ -1041,7 +1041,7 @@ static uint my_uca1400_collation_id_uca400_compat(uint id)
10411041
{
10421042
uint tlid= my_uca1400_collation_id_to_tailoring_id(id);
10431043
my_cs_encoding_t csid= my_uca1400_collation_id_to_charset_id(id);
1044-
MY_UCA1400_COLLATION_DEFINITION *def;
1044+
const MY_UCA1400_COLLATION_DEFINITION *def;
10451045
DBUG_ASSERT(my_collation_id_is_uca1400(id));
10461046
if (!(def= &my_uca1400_collation_definitions[tlid])->name)
10471047
return id;

0 commit comments

Comments
 (0)