Page MenuHomeFreeBSD

sfxge(4): fix warnings from VS2015 C compiler (C4100)
ClosedPublic

Authored by arybchik on Nov 21 2018, 11:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 3, 8:41 AM
Unknown Object (File)
Wed, Nov 20, 10:56 AM
Unknown Object (File)
Wed, Nov 20, 10:44 AM
Unknown Object (File)
Jan 11 2024, 9:56 PM
Unknown Object (File)
Dec 23 2023, 1:16 AM
Unknown Object (File)
Nov 24 2023, 3:23 PM
Unknown Object (File)
Apr 22 2023, 3:42 PM
Unknown Object (File)
Mar 3 2023, 11:57 PM
Subscribers

Details

Summary

Fix multiple level 4 warnings
"C4100: 'xxx': unreferenced formal parameter"
no functional changes.

The _NOTE(ARGUNUSED(xxx)) annotations are being exposed to the Visual
Studio 2015 C compiler with the following:

#define _NOTE_ARGUNUSED(...) UNREFERENCED_PARAMETER((__VA_ARGS__));
#define _NOTE(_annotation)   _NOTE_ ## _annotation

Submitted by: Andrew Lee <alee at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week

Test Plan

amd64 tinderbox kernel builds tested
driver loaded/unloaded, interfaces up/down, traffic works fine

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20978
Build 20343: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 24 2018, 4:32 PM
This revision was automatically updated to reflect the committed changes.