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)
Dec 31 2023, 1:32 PM
Unknown Object (File)
Dec 20 2023, 5:24 AM
Unknown Object (File)
Oct 12 2023, 7:58 AM
Unknown Object (File)
Jun 27 2023, 10:08 AM
Unknown Object (File)
Jun 27 2023, 10:08 AM
Unknown Object (File)
Jun 27 2023, 10:06 AM
Unknown Object (File)
Jun 27 2023, 9:55 AM
Unknown Object (File)
Jun 27 2023, 6:00 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10731
Build 11128: arc lint + arc unit

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.