diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2020-04-15 18:15:58 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2020-04-15 18:15:58 +0000 |
commit | 6671366a55357f11c18837b10d53f8884e7a1251 (patch) | |
tree | bf2114b05e2a9e4970aaf5b5ee729c2db0c2d1b8 /sys/net80211 | |
parent | 1565e1889abcc168d751158a9ad9bf8e4095f9e6 (diff) | |
download | src-6671366a55357f11c18837b10d53f8884e7a1251.tar.gz src-6671366a55357f11c18837b10d53f8884e7a1251.zip |
Fix -Wvoid-pointer-to-enum-cast warnings.
This pattern is used in callbacks with void * data arguments and seems
both relatively uncommon and relatively harmless. Silence the warning
by casting through uintptr_t.
This warning is on by default in Clang 11.
Reviewed by: arichardson
Obtained from: CheriBSD (partial)
MFC after: 1 week
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24425
Notes
Notes:
svn path=/head/; revision=359978
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 4632fe0056f3..835975bce1c4 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -3247,7 +3247,7 @@ static void ieee80211_tx_mgt_cb(struct ieee80211_node *ni, void *arg, int status) { struct ieee80211vap *vap = ni->ni_vap; - enum ieee80211_state ostate = (enum ieee80211_state) arg; + enum ieee80211_state ostate = (enum ieee80211_state)(uintptr_t)arg; /* * Frame transmit completed; arrange timer callback. If |