Dimitry Andric f4c19bd7e5 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
2012-04-20 21:43:19 +00:00
..
2012-04-20 21:37:42 +00:00
2012-04-05 04:41:06 +00:00
2012-03-27 20:36:03 +00:00
2012-04-20 21:37:42 +00:00
2012-04-20 04:40:39 +00:00
2012-02-28 15:07:05 +00:00
2012-04-19 15:30:15 +00:00
2012-03-30 19:10:14 +00:00
2012-04-16 10:33:46 +00:00
2012-04-17 00:54:38 +00:00