aboutsummaryrefslogtreecommitdiffstats
path: root/sys-utils/lsipc.c
diff options
context:
space:
mode:
authorMatteo Croce <teknoraver@meta.com>2025-03-27 20:49:10 +0100
committerMatteo Croce <teknoraver@meta.com>2025-04-07 15:09:08 +0200
commitb77025b6e78efbdd4cc36c5e65d3a8d59a805e63 (patch)
treef959a170db497beb257ea6aedeed5208edfdce76 /sys-utils/lsipc.c
parent1a3cbd3c0f7c84f977b624a6240d02ce741fc747 (diff)
downloadutil-linux-b77025b6e78efbdd4cc36c5e65d3a8d59a805e63.tar.gz
Use the 'fallthrough' attribute
C23[1] and CPP17[2] introduced the 'fallthrough' attribute to let the compiler know that we're intentionally falling through a case statement. This suppress a warning with new compilers when doing an implicit fallthrough. [1] https://en.cppreference.com/w/c/language/attributes/fallthrough [2] https://en.cppreference.com/w/cpp/language/attributes/fallthrough
Diffstat (limited to 'sys-utils/lsipc.c')
-rw-r--r--sys-utils/lsipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/lsipc.c b/sys-utils/lsipc.c
index 7b041790ba..d1dd27f354 100644
--- a/sys-utils/lsipc.c
+++ b/sys-utils/lsipc.c
@@ -403,7 +403,7 @@ static struct libscols_table *new_table(struct lsipc_control *ctl)
switch(ctl->outmode) {
case OUT_NEWLINE:
scols_table_set_column_separator(table, "\n");
- /* fallthrough */
+ FALLTHROUGH;
case OUT_EXPORT:
scols_table_enable_export(table, 1);
break;