Skip to content

Commit

Permalink
lib/flow: Use BUILD_MESSAGE() to warn if BUILD_SEQ is not updated
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 29, 2014
1 parent aa8ea22 commit dce96af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/flow.c
Expand Up @@ -123,6 +123,9 @@ struct mf_ctx {

#if (FLOW_WC_SEQ != 27)
#define MINIFLOW_ASSERT(X) ovs_assert(X)
BUILD_MESSAGE("FLOW_WC_SEQ changed: miniflow_extract() will have runtime "
"assertions enabled. Consider updating FLOW_WC_SEQ after "
"testing")
#else
#define MINIFLOW_ASSERT(X)
#endif
Expand Down

0 comments on commit dce96af

Please sign in to comment.