From 4e47802a923286a71ace2ade6a4ffd41099697b5 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 17 Sep 2019 14:12:07 -0400 Subject: [PATCH] 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 --- lttng-string-utils.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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. */ -- 2.34.1