fix: Revert "Makefile: Enable -Wimplicit-fallthrough for Clang" (v5.15)
[lttng-modules.git] / lttng-filter-specialize.c
index 4f9a0cd1833da967fdc9fee7fb62cd74d2cb7771..e9a85c78569fa0fda78fae76b9dc2982bd11dd2d 100644 (file)
@@ -11,6 +11,8 @@
 #include <lttng-filter.h>
 #include "lib/align.h"
 
+#include <wrapper/compiler_attributes.h>
+
 static ssize_t bytecode_reserve_data(struct bytecode_runtime *runtime,
                size_t align, size_t len)
 {
@@ -246,7 +248,8 @@ static int specialize_get_index(struct bytecode_runtime *runtime,
                }
                case OBJECT_TYPE_STRUCT:
                        /* Only generated by the specialize phase. */
-               case OBJECT_TYPE_VARIANT:       /* Fall-through */
+               case OBJECT_TYPE_VARIANT:
+                       lttng_fallthrough;
                default:
                        printk(KERN_WARNING "Unexpected get index type %d",
                                (int) stack_top->load.object_type);
This page took 0.024032 seconds and 4 git commands to generate.