summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-06-25 13:59:15 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-07-26 14:19:51 -0400
commit2cd69d3ee34a6d2c21aa64aedf262827eb83826f (patch)
tree9e98b40ac2a7fc6809f7e2bb3ac0c42eecad735a /src/eval.c
parent1b1e5a4707d681e4b38df56e83db1be9c07723b8 (diff)
downloadbfs-2cd69d3ee34a6d2c21aa64aedf262827eb83826f.tar.xz
Use C23 [[attribute]] syntax
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c
index 0d1bf68..8b62419 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -67,7 +67,7 @@ struct bfs_eval {
/**
* Print an error message.
*/
-_printf(2, 3)
+[[_printf(2, 3)]]
static void eval_error(struct bfs_eval *state, const char *format, ...) {
const struct bfs_ctx *ctx = state->ctx;
@@ -279,10 +279,10 @@ bool eval_time(const struct bfs_expr *expr, struct bfs_eval *state) {
switch (expr->time_unit) {
case BFS_DAYS:
diff /= 60 * 24;
- _fallthrough;
+ [[fallthrough]];
case BFS_MINUTES:
diff /= 60;
- _fallthrough;
+ [[fallthrough]];
case BFS_SECONDS:
break;
}