From: Mathieu Desnoyers Date: Tue, 17 Sep 2019 18:12:07 +0000 (-0400) Subject: Cleanup: Silence gcc fall-through warning X-Git-Tag: v2.12.0-pre~28 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4e47802a923286a71ace2ade6a4ffd41099697b5;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. */