Annotate implicit fall-through
[babeltrace.git] / common / common.c
index d261372d68e2c3d01ac267fa9f09cedfd74ecb51..68f537ba0187c08f0f5bfc89fdf83df6babe8d20 100644 (file)
@@ -822,7 +822,7 @@ void bt_common_normalize_star_glob_pattern(char *pattern)
                                goto end;
                        }
 
-                       /* Fall through default case. */
+                       /* fall-through */
                default:
                        got_star = false;
                        break;
@@ -1042,6 +1042,7 @@ retry:
                         * Fall through the default case which compares
                         * the escaped character now.
                         */
+                       /* fall-through */
                default:
                        if (at_end_of_pattern(p, pattern, pattern_len) ||
                                        *c != *p) {
@@ -1521,7 +1522,6 @@ void bt_common_custom_vsnprintf(char *buf, size_t buf_size,
 
        BT_ASSERT(buf);
        BT_ASSERT(fmt);
-       BT_ASSERT(*args);
 
        while (*fmt_ch != '\0') {
                switch (*fmt_ch) {
This page took 0.02487 seconds and 4 git commands to generate.