public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] ctype: Avoid GCC note in towctrans_l.c
@ 2018-07-30  8:49 Sebastian Huber
  0 siblings, 0 replies; only message in thread
From: Sebastian Huber @ 2018-07-30  8:49 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0e5f252bc79f137a7747643dd1bc2693d98c0668

commit 0e5f252bc79f137a7747643dd1bc2693d98c0668
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Fri Jul 27 09:28:55 2018 +0200

    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>

Diff:
---
 newlib/libc/ctype/towctrans_l.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/ctype/towctrans_l.c b/newlib/libc/ctype/towctrans_l.c
index 7b8a23c..b829266 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 [] = {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-30  8:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-30  8:49 [newlib-cygwin] ctype: Avoid GCC note in towctrans_l.c Sebastian Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).