diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2006-05-22 16:53:29 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 11:36:01 -0800 |
commit | c3368d5ce2f63aaf146917e8e957a5cbff054c88 (patch) | |
tree | 48b2bfec1cb17f637341398b5ef6896ad32d60f5 | |
parent | 157e6c076cdcd6c2b9152e27b6c747cae4d5f0e4 (diff) | |
download | libibverbs-c3368d5ce2f63aaf146917e8e957a5cbff054c88.tar.gz |
Get rid of commas at end of enum lists
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>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/infiniband/verbs.h | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -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. diff --git a/include/infiniband/verbs.h b/include/infiniband/verbs.h index 2d1801c..8d4cfc1 100644 --- a/include/infiniband/verbs.h +++ b/include/infiniband/verbs.h @@ -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 { |