ctype: Avoid GCC note in towctrans_l.c

The previous version genenerated the following GCC note:

towctrans_l.c:44:1: note: offset of packed bit-field 'diff' has changed in GCC 4.4
 caseconv_table [] = {
 ^~~~~~~~~~~~~~

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber 2018-07-27 09:28:55 +02:00
parent d8d18c3e80
commit 0e5f252bc7
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ enum {TO1, TOLO, TOUP, TOBOTH};
enum {EVENCAP, ODDCAP};
static struct caseconv_entry {
uint_least32_t first: 21;
uint_least8_t diff: 8;
uint_least8_t mode: 2;
uint_least32_t diff: 8;
uint_least32_t mode: 2;
int_least32_t delta: 17;
} __attribute__ ((packed))
caseconv_table [] = {