Skip to content

Commit

Permalink
lib/flow: Update FLOW_WC_SEQ to skip assertions on miniflow_extract()
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
  • Loading branch information
ddiproietto authored and Jarno Rajahalme committed Aug 8, 2014
1 parent cc561ab commit 694ffec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flow.c
Expand Up @@ -118,10 +118,10 @@ struct mf_ctx {
/* miniflow_push_* macros allow filling in a miniflow data values in order.
* Assertions are needed only when the layout of the struct flow is modified.
* 'ofs' is a compile-time constant, which allows most of the code be optimized
* away. Some GCC versions gave warnigns on ALWAYS_INLINE, so these are
* away. Some GCC versions gave warnings on ALWAYS_INLINE, so these are
* defined as macros. */

#if (FLOW_WC_SEQ != 26)
#if (FLOW_WC_SEQ != 27)
#define MINIFLOW_ASSERT(X) ovs_assert(X)
#else
#define MINIFLOW_ASSERT(X)
Expand Down

0 comments on commit 694ffec

Please sign in to comment.