Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2017 21:42:59 +0000 (UTC)
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r321668 - head/usr.sbin/bhyve
Message-ID:  <201707282142.v6SLgxAe088555@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707282142.v6SLgxAe088555>