diff options
author | dim <dim@FreeBSD.org> | 2012-04-20 21:43:19 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-04-20 21:43:19 +0000 |
commit | 70020fe0fae7040b7fcf36c156e01de04a76496c (patch) | |
tree | 01e0d138db281aa73ebe6352a1bc90c04d75dc8d /lib/libc | |
parent | bec1819d5da47a13f51e7535a4fd287437078237 (diff) | |
download | FreeBSD-src-70020fe0fae7040b7fcf36c156e01de04a76496c.zip FreeBSD-src-70020fe0fae7040b7fcf36c156e01de04a76496c.tar.gz |
Fix the following compilation warnings in nxge(4):
sys/dev/nxge/if_nxge.c:1276:11: error: case value not in enumerated type 'xge_hal_event_e' (aka 'enum xge_hal_event_e') [-Werror,-Wswitch]
case XGE_LL_EVENT_TRY_XMIT_AGAIN:
^
sys/dev/nxge/if_nxge.c:1289:11: error: case value not in enumerated type 'xge_hal_event_e' (aka 'enum xge_hal_event_e') [-Werror,-Wswitch]
case XGE_LL_EVENT_DEVICE_RESETTING:
^
This is because the switch uses xge_queue_item_t::event_type, which is
an enum xge_hal_event_e, while the XGE_LL_EVENT_xx values are of the
enum xge_event_e.
Since messing around with the enum definitions is too disruptive, the
simplest fix is to cast the argument of the switch to int.
Reviewed by: gnn
MFC after: 1 week
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions