svn commit: r321668 - head/usr.sbin/bhyve

Ryan Libby rlibby at FreeBSD.org
Fri Jul 28 21:43:01 UTC 2017


Author: rlibby
Date: Fri Jul 28 21:42:59 2017
New Revision: 321668
URL: https://svnweb.freebsd.org/changeset/base/321668

Log:
  bhyve/pci_e82545.c: squelch gcc warning for noreturn procedure
  
  Gcc complained that e82545_tx_thread has a return type declared but
  doesn't return anything.  Annotate the procedure with _Noreturn.
  
  Reviewed by:	grehan
  Approved by:	markj (mentor)
  Sponsored by:	Dell EMC Isilon
  Differential Revision:	https://reviews.freebsd.org/D11774

Modified:
  head/usr.sbin/bhyve/pci_e82545.c

Modified: head/usr.sbin/bhyve/pci_e82545.c
==============================================================================
--- head/usr.sbin/bhyve/pci_e82545.c	Fri Jul 28 21:30:54 2017	(r321667)
+++ head/usr.sbin/bhyve/pci_e82545.c	Fri Jul 28 21:42:59 2017	(r321668)
@@ -1405,7 +1405,7 @@ e82545_tx_run(struct e82545_softc *sc)
 	    sc->esc_TDH, sc->esc_TDHr, sc->esc_TDT);
 }
 
-static void *
+static _Noreturn void *
 e82545_tx_thread(void *param)
 {
 	struct e82545_softc *sc = param;


More information about the svn-src-head mailing list