ib_verbs.h: Quiet compiler warning from rdma_node_get_transport
gcc version 4.0.0 20050519 indicates the following warning with
rdma_node_get_transport:
warning: control may reach end of non-void function ‘rdma_node_get_transport’
being inlined
Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]
Index: include/rdma/ib_verbs.h
===================================================================
--- include/rdma/ib_verbs.h (revision 5258)
+++ include/rdma/ib_verbs.h (working copy)
@@ -81,6 +81,7 @@ rdma_node_get_transport(enum rdma_node_t
return RDMA_TRANSPORT_IWARP;
default:
BUG();
+ return 0;
}
}
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general