diff options
author | Damjan Marion <damarion@cisco.com> | 2016-11-07 14:57:50 +0100 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2016-11-07 14:53:29 +0000 |
commit | cf4789498d077a2733055b0144c5a4ea2e33d95f (patch) | |
tree | 934847846fa334ea0454953e3d8dbed44bb7f4f9 /vnet/vnet/dpo/dpo.h | |
parent | 109cd5026122c4174ef4b2c8a560d24d6eb07626 (diff) |
use STATIC_ASSERT macro instead of calling _Static_assert directly
Change-Id: Iccae655334b6219d22c325108b0e7f37d1dd68cf
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet/vnet/dpo/dpo.h')
-rw-r--r-- | vnet/vnet/dpo/dpo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vnet/vnet/dpo/dpo.h b/vnet/vnet/dpo/dpo.h index 2ab936e5f00..9065f88daae 100644 --- a/vnet/vnet/dpo/dpo.h +++ b/vnet/vnet/dpo/dpo.h @@ -154,9 +154,9 @@ typedef struct dpo_id_t_ { index_t dpoi_index; } __attribute__ ((aligned(sizeof(u64)))) dpo_id_t; -_Static_assert(sizeof(dpo_id_t) <= sizeof(u64), - "DPO ID is greater than sizeof u64 " - "atomic updates need to be revisited"); +STATIC_ASSERT(sizeof(dpo_id_t) <= sizeof(u64), + "DPO ID is greater than sizeof u64 " + "atomic updates need to be revisited"); /** * @brief An initialiser for DPos declared on the stack. |