From: Mathieu Desnoyers Date: Tue, 17 Sep 2019 18:12:07 +0000 (-0400) Subject: Cleanup: Silence gcc fall-through warning X-Git-Tag: v2.11.0-rc7~2 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=9dc6f9ba123c0979dc2572e7ba8df7b66982a76c;p=lttng-modules.git Cleanup: Silence gcc fall-through warning Use a comment pattern recognized by gcc 7.4.0 to silence the fall-through warning. Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-string-utils.c b/lttng-string-utils.c index 7b3504bb..416896cc 100644 --- a/lttng-string-utils.c +++ b/lttng-string-utils.c @@ -302,11 +302,12 @@ retry: p = pattern_get_char_at_cb(p_at, pattern_get_char_at_cb_data); + /* Fall-through. */ + default: /* - * Fall through the default case which will - * compare the escaped character now. + * Default case which will compare the escaped + * character now. */ - default: if (p == '\0' || c != p) { end_of_pattern: /* Character mismatch OR end of pattern. */