Page MenuHomeFreeBSD

Fix compilation warnings when building ENA driver with gcc compiler
ClosedPublic

Authored by mk_semihalf.com on Oct 31 2017, 1:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 27, 10:52 AM
Unknown Object (File)
Mar 13 2025, 2:49 AM
Unknown Object (File)
Mar 7 2025, 9:51 PM
Unknown Object (File)
Mar 3 2025, 6:59 PM
Unknown Object (File)
Feb 23 2025, 3:57 PM
Unknown Object (File)
Jan 30 2025, 7:50 PM
Unknown Object (File)
Jan 18 2025, 9:44 PM
Unknown Object (File)
Nov 25 2024, 12:22 AM

Details

Summary

The gcc compiler is more sensitive when variable is having an value
assigned, but it is not used anywhere further.

Diff Detail

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

Event Timeline

rlibby added inline comments.
sys/dev/ena/ena.c
2765–2766 ↗(On Diff #34529)

Nothing wrong with this formulation, but an alternative would have been just to delete the ena_dev variable, since it is otherwise pointless. ena_handle_msix and ena_unmask_all_io_irqs appear to have gone with that approach.

This revision is now accepted and ready to land.Nov 1 2017, 6:33 AM
This revision was automatically updated to reflect the committed changes.