Skip to content

Commit

Permalink
chore(libs): fix -Werror=unused-variable
Browse files Browse the repository at this point in the history
otherwise test will give wrong result if compiler has -Werror flags,
complained with:

  error: unused variable 'g_ppm_class' [-Werror=unused-variable]

Signed-off-by: Z. Liu <[email protected]>
  • Loading branch information
clan authored and poiana committed Sep 13, 2024
1 parent 289bb6e commit acc2d4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions driver/configure/CLASS_CREATE_1/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ MODULE_AUTHOR("the Falco authors");

static int class_create_test_init(void) {
struct class *g_ppm_class = class_create("test");
(void)g_ppm_class;
return 0;
}

Expand Down

0 comments on commit acc2d4e

Please sign in to comment.