svn commit: r328493 - head/lib/libthr/thread

Pedro F. Giffuni pfg at FreeBSD.org
Sat Jan 27 22:27:56 UTC 2018


Author: pfg
Date: Sat Jan 27 22:27:55 2018
New Revision: 328493
URL: https://svnweb.freebsd.org/changeset/base/328493

Log:
  libthr: Fix missing break in switch.
  
  This is also a warning in recent GCC with -Wimplicit-fallthrough.
  
  CID:	1356262
  Obtained from:	DragonFly (git 0f037c78 - partial)

Modified:
  head/lib/libthr/thread/thr_printf.c

Modified: head/lib/libthr/thread/thr_printf.c
==============================================================================
--- head/lib/libthr/thread/thr_printf.c	Sat Jan 27 22:16:19 2018	(r328492)
+++ head/lib/libthr/thread/thr_printf.c	Sat Jan 27 22:27:55 2018	(r328493)
@@ -95,6 +95,7 @@ next:			c = *fmt++;
 			case 'p':
 				pstr(fd, "0x");
 				islong = 1;
+				/* FALLTHROUGH */
 			case 'd':
 			case 'u':
 			case 'x':


More information about the svn-src-head mailing list