Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-27 10:28:55 +0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-30 11:47:57 +0300
commit0e5f252bc79f137a7747643dd1bc2693d98c0668 (patch)
treeaedd9ec1a443e1280095e00f9be6d77628ced381 /newlib/libc/ctype
parentd8d18c3e80b029449240de8b3d970c03674e9617 (diff)
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>
Diffstat (limited to 'newlib/libc/ctype')
-rw-r--r--newlib/libc/ctype/towctrans_l.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/ctype/towctrans_l.c b/newlib/libc/ctype/towctrans_l.c
index 7b8a23c9c..b829266a4 100644
--- a/newlib/libc/ctype/towctrans_l.c
+++ b/newlib/libc/ctype/towctrans_l.c
@@ -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 [] = {