From: Michael S. Tsirkin Date: Mon, 22 May 2006 16:53:29 +0000 (+0000) Subject: Get rid of commas at end of enum lists X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c3368d5ce2f63aaf146917e8e957a5cbff054c88;p=~shefty%2Flibibverbs.git 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 Signed-off-by: Roland Dreier --- diff --git a/ChangeLog b/ChangeLog index 6f67a01..38e5236 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-22 Michael S. Tsirkin + + * include/infiniband/verbs.h: Remove trailing commas from + enumerators to quiet warnings from obsolete compilers. + 2006-05-02 Roland Dreier * 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 {