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
F145803677: D18122.id51059.diff
Tue, Feb 24, 4:53 PM
F145787927: D18122.id50719.diff
Tue, Feb 24, 12:18 PM
F145786245: D18122.id50719.diff
Tue, Feb 24, 11:45 AM
F145786244: D18122.id50719.diff
Tue, Feb 24, 11:45 AM
Unknown Object (File)
Mon, Feb 23, 9:36 AM
Unknown Object (File)
Sun, Feb 8, 3:20 AM
Unknown Object (File)
Jan 5 2026, 6:02 AM
Unknown Object (File)
Nov 25 2025, 10:10 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

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

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.