[openib-general] [PATCH] [TRIVIAL] ib_verbs.h: Quiet compiler warning from rdma_node_get_transport

Hal Rosenstock halr at voltaire.com
Wed Feb 1 15:17:20 PST 2006


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 <halr at voltaire.com

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;
        }
 }
 





More information about the general mailing list