Permalink
Browse files

Fix build with gcc-7 (#700)

Fixes warnings about fall through in case statements

../../git/transport/owr_transport_agent.c: In function 'bus_call':
../../git/transport/owr_transport_agent.c:393:20: error: this statement may fall through [-Werror=implicit-fallthrough=]
         is_warning = TRUE;

Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information...
kraj authored and stefhak committed Oct 18, 2017
1 parent 850fae0 commit b99c32ab2c933290c8c34c5e08b4ad60469c9a9b
@@ -379,6 +379,7 @@ static gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
case GST_MESSAGE_WARNING:
is_warning = TRUE;
/* fallthru */
case GST_MESSAGE_ERROR:
if (is_warning) {
@@ -179,7 +179,7 @@ static gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
case GST_MESSAGE_WARNING:
is_warning = TRUE;
/* fallthru */
case GST_MESSAGE_ERROR:
if (is_warning) {
message_type = "Warning";
@@ -165,6 +165,7 @@ static gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
case GST_MESSAGE_WARNING:
is_warning = TRUE;
/* fallthru */
case GST_MESSAGE_ERROR:
if (is_warning) {
@@ -391,7 +391,7 @@ static gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
case GST_MESSAGE_WARNING:
is_warning = TRUE;
/* fallthru */
case GST_MESSAGE_ERROR:
if (is_warning) {
message_type = "Warning";

0 comments on commit b99c32a

Please sign in to comment.