From acc2d4e7ea2a6321a515a8a00f57119ba26a1fe5 Mon Sep 17 00:00:00 2001 From: "Z. Liu" Date: Thu, 12 Sep 2024 17:13:51 +0800 Subject: [PATCH] chore(libs): fix -Werror=unused-variable 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 --- driver/configure/CLASS_CREATE_1/test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driver/configure/CLASS_CREATE_1/test.c b/driver/configure/CLASS_CREATE_1/test.c index fdf3344462..edee0ff5c7 100644 --- a/driver/configure/CLASS_CREATE_1/test.c +++ b/driver/configure/CLASS_CREATE_1/test.c @@ -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; }