Cleanup: Silence gcc fall-through warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 17 Sep 2019 18:12:07 +0000 (14:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 17 Sep 2019 18:13:10 +0000 (14:13 -0400)
Use a comment pattern recognized by gcc 7.4.0 to silence the
fall-through warning.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-string-utils.c

index 7b3504bb6202becf1a89fb7851534432bdfaa4b8..416896cc0bb22c9741815948a4bb6f104531a134 100644 (file)
@@ -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. */
This page took 0.026415 seconds and 4 git commands to generate.