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
F133098654: D11774.diff
Wed, Oct 22, 11:21 PM
Unknown Object (File)
Sat, Oct 18, 2:42 AM
Unknown Object (File)
Tue, Oct 14, 3:54 PM
Unknown Object (File)
Sep 17 2025, 8:26 AM
Unknown Object (File)
Sep 12 2025, 3:52 PM
Unknown Object (File)
Jul 25 2025, 7:44 PM
Unknown Object (File)
Jul 23 2025, 6:56 AM
Unknown Object (File)
Jun 24 2025, 12:58 PM

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.