bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* lib/unistr/u8-uctomb.c fails to compile
@ 2020-01-20 16:27 Andreas Schwab
  2020-01-20 17:48 ` warning in lib/unistr/u8-uctomb.c Bruno Haible
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2020-01-20 16:27 UTC (permalink / raw)
  To: bug-grep; +Cc: bug-gnulib

../../grep/lib/unistr/u8-uctomb.c: In function 'u8_uctomb':
../../grep/lib/unistr/u8-uctomb.c:64:65: error: this statement may fall through [-Werror=implicit-fallthrough=]
             case 4: s[3] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x10000;
                                                              ~~~^~~~~~~~~~
../../grep/lib/unistr/u8-uctomb.c:65:13: note: here
             case 3: s[2] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x800;
             ^~~~
../../grep/lib/unistr/u8-uctomb.c:65:65: error: this statement may fall through [-Werror=implicit-fallthrough=]
             case 3: s[2] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0x800;
                                                              ~~~^~~~~~~~
../../grep/lib/unistr/u8-uctomb.c:66:13: note: here
             case 2: s[1] = 0x80 | (uc & 0x3f); uc = uc >> 6; uc |= 0xc0;
             ^~~~
cc1: all warnings being treated as errors

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-21  8:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 16:27 lib/unistr/u8-uctomb.c fails to compile Andreas Schwab
2020-01-20 17:48 ` warning in lib/unistr/u8-uctomb.c Bruno Haible
2020-01-21  8:48   ` Andreas Schwab

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).