diff options
-rw-r--r-- | eval.c | 4 | ||||
-rw-r--r-- | parse.c | 18 | ||||
-rw-r--r-- | printf.c | 2 | ||||
-rw-r--r-- | util.h | 6 |
4 files changed, 15 insertions, 15 deletions
@@ -238,10 +238,10 @@ bool eval_time(const struct expr *expr, struct eval_state *state) { switch (expr->time_unit) { case DAYS: diff /= 60*24; - fallthrough; + BFS_FALLTHROUGH; case MINUTES: diff /= 60; - fallthrough; + BFS_FALLTHROUGH; case SECONDS: break; } @@ -961,16 +961,16 @@ static struct expr *parse_time(struct parser_state *state, int field, int arg2) switch (*tail) { case 'w': time *= 7; - fallthrough; + BFS_FALLTHROUGH; case 'd': time *= 24; - fallthrough; + BFS_FALLTHROUGH; case 'h': time *= 60; - fallthrough; + BFS_FALLTHROUGH; case 'm': time *= 60; - fallthrough; + BFS_FALLTHROUGH; case 's': break; default: @@ -1873,7 +1873,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct case MODE_CLAUSE: who = 0; mstate = MODE_WHO; - fallthrough; + BFS_FALLTHROUGH; case MODE_WHO: switch (*i) { @@ -1900,7 +1900,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct case MODE_EQUALS: expr->file_mode &= ~who; expr->dir_mode &= ~who; - fallthrough; + BFS_FALLTHROUGH; case MODE_PLUS: expr->file_mode |= file_change; expr->dir_mode |= dir_change; @@ -1910,7 +1910,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct expr->dir_mode &= ~dir_change; break; } - fallthrough; + BFS_FALLTHROUGH; case MODE_ACTION: if (who == 0) { @@ -1992,7 +1992,7 @@ static int parse_mode(const struct parser_state *state, const char *mode, struct break; case 'x': file_change |= who & 0111; - fallthrough; + BFS_FALLTHROUGH; case 'X': dir_change |= who & 0111; break; @@ -2055,7 +2055,7 @@ static struct expr *parse_perm(struct parser_state *state, int field, int arg2) ++mode; break; } - fallthrough; + BFS_FALLTHROUGH; default: expr->mode_cmp = MODE_EXACT; break; @@ -630,7 +630,7 @@ struct bfs_printf *bfs_printf_parse(const struct bfs_ctx *ctx, const char *forma case '0': case '+': must_be_numeric = true; - fallthrough; + BFS_FALLTHROUGH; case ' ': case '-': if (strchr(directive->str, c)) { @@ -99,11 +99,11 @@ #endif #if BFS_HAS_C_ATTRIBUTE(fallthrough) -# define fallthrough [[fallthrough]] +# define BFS_FALLTHROUGH [[fallthrough]] #elif BFS_HAS_GNU_ATTRIBUTE(fallthrough) -# define fallthrough __attribute__((fallthrough)) +# define BFS_FALLTHROUGH __attribute__((fallthrough)) #else -# define fallthrough ((void)0) +# define BFS_FALLTHROUGH ((void)0) #endif /** |