]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Get rid of commas at end of enum lists
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 22 May 2006 16:53:29 +0000 (16:53 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 9 Nov 2006 19:36:01 +0000 (11:36 -0800)
While comma at end of enumerator list is legal since 1999, some tools
(notably gcc versions pre-4.0) seem to default to 1989 mode when
running with -pedantic flag, and warn about this usage.

Since most of our enums in header files do not have comma at end, its
probably easier to fix the remaining two cases than educate all users
of libibverbs on virtues of C99.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
ChangeLog
include/infiniband/verbs.h

index 6f67a01d7e93f6807515f5bcfd597ad779d3c321..38e52367182120794198779100f5ece3788bfda9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-22  Michael S. Tsirkin  <mst@mellanox.co.il>
+
+       * include/infiniband/verbs.h: Remove trailing commas from
+       enumerators to quiet warnings from obsolete compilers.
+
 2006-05-02  Roland Dreier  <rdreier@cisco.com>
 
        * Release version 1.0.3.
index 2d1801cd9290e3e44dd3437b5a983accf27f9ba2..8d4cfc10e1f5d4b920c3fd495bfee2d30c4c16e3 100644 (file)
@@ -88,7 +88,7 @@ enum ibv_device_cap_flags {
        IBV_DEVICE_SYS_IMAGE_GUID       = 1 << 11,
        IBV_DEVICE_RC_RNR_NAK_GEN       = 1 << 12,
        IBV_DEVICE_SRQ_RESIZE           = 1 << 13,
-       IBV_DEVICE_N_NOTIFY_CQ          = 1 << 14,
+       IBV_DEVICE_N_NOTIFY_CQ          = 1 << 14
 };
 
 enum ibv_atomic_cap {
@@ -338,7 +338,7 @@ struct ibv_ah_attr {
 
 enum ibv_srq_attr_mask {
        IBV_SRQ_MAX_WR  = 1 << 0,
-       IBV_SRQ_LIMIT   = 1 << 1,
+       IBV_SRQ_LIMIT   = 1 << 1
 };
 
 struct ibv_srq_attr {