Page MenuHomeFreeBSD

bhyve/pci_e82545.c: squelch gcc warning for noreturn procedure
ClosedPublic

Authored by rlibby on Jul 28 2017, 5:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 6, 11:41 AM
Unknown Object (File)
Wed, Apr 29, 7:49 PM
Unknown Object (File)
Mon, Apr 20, 5:53 PM
Unknown Object (File)
Mon, Apr 20, 9:54 AM
Unknown Object (File)
Apr 16 2026, 9:51 PM
Unknown Object (File)
Apr 14 2026, 7:03 PM
Unknown Object (File)
Apr 11 2026, 4:42 PM
Unknown Object (File)
Apr 10 2026, 8:25 AM

Details

Summary

Gcc complained that e82545_tx_thread has a return type declared but
doesn't return anything. Annotate the procedure with _Noreturn.

An alternate approach might have been to add shutdown logic for this
pthread. I looked around some and didn't notice any shutdown hooks.

Test Plan

gcc

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Shutdown hooks will make it some day...

This revision is now accepted and ready to land.Jul 28 2017, 5:55 PM
This revision was automatically updated to reflect the committed changes.