summaryrefslogtreecommitdiff
path: root/lib/ofp-util.c
diff options
context:
space:
mode:
authorTimothy Redaelli <tredaelli@redhat.com>2017-06-23 18:12:49 +0200
committerBen Pfaff <blp@ovn.org>2017-07-11 13:05:34 -0700
commit73c7216a5329ece3b62281db64c5793061bdc007 (patch)
treeaebf4c9f1400cf2b53aa0bb77f83434c39328431 /lib/ofp-util.c
parent656238ee92c2f8fde2486af66d113b61ce63a95b (diff)
downloadopenvswitch-73c7216a5329ece3b62281db64c5793061bdc007.tar.gz
Fix some -Wimplicit-fallthrough warnings building with GCC 7
-Wimplicit-fallthrough warns when a switch case falls through and since this warning is enabled by -Wextra it breaks building with --enable-Werror. Added "/* fall through */" comment when needed in order to avoid the warning. Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/ofp-util.c')
-rw-r--r--lib/ofp-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 00b2c6b5a..6052d3cc5 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -9776,6 +9776,7 @@ ofputil_encode_group_mod(enum ofp_version ofp_version,
switch (ofp_version) {
case OFP10_VERSION:
bad_group_cmd(gm->command);
+ /* fall through */
case OFP11_VERSION:
case OFP12_VERSION: