flow: Workaround for GCC false-positive compilation error.
authorJarno Rajahalme <jrajahalme@nicira.com>
Thu, 27 Aug 2015 17:48:03 +0000 (10:48 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Thu, 27 Aug 2015 17:48:03 +0000 (10:48 -0700)
commit5ecf765c088190267137cdc7223ce3d835d224b5
tree10fe5e6b1e1c8c602533ed98cd798071046abae4
parente3e965094cefde523998ba68ad842a656ba25153
flow: Workaround for GCC false-positive compilation error.

Without an explicit bounds check GCC 4.9 issues an array out of bounds
error.  This patch adds explicit checks which will however be
optimized away as the relevant parameters are compile-time constants.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/flow.h